In the forward attribute of <html:link> you should put the name of your forward as defined in struts-config.xml. From the example below you should then use:
<html:link forward="myforward">Some Text</html:link> This will forward to the path defined in struts-config.xml, in the example this would be "/WEB-INF/pages/jsp/A.jsp". Regarding the reason why it is a good idea to put pages in /WEB-INF, see this link: http://husted.com/about/scaffolding/catalog.htm and search for this string "Place all Java ServerPages below WEB-INF". Matt. -----Original Message----- From: Ferran Parra [mailto:[EMAIL PROTECTED]] Sent: 08 March 2002 14:28 To: Struts Users Mailing List Subject: 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]>