I am facing a unique problem, in the sense that i didn't thought
it was a problem as it used to work fine on
tomcat 3.0, but on
tomcat 3.1, i'm getting a parseException by jasper.
The problem starts as follows:
I've got a config.jsp file as follows:
<%!
public static
String site = "My Site";
%>
There's another file called display.jsp, defined as
The name of my site is <%= site %>
Value of flag is <%= flag %>
And finally a file called show.jsp defined as
<%@ include file="config.jsp" %>
<%
int flag = 0;
if (flag == 0) {
%>
<%@ include file="display.jsp" %>
<%
}
else if (flag == 1) {
%>
<%@ include file="display.jsp" %>
<%
}
else {
%>
<%@ include file="display.jsp" %>
<%
}
%>
The above code just illustrated my organization. Now when i try to
run show.jsp it fails with a parseException as follows:
org.apache.jasper.compiler.ParseException: Seen file \display.jsp already,
maybe this is a recursive include?!
Please guide me what should i do to prevent the above
Gaurav