David, Set "crossContext" to true if you want calls within this application to ServletContext.getContext() to successfully return a request dispatcher for other web applications running on this virtual host. Set to false (the default) in security conscious environments, to make getContext() always return null.
Hope this help..... ---Trung -----Original Message----- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Friday, September 30, 2005 2:47 PM To: Tomcat Users List Subject: Re: Multi-level context paths possible in TC 5.5.9? Awesome!!!!!!! Worked first time. I had tried messing with context paths in an application .xml, but never thought to try the server.xml. One question: what does the "crossContext" flag do? Or is that what lets it look to a different path for the context path? The help files I looked through don't list it... Thanks a bunch!! Trung Nguyen wrote: > David, > > You can do this by modify the server.xml file from $TOMAT_HOME/conf/ > directory: > > <Host name="www.myserver.com" debug="0" unpackWARs="true"> > <Context path="/level1/level2" docBase="/usr/var/apps/SiteData" > debug="0" reloadable="true" crossContext="true" /> > </Host> > > Where docBase is where you store your app. (SiteData) > > Hope this help.... > > ---Trung > > > -----Original Message----- > From: David Kerber [mailto:[EMAIL PROTECTED] > Sent: Friday, September 30, 2005 1:47 PM > To: Tomcat Users List > Subject: Multi-level context paths possible in TC 5.5.9? > > > I am trying to migrate a webapp from SilverStream 3.7.5 to Tomcat, while > keeping the same URL for my users. Right now, they hit it at > www.myserver.com:<port>/level1/level2/Login.jsp, where level1 is a > database name, and level2 is a name we assigned. > > The .war that provides the content is called SiteData.war, so when I > deploy it to tomcat, it shows up at context path /SiteData. I would > love it if Tomcat could present the same stuff at the /level1/level2 > path. If I have to deploy it as individual files instead of in a .war > file, that's ok to, as would be other mods to path names, etc. If > someone could just give me some hints, I'd be very grateful. > > BTW, I spent several hours googling and searching newsgroups, and found > nothing showing multi-level context paths, so I don't even know for sure > if it's possible. > > Thanks! > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]