logo       

Re: Trying to change Not Found page in the server.: msg#00090

java.jetty.general

Subject: Re: Trying to change Not Found page in the server.

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,



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise