Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What's this parseException

 
Garry Kalra
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp file which gives me the following error.
Seen file \display.jsp already, maybe this is a recursive include?!
I am using Tomcat 3.1 on windows 98 and the code for the file which
gives the above error is similar to the one below.
<%
int flag = 0;
if (flag==0) {
%>
<%@ include file="display.jsp" %>
<%
}
else {
%>
<%@ include file="display.jsp" %>
<%
}
%>
Pls guide me why this is failing. Also the file called display.jsp, if
changed then the results are not reflected in the browser. I understand
this is a compile time include. Then pls guide me how do i include the
contents of the file display.jsp at runtime, so that i don't have to
start the context again.
Thanks
Gaurav
 
Angela Poynton
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The <@ include %> tag is a compile time include. Try using <jsp: include page /> to perform a runtime include which is really what you are looking for.
 
Garry Kalra
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But Angela, some of my variables declared in the first file are being used in the file display.jsp (to be included). Doesn't request time includes just the output.
I would like the display.jsp page to use the variables of the page including it.
The actual problem in that with the compile time include, the tomcat 3.1 jasper parser is saying that there is a recursive include, but i don't think so.
Pls guide me how to remove this, as the application was working perfectly in tomcat 3.0
Gaurav
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic