I'm not sure if this will work everywhere, but it works in Resin. If you set your <welcome-file> to index.action and put an empty (ie 0 length) file named index.action in the root directory of your war file. When the server gets the request, it first checks to see if the request matches a known resource, if not it checks the directory for a file matching specified welcome-file. If it finds one, things proceed as usual and struts gets the request to process and will naturally go to your index.jsp file to fulfil the request. (*Chris*)
On Wednesday, April 14, 2010, Burton Rhodes <burtonrho...@gmail.com> wrote: > I'm sure this answer is trivial, but I can't figure how to do a > server-side forward to a Struts action from my welcome page > (index.jsp). Currently I have index.jsp "redirecting" the user, but I > would like to eliminate the roundtrip that a "redirect" imposes (I've > had complaints from mobile users). All my "forward" attempts give a > RequestURL file not found error. Has anyone done this? Google seems > to be unhelpful. > > Currently this works but makes a roundtrip (index.jsp) : > <% response.sendRedirect("Login_show.action"); %> > > Serverside attempts without success (index.jsp): > <jsp:forward page="Login_show.action"/> > <jsp:forward page="/Login_show.action"/> > <jsp:forward page="Login_show"/> > > Using: > Struts 2.1.8 > Tomcat 6.x > Apache 2.2 > > Many Thanks, > Burton > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org