i've tried that solution after answering you
my code:
..
<li><html:link page="/logon.jsp"><bean:message
key="index.logon"/></html:link></li>
<li><html:link page="/jsp/sole.jsp"><bean:message
key="index.sole"/></html:link></li>
..

and it actually works, so i'm sorry if it didn't work for you


-----Mensaje original-----
De: Ferran Parra [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 08 de marzo de 2002 11:28
Para: Struts Users Mailing List
Asunto: Re: jsp pagis in /WEB-INF directory


thanks all,

but the solution proposed by Soledad Villa:

try:
 <html:link forward="/pages/jsp/A.jsp">

throws:
Error interno del servlet:

javax.servlet.ServletException: Cannot create rewrite URL:
java.net.MalformedURLException: Cannot retrive ActionForward named
/pages/jsp/A.jsp
and the solution proposed by Ivan Siviero:
the WEB-INF directory is protected.You cannot access the jsp directly from
the url.You have to execute an action or a forward.this should works:
<html:link forward="myForward">in the struts-config.xml:<global-forwards>
<forward name="myForward"
path="="/WEB-INF/pages/jsp/A.jsp"/></global-forwards>
throws page not found.
what can i do??
thanks

----- Original Message -----
From: "Ivan Siviero" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 08, 2002 2:52 PM
Subject: Re: jsp pagis in /WEB-INF directory


>
> > in the struts-config.xml:
> >
> > <global-forwards>
> >     <forward name="myforward" path="="/WEB-INF/pages/jsp/A.jsp"/>
> > </global-forwards>
> >
> > Ivan.
>
> sorry i did some typo :) :)
>
>  <global-forwards>
>      <forward name="myForward" path="/WEB-INF/pages/jsp/A.jsp"/>
>  </global-forwards>
>
> >
> > ----- Original Message -----
> > From: "Soledad Villa" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Friday, March 08, 2002 2:33 PM
> > Subject: RE: jsp pagis in /WEB-INF directory
> >
> >
> > > you don't have to include the web-inf directory
> > > try:
> > > <html:link forward="/pages/jsp/A.jsp">
> > >
> > > -----Mensaje original-----
> > > De: Ferran Parra [mailto:[EMAIL PROTECTED]]
> > > Enviado el: viernes, 08 de marzo de 2002 10:10
> > > Para: Struts Users Mailing List
> > > Asunto: jsp pagis in /WEB-INF directory
> > >
> > >
> > > Hi,
> > >
> > >     Why is better put jsp's in the /WEB-INF directory??
> > >     and
> > >     I'm use <html:link forward="/WEB-INF/pages/jsp/A.jsp"> tag in a
jsp
> > but,
> > > no works, what i doing wrong??
> > >
> > > thanks
> > >
> > > -------------------------------------------------------
> > > Ferran Parra
> > > [EMAIL PROTECTED]
> > > http://www.mubimedia.com
> > > MUBIMEDIA S.L.
> > > C/ Mallorca, 275, 1r 2a 08008 BCN SPAIN
> > > Tel: 93 215 21 91 / Fax: 93 215 41 21
> > > -------------------------------------------------------
> > >
> > >
> > > --
> > > 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]>
> >
> >
>
>
> --
> 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]>

Reply via email to