if you use struts 1.1b2, you should have a look at the following action class which has been designed specially for that : org.apache.struts.actions.ForwardAction
hope this will help ... > -----Original Message----- > From: Michael Delamere [mailto:[EMAIL PROTECTED]] > Sent: lundi 23 septembre 2002 12:32 > To: Struts Users Mailing List > Subject: Re: Calling a jsp directly within WEB-INF > > > the problem is that I�m integrating the application into a content > management system. That means that I cannot work with virtual urls like > *.do. The jsps have to be called directly. The other problem is > that if I > have them in the root directory, it makes calling them from a > subapp-config > extremely complicated. Infact I�m having troubles getting the actions to > work properly. > > I�ve tried forwards like: > > <forward name="error" path="/../jsp/service/register.jsp"/> > > but that doesn�t always work as wished. > > Basically the problem is that if I: > > a) have them in the subapp directory I can�t call the directly. > b) have them in the root directory it is complicated to call them from > within a subapp. > > It would be better to be able to either call jsps directly even within a > subapp or be able to define where jsps can be found in the > struts-config-subapp so that I�m not limited to "/webapp/WEB-INF/subapp". > > Any further ideas? > > Thanks, > > Michael > > > > ----- Original Message ----- > From: "Andrew Hill" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Monday, September 23, 2002 12:16 PM > Subject: RE: Calling a jsp directly within WEB-INF > > > > JSPs (& other resources) under web-inf cannot be reached directly. > > To get to them you will need to do a forward on the server side (for > example > > from an Action) > > > > -----Original Message----- > > From: Michael Delamere [mailto:[EMAIL PROTECTED]] > > Sent: Monday, September 23, 2002 18:06 > > To: Struts Users Mailing List > > Subject: Calling a jsp directly within WEB-INF > > > > > > The scenario is as follows: > > > > I have a sub application called service, so obviously I would have a > > diectory structure like: > > > > /webapp > > /WEB-INF > > /subapp (in my case service) > > > > now in that subapp I have a folder coalled "jsp" which, > surprise, contains > > my jsp files. The problem I have though is that I can�t call them > directly. > > I.e. I get an error messsage saying that the requeted resource is not > > available. > > > > What needs to be done in order for me to be able to enter the URL > > "http://localhost:8080/webapp/subapp/jsp/test.jsp" in my browser and for > it > > to be found by tomcat. > > > > This is probably more a general tomcat question but seeing as > it involves > > the use of sub-applications I was hoping that I may be able to get some > help > > here. > > > > Thanks, > > > > Michael > > > > > > > > -- > > 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]> > ________________________________________________________________ Etudiant: Wanadoo t'offre le Pack eXtense Haut D�bit soit 150,92 euros d'�conomies ! Et pour 1 euro de plus, re�ois le CD-ROM du jeu Dark Age of Camelot + 1 mois de jeu en r�seau offert ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

