On Fri, 16 Aug 2002, Rum Pel wrote:

> Date: Fri, 16 Aug 2002 05:05:47 -0400
> From: Rum Pel <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: 404 Not found - howto
>
>
> Can a servlet produce a "404 Page Not found" error? It seems to me
> that it is the webserver/appserver that should do this, but I want
> it in the context of outputting static content via a servlet:
> http://localhost:8080/webapp/wsdl?ws=name
> should give a 404 error in case ws=name is not found.
>

  response.sendError(HttpServletResponse.SC_NOT_FOUND,
                    "your error message goes here");

> thanks,
> --rp
>

Craig


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

Reply via email to