This is how I got it of my form object
<logic:equal name="defaultForm" property="jspAction" scope="request"
value="indexDoc">

and this is how I got it out of a collection object
<logic:iterate name="attrib" id="collElem">
        <logic:equal name="collElem" property="isReadonly" value="readonly">

In the form object I have a getJspAction() method and in the collection
object I have a getIsReadonly() method.

I think with Hashmap you just need key or value, so where you have
property="mapkey1" change to key or value

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 6:10 PM
To: [EMAIL PROTECTED]
Subject: Hashmap and logic:equal


I am hoping that someone could point me in the right direction.
 I have been searching the archives and have not come accross anything that
I can relate to.

Using the equal tags, what is the best way to compare a value retieved from
a Hashmap?

I would like to put a Hashmap (or similar)  into request scope and use the
logic:equals tag. and do something like this.

<logic:equals name="mapName" property="mapkey1" value="<%= Constant.value
%>" > Show A </logic:equals>
<logic:equals name="mapName" property="mapkey2" value="<%= Constant.value
%>" > Show B </logic:equals>
<logic:equals name="mapName" property="mapkey3" value="<%= Constant.value
%>" > Show C </logic:equals>

Do I need to wrap this in simple class?
The docs make reference to the support of indexed properties, is there a
way to get the tag to look up the name of the key?


Thanks All



--
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