You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "White, Joshua A (HTSC, CASD)" <Jo...@thehartford.com> on 2003/07/10 20:48:25 UTC

Handling JSP Errors

I came across a thread which said that I could create a dummy file called
"welcome.do".  I would then be able to specify its location in the welcome
file list as the default page.

Because *.do is mapped to my action servlet, the request for welcome.do
would actually invoke the welcome.do struts action.

Has anyone tried handling JSP exceptions in this fashion?  You could specify
the following in your web.xml

<error-page>
	<exception-type>whatever.Exception</exception-type>
	<location>/myStrutsErrorHandler.do</location>
</error-page>




This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org