The moose likes JSP and the fly likes jsp is not included completely Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "jsp is not included completely" Watch "jsp is not included completely" New topic
Author

jsp is not included completely

sonal bajaj
Greenhorn

Joined: Jan 17, 2012
Posts: 1
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 opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

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?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Howard Watson
Ranch Hand

Joined: Jan 07, 2004
Posts: 40
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.
 
IntelliJ Java IDE
 
subject: jsp is not included completely
 
Threads others viewed
java Script Program
JSP variable typical problem
problem in name and password fields validation
Problem accessing the form object of a different frame
AJAX Problem in responseText
IntelliJ Java IDE