You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pr...@in.efunds.com on 2003/07/31 13:24:03 UTC

hashmap in formbean

Hi,
     Is it possible to pass a variable like the following?
     <bean:write name="myFormBean" property="nameList(var1)"/>
I am having a HashMap in the formbean, and I want to get an element from the map with key as the
content of var1.
 if i use the hardcoded value instead of var1, i am able to get the results

Thanks,
Pramod

********************************************
This  electronic  mail  message  is  intended  solely  for  the  named  recipients  and  may contain
confidential  and  proprietary  business information of eFunds Corporation and all its subsidiaries.
If  you  are  not a named recipient, please notify the sender immediately.  You may not disclose the
contents  to  any  other  person;  use  this  electronic  mail message or its contents for any other
purpose; or further store or copy its contents in any medium.
********************************************


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


Re: hashmap in formbean

Posted by Nagendra Kumar O V S <na...@ikigo.com>.
try this.

<bean:write name="myFormBean" property='<%= "nameList("+var1+")" %>'/>

-- nagi
-------Original Message-------

From: Struts Users Mailing List
Date: Thursday, July 31, 2003 04:48:20 PM
To: Struts Users Mailing List
Subject: hashmap in formbean

Hi,
Is it possible to pass a variable like the following?
<bean:write name="myFormBean" property="nameList(var1)"/>
I am having a HashMap in the formbean, and I want to get an element from the
map with key as the
content of var1.
if i use the hardcoded value instead of var1, i am able to get the results

Thanks,
Pramod

********************************************
This electronic mail message is intended solely for the named recipients and
may contain
confidential and proprietary business information of eFunds Corporation and
all its subsidiaries.
If you are not a named recipient, please notify the sender immediately. You
may not disclose the
contents to any other person; use this electronic mail message or its
contents for any other
purpose; or further store or copy its contents in any medium.
********************************************


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


.