Jim Barrows wrote:


-----Original Message-----
From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 8:13 AM
To: Struts User Mailing List
Subject: Redirect to action


The struts logic user documentation shows the use of a redirect to an action
is permitted




http://struts.apache.org/userGuide/struts-logic.html#redirect



But when I use it I get the following error:



"Attribute action invalid for tag redirect according to TLD"



This is where I call the tag:



<logic:present name="someUser">

 <logic:redirect action="/logout" />

</logic:present>



Is this a mistake in the documentation? Or is there another way to redirect
from within a JSP?


This is correct I think.... I'd check jar versions and tld versions etc.


I am using struts 1.1 if that makes any difference.

Small world... I just got bit by this in the past day or so. In yoru case, the redirect tag would be used as follows:


<logic:redirect forward="/logout" />

If it was the forward tag, then it would be as follows:

<logic:forward name="/logout" />

The 2 tags are different w/respect to the attributes they use.


-- Chuck Chopp

ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com

RTFM Consulting Services Inc.     864 801 2795 voice & voicemail
103 Autumn Hill Road              864 801 2774 fax
Greer, SC  29651

Do not send me unsolicited commercial email.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to