You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Laurent MARQUEZ <la...@artal.fr> on 2003/08/08 14:42:50 UTC

Seven Lessons from the Trenches: 4. Protect JSPs behind WEB-INF

Hi,
Protect JSPs behind WEB-INF
I would like to call /WEB-INF/common/index.jsp
How can do that?

Best regards,
Laurent.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Seven Lessons from the Trenches: 4. Protect JSPs behind WEB-INF

Posted by John M Flinchbaugh <gl...@butterfly.hjsoft.com>.
On Fri, Aug 08, 2003 at 02:42:50PM +0200, Laurent MARQUEZ wrote:
> Protect JSPs behind WEB-INF
> I would like to call /WEB-INF/common/index.jsp
> How can do that?

set up a forwarding action to it:
    <action path="/index"
        type="org.apache.struts.actions.ForwardAction"
        parameter="/WEB-INF/common/index.jsp"/>

and call the "/index" action.

you can also set it up to be a forward from another action or forward
to it from a plain servlet.

servlets can access resources in WEB-INF, but they can't be served
directly to the browser.
-- 
____________________}John Flinchbaugh{______________________
| glynis@hjsoft.com         http://www.hjsoft.com/~glynis/ |
~~Powered by Linux: Reboots are for hardware upgrades only~~