IIRC, if you rename your web-app to "ROOT" then the container will treat it special. I've used this in Tomcat, but I fiddled around with it before I got into Struts. I can't say for sure, but I would assume that if your web-app is called "ROOT" then Struts would treat it special as well.
Since those days, I've really quit caring about the web-app name. When there is a customer requirement, I will spend more time trying to use some Apache tricks to make it happen. Using Apache and mod_proxy (to connect to an instance of tomcat somewhere else) or mod_jk (or whatever is in place these days) is usually easier for me. -Wes > -----Original Message----- > From: Gurram, Srinivas [mailto:[EMAIL PROTECTED] > Sent: Friday, April 20, 2007 9:00 AM > To: user@struts.apache.org > Subject: How to change the Context Root of a webapplication > > Hi > > I am new to struts. Currently my application url is like this > http://www.site.com/contextname/Home.do I want to change this url to > http://www.site.com/Home.do > > I need to remove the contextname. It refers to the application name > under webapps. > > Could any one suggest the solution. > > > > Thanks in Advance > > Regards > Srinivas. > > > This e-mail and any attachment is for authorised use by the > intended recipient(s) only. It may contain proprietary > material, confidential information and/or be subject to legal > privilege. It should not be copied, disclosed to, retained or > used by, any other party. If you are not an intended > recipient then please promptly delete this e-mail and any > attachment and all copies and inform the sender. Thank you. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
smime.p7s
Description: S/MIME cryptographic signature