You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Justin Ashworth <ju...@ashworth.org> on 2002/12/11 17:34:17 UTC

Map-backed ActionForms with JSTL

Hi,

Has anyone been able to successfully access properties in a map-backed
ActionForm with JSTL?  I haven't been able to come up with the expression
language to retrieve properties out of a Map in my ActionForm.  If this is
possible, what is the syntax?  I have tried <c:out
value="${profilePage[property].ID}", but that didn't return anything.  I
don't get a compilation error - it just returns empty.  profilePage is my
ActionForm, property is the name of the Map within my form (with the
appropriate getProperty(String) and setProperty(String, Object) methods),
and ID is the key within the property Map.

Once I get this figured out, I'm going to try to replace ID with a constant
variable defined in some class.  Ideas on that?

Thanks,

Justin


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>