----- Original Message -----
From: Maya Muchnik <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 5:07 PM
Subject: struts-example - handle of ServletException


> Hi,
> Do you have any ideas how registration.jsp file (struts-example) can be
> changed to handle a situation when a user call it directly. I do not
"like" a
> SevletException to be displayed:
>
> Error: 500
> Location: /struts-example/registration.jsp
> Internal Servlet Error:
>
> javax.servlet.ServletException: No bean found under attribute key
> registrationForm.....A LOT OF ERRORS MESSAGES
>
> It is better to display some "friendly" error message or return to
login.jsp.
>

Hi Maya,

You can specify a defaut error page in case you get a exception in your page
using the <%@ page errorPage="myErrorPage.jsp" %> tag. If an error occurs in
the JSP, the user is send to this page. Have a look at the jsp spec for more
details.

Jean-Noël

Reply via email to