You probably want to change that to read:
...
<error-page>
    <error-code>404</error-code>
    <location>/bb/se/batborsen_error.html</location>
</error-page>
<error-page>
    <exception-type>javax.servlet.jsp.JspException</exception-type>
    <location>/bb/se/batborsen_error.html</location>
</error-page>
<error-page>
    <error-code>500</error-code>
    <location>/bb/se/batborsen_error.html</location>
</error-page>
...
An <error-page> directive should hold *either* an <error-code/> or an <exception-type/> directive.
Check the Servlet 2.2 spec at page 67, which goes:
 
<snip>
The error-page element contains mapping between an error code or exception type to the path of a resource in the web application.
 
<!ELEMENT error-page ((error-code | exception-type), location>
</snip>
 
WR
 
-----Ursprungligt meddelande-----
Från: Johan Fredriksson [mailto:[EMAIL PROTECTED]]
Skickat: den 29 mars 2001 07:11
Till: Orion-Interest
Ämne: Errorpage

I don't get it to work!!
 
this is what my webxml looks like...
 
        <error-page>
                <error-code>404</error-code>
                <exception-type>javax.servlet.jsp.JspException</exception-type>
                <location>/bb/se/batborsen_error.html</location>
        </error-page>
        <error-page>
                <error-code>500</error-code>
                <exception-type>javax.servlet.jsp.JspException</exception-type>
                <location>/bb/se/batborsen_error.html</location>
        </error-page>
 
the file is referring to
 
 
which works...
 
but whenever I get an exception on the site I get the file download dialog and IE says it cannot download the file.
 
If I request a non existing html resource, I get a blank page.
 
 
And if I force a nullpointerexception in a servlet
 
 
(this causes a nullpointer don't forget question mark!)
 
I get the file download dialog.
 
Someone mentioned the file has to be larger than 512b, it is currently (1 626 bytes).
 
Please help me!
 
 
Johan Fredriksson

Reply via email to