Unfortunately, I have to install such application in ROOT context for this to work and I am trying to avoid it.
Sincerely yours, Vadym Chepkov --- On Wed, 1/20/10, Travis Beech <[email protected]> wrote: > From: Travis Beech <[email protected]> > Subject: RE: multiple URI > To: "'Tomcat Users List'" <[email protected]> > Date: Wednesday, January 20, 2010, 2:48 AM > Modify your servlet mapping in your > web.xml so that you have more than one > mapping to that servlet. > > Take the following xml snippet as an example, each of the > three servlet > mappings will map to a single servlet. This would allow > someone to use three > different URL's to access the same servlet. > > <servlet> > > <servlet-name>RequestFactory</servlet-name> > > <servlet-class>com.foo.web.servlet.RequestFactory</servlet-class> > </servlet> > <servlet-mapping> > > <servlet-name>RequestFactory</servlet-name> > > <url-pattern>/RequestFactory</url-pattern> > </servlet-mapping> > <servlet-mapping> > > <servlet-name>RequestFactory</servlet-name> > <url-pattern>/Request</url-pattern> > </servlet-mapping> > <servlet-mapping> > > <servlet-name>RequestFactory</servlet-name> > <url-pattern>/SomeOtherUrl > </url-pattern> > </servlet-mapping> > > -----Original Message----- > From: Vadym Chepkov [mailto:[email protected]] > > Sent: Tuesday, January 19, 2010 12:17 PM > To: [email protected] > Subject: multiple URI > > Greetings, > > I want a servlet to serve two different urls: http://server/A > and > http://server/B, but I don't want to install this > servlet as a ROOT servlet. > Is this possible in tomcat 6? > > Thank you. > Sincerely yours, > Vadym Chepkov > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
