Howdy,

>Is there anybody who could give me an advice in servlet-mapping?

None of us have a clue ;)  Just kidding -- we can probably give it a decent shot.

>I got a web application which consists of a ControllerServlet which should
>handles all incoming request�s
>except 2 static html files (index.html which is an welcome file and
>abc.html)!

I've found that "all ... except ..." type of accesses can be easily handled by the 
servlet itself redirecting for things it can't handle.

Since your exceptions are static, you want tomcat's default servlet to handle them.  
Here's one way to do it:

1. Map the default servlet to url-pattern /static/*
2. Map your servlet to url-pattern /
3. In your servlet, look at the request URL.  If it's one of the two exceptions, 
redirect the request to /static/[whatever the request path was] so that tomcat's 
default servlet can serve it.

There are other approaches to this problem. A purely declarative solution, i.e. doing 
everything in web.xml, will be difficult.

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to