• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp is not included completely

 
sonal bajaj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
body of Jsp is not included, when i see view source it contains only till first line of body tag. below that nothing was included. it is not happening all the time. some times it works fine. after 5-6 time it shows nothing just a blank page
<! doctype html>
html language="en">
<%@ page language="java" contentType="text/html" session ="false" %>

<head>
<script type="text/javascript">
function closeWarningMessage() {
var userSessionExpire= "<%= request.getParameter("userSessionExpire") %>";
if(userSessionExpire !=null && userSessionExpire ="true" ){
open('', 'SessionWarning').close();
}
for (var i=0; i<document.forms.length; i++) {
document.forms[i].reset();
}
}

></script>
</head>
<body onLoad="closeWarningMessage();">// page loaded till here
<jsp:include flush="true" page="/myCart/logoutHeader.jsp"/>
<form>
// form body......
</form>
</body>
</html>
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is almost always the result of an exception being thrown. Check the logs.

And, scriptlets in a JSP in 2012? Why are you still writing JSP like it is 2002?
 
Howard Watson
Ranch Hand
Posts: 64
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the bad things about scriptlets in a JSP especially a loop that generates html> is the occasional missing end tag or malformed tag. Malformed html> tends to break in modern browsers. And can be unpredictable when and where in the page it will break.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!