E
ennio
Thanks very much to anybody who can help.
I am using Tomcat 5.5 and when i compile a jsp i'm facing this
problem.
If the Jsp contains an error in a java script, tomcat doesn't print
out the number where the compilation occurs, but prints out the
beginning of the java script.
Example:
this is the JSP:
----------------------CUT-------------------
<%
out.println("1");
out.println("1");
out.println("1") //Missing something here!
out.println("1");
%>
----------------------CUT-------------------
this is the error:
----------------------CUT-------------------
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 1 in the jsp file: /engineeringcentral/
custom/GD_ProveEnrico.jsp
Generated servlet error:
Syntax error, insert ";" to complete Statement
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:
84)
[....]
----------------------CUT-------------------
But i would like to get:
An error occurred at line: 4
instead of 1.
This is very important in complex jsp's.
I think i my previous tomcat (4.1) it worked so, but it doesn't
anymore. Is it a kind of setting?
Thank you very much
I am using Tomcat 5.5 and when i compile a jsp i'm facing this
problem.
If the Jsp contains an error in a java script, tomcat doesn't print
out the number where the compilation occurs, but prints out the
beginning of the java script.
Example:
this is the JSP:
----------------------CUT-------------------
<%
out.println("1");
out.println("1");
out.println("1") //Missing something here!
out.println("1");
%>
----------------------CUT-------------------
this is the error:
----------------------CUT-------------------
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 1 in the jsp file: /engineeringcentral/
custom/GD_ProveEnrico.jsp
Generated servlet error:
Syntax error, insert ";" to complete Statement
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:
84)
[....]
----------------------CUT-------------------
But i would like to get:
An error occurred at line: 4
instead of 1.
This is very important in complex jsp's.
I think i my previous tomcat (4.1) it worked so, but it doesn't
anymore. Is it a kind of setting?
Thank you very much