tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Polci <apo...@gmail.com>
Subject Re: Search engine friendly URLs
Date Sun, 03 Oct 2004 08:39:14 GMT
Sorry, I've sent the message wile I was still writing.

On Sun, 3 Oct 2004 09:59:36 +1000, Ben <newreaders@gmail.com> wrote:
> I would like to use Tomcat alone

In your web.xml use this mapping:

-------------------------------------
 <servlet-mapping>
   <servlet-name>MyServlet</servlet-name>
   <url-pattern>/do/*</url-pattern>
 </servlet-mapping>
-------------------------------------

If you request the url "http://localhost/do/site/books/architecture"
and call the method:

req.getPathInfo()

you will get the String:

"/site/book/architecture"

Andrea

-- 
Andrea Polci

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message