Sorry, I was wrong with my action attribute on logic:redirect element, but a simple look at the Struts doc should have suffice.
Please take a look at : http://jakarta.apache.org/struts/userGuide/struts-logic.html#redirect The forward or page attributes should hit the target for you. My 0.02 EUR, -- Laurent ----- Original Message ----- From: "Laurent MARQUEZ" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>; "'Laurent PETIT'" <[EMAIL PROTECTED]> Sent: Friday, August 08, 2003 2:37 PM Subject: RE : Seven Lessons from the Trenches: 4. Protect JSPs behind WEB-INF SORRY, i like using UPPERCASE. Error is: org.apache.jasper.JasperException: /index.jsp(2,0) Attribute action invalid according to the specified TLD -----Message d'origine----- De : Laurent PETIT [mailto:[EMAIL PROTECTED] Envoyé : vendredi 8 août 2003 16:30 À : Laurent MARQUEZ; 'Struts Users Mailing List' Objet : Re: Seven Lessons from the Trenches: 4. Protect JSPs behind WEB-INF Can't you be more explicit about the error ? Did you try to view the source of the html produced ? ( And, oh, please, just DON'T CRY ! ) ----- Original Message ----- From: "Laurent MARQUEZ" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>; "'Laurent PETIT'" <[EMAIL PROTECTED]> Sent: Friday, August 08, 2003 2:23 PM Subject: RE : Seven Lessons from the Trenches: 4. Protect JSPs behind WEB-INF ################################################################# In /WEB-INF/web.xml ################################################################# <welcome-file-list> <welcome-file>/index.jsp</welcome-file> </welcome-file-list> ################################################################# In /index.jsp ################################################################# <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <logic:redirect action="welcome.do"/> ################################################################# In /WEB-INF/struts-config.xml ################################################################# <action path="/welcome" forward="/WEB-INF/common/index.jsp"> </action> ################################################################# And in /WEB-INF/common/index.jsp ################################################################# <html> <head> <title>Hello world!</title> </head> <body> <h2>Hello world!</h2> </body> </html> ################################################################# THAT DOES'NT WORK! ################################################################# -----Message d'origine----- De : Laurent PETIT [mailto:[EMAIL PROTECTED] Envoyé : vendredi 8 août 2003 16:02 À : Struts Users Mailing List Objet : Re: Seven Lessons from the Trenches: 4. Protect JSPs behind WEB-INF Hi, you can't do that. Your welcome file must be accessible directly via http://yourserver/yourwebappcontext/common/index.jsp, without involving the pattern matching mechanism -> so it must not be in the WEB-INF directory. Just put a single index.jsp at the root of your webapp, with a <logic:redirect action="welcome.do"/> (for example) in it, in order to inlvove the Struts mechanism. -- Laurent --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]