Cool, thanks Peter - thats probably more approriate.

Cheers
Erik

On 11/11/05, Peter Menzel <[EMAIL PROTECTED]> wrote:
> Erik Eide schrieb:
> > Thanks Peter
> >
> > Thats works fine, I'm not using getWriter() as that was just an
> > example, I forward to a JSP for displaying the error message.
> >
>
> In this case I recommend not to set the status in the servlet and
> forward to the jsp manually.
> It would possibly more save using response.sendError(int errorCode) and
> declare an error-page, namley your jsp, in the web.xml for the
> appropriate status code.
> Like this:
>
>         <error-page>
>                 <error-code>409</error-code>
>                 <location>/error.jsp</location>
>         </error-page>
>
> Peter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to