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
---------------------
<[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to