You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "j.random.programmer" <ja...@yahoo.com> on 2006/06/30 20:22:11 UTC
bug in Tomcat 5.5.x
Hi:
This looks like a serious bug.
Consider:
In web.xml
-----------------------------------
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/errors/error.jsp</location>
</error-page>
-----------------------------------
in foo.jsp:
<% int x = 0; int y = 5/(0-x); %>
(throws a arithmetic exception)
in /errors/error.jsp
---------------------
<%@page isErrorPage="true" %>
<%
final Integer s = xxxx.getAttribute
("javax.servlet.error.status_code");
--------------------
Note, error.jsp has a syntax error (there is no xxxx
variable). This
page should not compile.
So what do you think happens when we try to load
"foo.jsp"
foo.jsp throws an exception.
exceptions are set to be handled by error.jsp
error.jsp does not compile.
So tomcat should SAY SO.
BUT tomcat says nothing, warns nothing, simply dumps a
stack trace
to the end-user. This is NOT what we want. There is no
way to
know of compilation errors (in the error page itself)
since tomcat
does not tell us of any.
Best regards,
--j
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org