Hi,

Use <serlvet-mapping> in your deployment descriptor file. For Example:

<servlet-mapping>
  <servlet-name>test</servlet-name>
  <url-pattern>/whatever/test</servlet-name>
</servlet-mapping>

You are stuck with the context-path though. so your final url will look like
http://www.somedomain.com/context-path/whatever/test

remember to modify what ever config file you are using to inform tomcat that
it should be processing the above path.. for mod_jk this means adding the
following line

JkMount /context/whatever/test ajp12

or similar (dep. on ajp12 ajp13 etc).

Regards,

Matthew Clark.

-----Original Message-----
From: Brian Kejser [mailto:[EMAIL PROTECTED]]
Sent: 28 May 2001 17:51
To: '[EMAIL PROTECTED]'
Subject: URL


Hi

Is it possible to change the \servlet\ portion of the URL to something else?

For example,

www.domain.com/somepath/servlet/test to
www.domain.com/somepath/whatever/test

Thanks

Reply via email to