you are right. you still have to include the webapps folder in your
path. therefore it would work this way:
localhost/myapp/path1/servlet1
localhost/myapp/path2/servlet2
i guess you had to replace the root app to have just / as your app
folder... (just as you said)
--stephan
Andrew Miehs wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Doesn't this only work if your application replaces the 'ROOT'
application?
Andrew
On 02/11/2006, at 9:56 AM, Stephan Schöffel wrote:
if you map them to one app in your web.xml you can have different
paths link to one app.
like:
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>my.Servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/path1/servlet1</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/path2/servlet2</url-pattern>
</servlet-mapping>
both links would map to MyServlet ie my.Servlet.class
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFFSbbPW126qUNSzvURAn4qAKCUxRJ5gzOEVTINFsLzggswi6n1VACfc+mE
GHpg8SLtzz0o5x4op7JhmNg=
=4vxd
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]