struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Cooper" <>
Subject Re: WARNING: invalid welcome file
Date Wed, 16 Jul 2003 17:50:25 GMT
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.


<% response.sendRedirect(request.getContextPath() + "/jsp/Login.jsp"); %>


----- Original Message ----- 
From: "Micael" <>
To: "Struts Users Mailing List" <>
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
> >
> >Any clue why this is happening?
> >
> >Sriram
> This electronic mail  transmission and any accompanying documents contain
> information belonging to the sender which may be confidential and legally
> privileged.  This information is intended only for the use of the
> individual or entity to whom this electronic mail transmission was sent as
> indicated above. If you are not the intended recipient, any disclosure,
> copying, distribution, or action taken in reliance on the contents of the
> information contained in this transmission is strictly prohibited.  If you
> have received this transmission in error, please delete the message.
> you
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message