Yeah I apologize for the bad advice, I whipped that out too fast. It should be:
<s:if test="chapter == 'Library'"> Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Dave Newton <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <user@struts.apache.org> > Date: Wed, 20 Feb 2008 07:55:24 -0800 (PST) > To: Struts Users Mailing List <user@struts.apache.org> > Subject: Re: Update from 2.0.9 to 2.0.11 > > --- Randy Burgess <[EMAIL PROTECTED]> wrote: >> If you have a getter for 'chapter' in your action then this should work. >> >> <s:if test="%{#chapter == 'Library'}"> > > IIRC the "#" is only for named objects in the stack context (like #request, > #attr, etc.) so I'm not sure that will work. For example, if I have a > property "foo" on my action I can't access it with <s:property > value="#foo"/>. > > Dave > >> Randy Burgess >> Sr. Web Applications Developer > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]