struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Belfer-Shevett <...@homeport.org>
Subject Re: Referring to Properties object via OGNL?
Date Mon, 14 Jul 2008 20:38:29 GMT
On Monday 14 July 2008 00:30:19 Jeromy Evans wrote:
> Dave Belfer-Shevett wrote:
> > In my JSP, I have:
> > Preferred cid is <s:property value="#attr.properties[preferredcid]"/><br>
>
> This expression reads "evaluate perferredcid, then get the value of
> #attr.properties[evalresult]".
>
> I expect you want. <s:property value="#attr.properties['preferredcid']"/>
>
> so it uses the literal string 'preferredcid' instead of evaluating it.
>
> Please let me know if that fixes it.  OGNL doesn't provide much useful
> feedback for cases like these.

That fixed it.  Is there a chance we can update the 'collections' page in the 
struts docs to give information like this?  

Thanks again.

	-d

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message