On Friday 09 April 2004 21:56, Wendy Smoak wrote: > > From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] > > Already tried s/th like <jsp:forward page="/main.do" /> > > in your index.jsp? :-) > > But then the URL will still have 'index.jsp' in it, at least if > Tomcat is involved. IIRC, Tomcat redirects to the welcome page, so > there's going to be something on the URL after the domain name. > > I think this is more a function of what HTTP server and Servlet > Container you're using than something to do with Struts.
Nope :-) This is the complete index.jsp file from www.christianbollmeyer.de: <%@ page contentType="text/html; charset=ISO-8859-1" session="false" %> <jsp:forward page="/main.do" /> which runs on Resin. But I used the same approach e.g. for www.anwalt4you.com which runs on Tomcat (5, but we didn't use Servlet 2.4 features which IIRC enable one to use a welcome file that doesn't physically exist, such as a Struts .do action, just to note). The mechanism itself is independent from container implementations: as a forward doesn't change the browser URL, you can just enter www.christianbollmeyer.de and it sticks to that, though main.do and Tiles do the actual job. If you invoke the above URL by explicitly specifying index.jsp (or main.do), the same is true, of course, but after all, that's just how it should work. -- Chris. Just to make sure: of course, I added index.jsp to the <welcome-file> list (web.xml). The only reason why I have it at all is the circumstance that the welcome file has to be a physical one. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]