if you map them to one app in your web.xml you can have different paths
link to one app.
like:
servlet
servlet-nameMyServlet/servlet-name
servlet-classmy.Servlet/servlet-class
/servlet
servlet-mapping
servlet-nameMyServlet/servlet-name
-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
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
From: Andrew Miehs [mailto:[EMAIL PROTECTED]
Subject: Re: Multiple paths to one application
Doesn't this only work if your application replaces the 'ROOT'
application?
Correct.
If you want two names for the same app, you could place an additional
Context element in conf/[engine]/[host
of tomcat so that I don't to configure any additional realms.
-Pete
-Ursprüngliche Nachricht-
Von: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 2. November 2006 15:27
An: Tomcat Users List
Betreff: RE: Multiple paths to one application
From: Andrew Miehs
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I hope that this is not really the reason why you want two paths to
the application?
Tomcat has user authentication built in!? Why not use it?! Otherwise,
some smart user is
going to have the idea of connecting directly to your tomcat
for an fixed ip address?
Pete
-Ursprüngliche Nachricht-
Von: Andrew Miehs [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 2. November 2006 16:09
An: Tomcat Users List
Betreff: Re: AW: Multiple paths to one application
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I hope
From: Peter Neu [mailto:[EMAIL PROTECTED]
Subject: AW: Multiple paths to one application
My problem is that I have parts of my application which are
restricted and I just want to filter the path requests with
the httpd server which sits in front of tomcat so that I
don't to configure any