I've configured my container to display a page called 404.jsp whenever a 
page in my app is not found.  You could either use the sendError method 
which will probably display an ugly 404 page or you could forward to your 
custom 404 page.

Dave


>From: Adam Sherman <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: Throwing a 404?
>Date: Wed, 02 Oct 2002 15:07:09 -0400
>
>David Graham wrote:
>>You can use the HttpServletResponse.sendError() method to send any kind of 
>>return code you want (including 404).
>
>Yes, I just found that in the API docs. Is this the Right Way to do it? Or 
>should I be somehow wrapping the error in an Exception, or forwarding to a 
>View component?
>
>I'm also looking for some Best Practices advice.
>
>Thanks,
>
>A.
>
>
>--
>Adam Sherman
>Software Developer
>Teach and Travel Inc.
>+1.613.241.3103
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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

Reply via email to