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" <[EMAIL PROTECTED]> >Reply-To: <[EMAIL PROTECTED]> >To: "Struts" <[EMAIL PROTECTED]> >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:[EMAIL PROTECTED]] >Sent: Monday, September 30, 2002 23:34 >To: '[EMAIL PROTECTED]' >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:[EMAIL PROTECTED]] >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:[EMAIL PROTECTED]] >Sent: Monday, September 30, 2002 23:08 >To: '[EMAIL PROTECTED]' >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:[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]> _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

