From: Jan B. <ja...@mo...> - 2004-09-27 13:48:36
|
Josep, You want to take a look at the <error-page> tags that can be specified in web.xml files to customize error page handling. You can find an example of how to set this up in your Jetty distribution in: $JETTY_HOME/demo/webapps/jetty/WEB-INF/web.xml cheers, Jan > Hi, > > I'm trying to change: > HTTP ERROR: 404 %2FHelloWorldServlet3+Not+Found > > when a Servlet can't be access with my Jetty servlet container. > > I make my own HttpServlet like this: > > public class VirtualServer extends HttpServer { > public HttpContext service(HttpRequest request,HttpResponse > response) throws java.io.IOException, > HttpException { > //No servlet found detection here? > ; > } > } > > When there is a not found page error, How can I detect this error, using > Jetty APIS in Java. > I'm trying to modify service method, but I thinck is not the correct method. > > Thanks, |