J
John
Hi
I know the following questions on JSP are too general, but hope you won't
mind telling me again.
my a.jsp
<%@ page session="true" %>
<%
while( 1>=100 )
{
out.println("false");
{
}
%>
questions:
1.using Tomcat 5.1 and orion 2.0 for this a.jsp, will these two servers
generate same a.jsp.servlet.java?
2. how to see the generated servlet.java?
3.how to understand to error (the following error message is from orion)
Error parsing JSP page /a.jsp
Syntax error in source/a.jsp.java:35: 'catch' without 'try'
catch(Throwable __jspE2)
^
/a.jsp.java:20: 'try' without 'catch' or 'finally'
try
^
/a.jsp.java:46: '}' expected
}
^
3 errors
it's obvious that the only error is the extra { in line 7; but if a.jsp is
very complicated, how to debug it (writting in a servlet and test this
servlet if okay then pasting back to jsp?)
I know the following questions on JSP are too general, but hope you won't
mind telling me again.
my a.jsp
<%@ page session="true" %>
<%
while( 1>=100 )
{
out.println("false");
{
}
%>
questions:
1.using Tomcat 5.1 and orion 2.0 for this a.jsp, will these two servers
generate same a.jsp.servlet.java?
2. how to see the generated servlet.java?
3.how to understand to error (the following error message is from orion)
Error parsing JSP page /a.jsp
Syntax error in source/a.jsp.java:35: 'catch' without 'try'
catch(Throwable __jspE2)
^
/a.jsp.java:20: 'try' without 'catch' or 'finally'
try
^
/a.jsp.java:46: '}' expected
}
^
3 errors
it's obvious that the only error is the extra { in line 7; but if a.jsp is
very complicated, how to debug it (writting in a servlet and test this
servlet if okay then pasting back to jsp?)