aspose file tools*
The moose likes Servlets and the fly likes What's this parseException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "What Watch "What New topic
Author

What's this parseException

Garry Kalra
Ranch Hand

Joined: May 25, 2001
Posts: 111
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

Joined: Mar 02, 2000
Posts: 3143
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.

Pounding at a thick stone wall won't move it, sometimes, you need to step back to see the way around.
Garry Kalra
Ranch Hand

Joined: May 25, 2001
Posts: 111
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What's this parseException