On 2/27/2003 at 1:30 PM Raible, Matt wrote:

>web.xml - an example:
>
>    <error-page>
>        <error-code>500</error-code>
>        <location>/error.jsp?code=500</location>
>    </error-page>

note - be sure when you do this to manually set the status code. e.g. in
this jsp page you would do:

<% response.setStatus(Integer.parseInt(request.getParameter("code"))); %>

otherwise the http user agent will get a response code of 200 instead of a
500.

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to