Removal of /servlet/ prefix in URLs with a filter

Hi,

I have a hosting service which maps /servlet/* URLs in Apache to a Tomcat instance. No problem with that. A url of http://www.server.com/servlet/login.do will be happily provided to Tomcat as http://www.server.com/login.do and everything will work.

Problem is, while developing, I want to work just with Tomcat, no Apache involved. For my purposes I think that some filter which could remove the servlet prefix if found would make my links work both on development and on production.

Is there any easy way of doing this rewriting of the URL? Any pointers to existing filters?

[604 byte] By [oscar2004a] at [2007-11-26 15:23:50]
# 1
Please make the following changes in your web.xml<servlet-mapping><servlet-name><your action servlet name></servlet-name><url-pattern>*.do</url-pattern></servlet-mapping>
reflex2javaa at 2007-7-8 21:39:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...