not a JSTL expert here, but have you tried ${profilePage.property["ID"]}?

-----Original Message-----
From: Justin Ashworth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 10:34 AM
To: Struts Users Mailing List
Subject: 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:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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

Reply via email to