I thought Tomcat 4.0 allowed for some filtering that could avoid this and
send a request straight to an Action.

Brandon Goodin

-----Original Message-----
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 2:10 PM
To: [EMAIL PROTECTED]
Subject: Re: configure welcome page


Subject: Re: configure welcome page
From: "Don Miller" <[EMAIL PROTECTED]>
 ===
Your problem is due to a common misconception of how the welcome file list
works.  The welcome file list in the web.xml file defines the default
file(s) for all directories, including the root and all subdirectories.  It
does not specify the URL of a default page for the web application.  If you
request http://myserver/myapp/, the application looks for
http://myserver/myapp/index.jsp.  If you request
http://myserver/myapp/mydirectory/, the application looks for
http://myserver/myapp/mydirectory/index.jsp.

The only work-around for your situation is to perform a forward from
/index.jsp to /WEB-INF/JSP/index.jsp.

I hope this helps.

Don

"Patria Lukman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> hi everyone
>
> am a newbie in Struts and have been playing around with some examples. I
> know it might sound obvious, but I have looked it up in the archive mail
and
> have not found anything.
> I want to move the welcome page ( index.jsp)  of my app from the root to
> WEB-INF/JSP/index.jsp and for that I modified the web.xml file, in the <
> welcome-file>index.jsp </welcome-file> to
> <welcome-file>/WEB-INF/JSP/index.jsp</welcome-file> but it gives a "not
> resource found" error when i access the app.... I also tried it without
the
> "/" before WEB-INF
> any hints?
>
> __________________________________________________
> Patria Handatjaia Lukman
>
> NdexSystems Inc. 360 St-Jacques Ouest, Suite 2000
> Montr�al, Qc. H2Y 1P5
> Office phone: 1-514-288-0908 Ext 110
> [EMAIL PROTECTED]
>
> Quote of the century:
> "Life is a carnaval..."
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to