struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billy Ng" <evebi...@hotmail.com>
Subject RE: Access JSP in the WEB-INF
Date Mon, 30 Sep 2002 16:16:41 GMT
I was told I could do this;

<action name="aPage" ......
  [put the jsp file here]
</action>
<action ....

<forward name="aPage" path="aPage.do" />
</action>

Billy Ng

>From: "Andrew Hill" <andrew.david.hill@gridnode.com>
>Reply-To: <andrew.david.hill@gridnode.com>
>To: "Struts" <struts-user@jakarta.apache.org>
>Subject: RE: Access JSP in the WEB-INF
>Date: Mon, 30 Sep 2002 23:43:12 +0800
>
>Im in a bit of a rush right now to try and get a taxi home before the
>midnight charge kicks in, but Im sure there are many others out there who
>can give you a good example (right guys???)
>
>-----Original Message-----
>From: Smith, Johnathan M. [mailto:jsmith4@ubspw.com]
>Sent: Monday, September 30, 2002 23:34
>To: 'andrew.david.hill@gridnode.com'
>Subject: RE: Access JSP in the WEB-INF
>
>
>Can you send me a sample on how to do this in my action
>
>-----Original Message-----
>From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
>Sent: Monday, September 30, 2002 11:14 AM
>To: Struts Users Mailing List
>Subject: RE: Access JSP in the WEB-INF
>
>
>Once they are under web-inf a direct access from the client will not be
>allowed by the container, however forwards on the server side are allowed,
>thus to get to the JSP you can forward to it from an Action.
>The benefit of this is that users will not be able to hit your JSP without
>first going through an Action, and thus through the struts front-controller
>thinghy. You can thus ensure that everything is set up that that JSP needs
>(ie: beans in the request etc...) or could redirect them to another jsp or
>action if business logic demanded it...
>
>-----Original Message-----
>From: Smith, Johnathan M. [mailto:jsmith4@ubspw.com]
>Sent: Monday, September 30, 2002 23:08
>To: 'struts-user@jakarta.apache.org'
>Subject: Access JSP in the WEB-INF
>
>
>I was reading that I should put all my JSP inside the WEB-INF dir so 
>clients
>cant access them without going to the controller.
>
>My issues is that How do I access them??  can someone please tell me how to
>setup my Action so I can display the JSP files??
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:struts-user-help@jakarta.apache.org>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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


Mime
View raw message