On Thu, 10 May 2001, Thomas [iso-8859-1] F�rster wrote:
> Morgan Delagrange wrote:
> >
> > You'll probably want to explore changing your web.xml to forward users to
> > a standard error page, rather than showing them a stack trace. This is
> > pretty common. Take a look at the <error-page> element of the web.xml,
> > which will let you forward to specific pages for specific exceptions.
>
> Thank you, Morgan.
>
> I found an even better solution. I'm assigning error-pages for every JSP
> individually using the errorPage-attribute:
>
> <%@ page errorPage="loginerror.jsp" %>
>
>
Sure, you can do it that way too. You may still want to investigate the
web.xml file however, which lets you assign different pages for each type
of exception or HTTP status code.
- Morgan