struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "phpsurf" <phps...@ifrance.com>
Subject RE: Calling a jsp directly within WEB-INF
Date Mon, 23 Sep 2002 18:56:37 GMT
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:home@michael-delamere.de]
> 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" <andrew.david.hill@gridnode.com>
> To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> 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:home@michael-delamere.de]
> > 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: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>
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
>


________________________________________________________________
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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message