The only formal restriction is that they can't begin or end with a "/". A container is supposed to append the content of each <welcome-file> element to the requested URI and see whether a resource is mapped to the resulting URI. So, while it's unusual, embedded "/" characters should be supported.
Quoting Max Cooper <[EMAIL PROTECTED]>: > I believe that the welcome file list is just a list of filenames to look > for > in any directory if the user makes a request for a directory name without a > filename. So, they should not start with leading slashes. Some containers > are more tolerant of this than others, but it seems clear to me now that > the > welcome file entries should not have slashes in their names. > > To get the behavior you want, you probably want to change your welcome file > to just "index.jsp" (no slashes) and then make an index.jsp file that > redirects to your login page and put it in the root directory of your app. > > web.xml: > <welcome-file-list> > <welcome-file>index.jsp</welcome-file> > </welcome-file-list> > > index.jsp: > <% response.sendRedirect(request.getContextPath() + "/jsp/Login.jsp"); %> > > -Max > > ----- Original Message ----- > From: "Micael" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, July 16, 2003 8:18 AM > Subject: Re: WARNING: invalid welcome file > > > > The leading / tells the app that this file is in the root app, and > > apparently it is not. > > > > At 07:11 PM 7/16/03 +0530, you wrote: > > >Hi, > > > > > >This may be slightly out of topic..but I need some suggestions in this > > >regard. Probably someone has encountered this problem before. > > > > > >In my struts application's web.xml, I've defined welcome page as > follows: > > > > > ><welcome-file-list> > > > <welcome-file>/jsp/Login.jsp</welcome-file> > > ></welcome-file-list> > > > > > >When I deploy it on JBoss Windows environment, it's working fine. > > > > > >When I deploy it on JBoss Linux environment, it's showing a msg: > > >WARNING: invalid welcome file: /jsp/Login.jsp > > > > > >And in the browser, when I try to view > > >http://<servername>:8080/appName > > >(where appName is the name of .ear file I've deployed), > > >It's displaying /jsp/Login.jsp, but none of the style sheets and images > > >are obtained. > > > > > >When I type the entire path in the browser (as below) > > >http://<servername>:8080/appName/jsp/Login.jsp, then everything is > perfect. > > > > > >Any clue why this is happening? > > > > > >Sriram -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]