> -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of John Boyes > Sent: 31 Mart 2004 Çarşamba 15:42 > To: [EMAIL PROTECTED] > Subject: Clean url for home page > > I would like to have a clean url for my site's home page > (built with Struts) displayed to the user. > > e.g > http://www.mysite.com > > not > http://www.mysite.com/home.do > or > http://www.mysite.com/index.jsp > > Is there a straightforward way to accomplish this, while > still processing a Struts action in the request? >
You can add <welcome-file-list> <welcome-file>home.do</welcome-file> </welcome-file-list> to your web.xml and the application server processes /home.do for requests like http://www.mysite.com/. > I've had a good look at the archives but haven't found a solution. > > Thanks for any help > > John Regards. /tb. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]