You can use the HttpServletResponse.sendError() method to send any kind of 
return code you want (including 404).

Dave


>From: Adam Sherman <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts User <[EMAIL PROTECTED]>
>Subject: Throwing a 404?
>Date: Wed, 02 Oct 2002 14:54:58 -0400
>
>I'm building an Action to handle generic requests for pages that are 
>defined as tiles.
>
>Basically, I want all requests for *.html to hit this action, which will 
>figure out the definition name and call it.
>
>If the page doesn't exists, how can I throw a 404?
>
>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