I have a JSP under the MyApp root directory, it is
index.jsp. This file calls a struts action (welcome.do)
which will redirect to the protected jsp <logic:redirect
forward="welcome"/>.
When I placed the welcome.jsp file under MyApp/Pages it is work
<action path="/Welcome"
type="org.apache.struts.actions.ForwardAction"
parameter="/Pages/Welcome.jsp" />
when I placed the welcome.jsp file under MyApp/Web-inf/Jsp it doesn't work.
<action path="/Welcome"
type="org.apache.struts.actions.ForwardAction"
parameter="/Web-inf/Jsp/Welcome.jsp" />
-----Original Message-----
From: Victor CHEVALIER [mailto:[EMAIL PROTECTED]]
Sent: 03 September 2002 17:07
To: Struts Users Mailing List
Subject: RE: Unable to open location, with
jakarta-struts-1.1-b2-blank.war
The files under WEB-INF are protected (unacessible via the browser).
If you want to put tou jsp under WEB-INF you must have at least one
welcome.jsp
under / or /jsp/ or ... but not /WEB-INF/...
then this jsp should call a struts action which will redirect to the
protected jsp
(an actionForward can call a jsp under WEB-INF).
This need confirmation.
-----Message d'origine-----
De : Heligon Sandra [mailto:[EMAIL PROTECTED]]
Envoy� : mardi 3 septembre 2002 17:01
� : '[EMAIL PROTECTED]'
Objet : Unable to open location, with jakarta-struts-1.1-b2-blank.war
Hi,
I used the jakarta-struts-1.1-b2-blank.war as model for my
application.
I would like to place all the JSP file under the sub-directory
CATALINA_HOME/Webapps/MyApp/Web-inf/jsp in order to force people
to pass through the RequestProcessor where I test user
authentication.
It is the unique solution, isn't it ?
But I don't understand very well, the disadvantage "Putting the JSPs
below WEB-INF
make it harder to reference style sheets ".
So I modified the struts-config.xml file, and wrote
<action path="/Welcome"
type="org.apache.struts.actions.ForwardAction"
parameter="/Web-inf/Jsp/Welcome.jsp" />
but when I run my application I have the following error
Unable to open location. Document not found on server.
But the file Welcome.Jsp is available on
CATALINA_HOME/Webapps/MyApp/Web-inf/Jsp/Welcome.jsp.
Is it an syntax error ?
I used JBuilder, I can not see the Web-inf directory under the
WebApplication node I see
all the directories under CATALINA_HOME/Webapps/MyApp except the
Web-inf directory.
How is it possible ?
thanks,
--
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]>