I think you can't...
if you want to display name, then you need to have a getName() and setName()
----- Original Message -----
From: "Antony Paul" <[EMAIL PROTECTED]>
To: "struts" <[EMAIL PROTECTED]>
Sent: Monday, December 01, 2003 11:36 AM
Subject: Using map backed forms beans
> Hi,
> When I use an ActionForm which have a HashMap to store values as
> specified in chapter 4 of the users guide, the name of the text field is
not
> properly displayed. My code is given below.
>
> ActionForm
>
> private Map map = new HashMap();
> public void setMap(String key,Object value){
> map.put(key,value);
> }
> public Object getMap(String key){
> return map.get(key);
> }
>
> in JSP i use this coding.
>
> <html:text property="map(name)" size="15" maxlength="25" title="User ID"/>
>
> When it is displayed on browser the name is displayed as map(name). I want
> it to be just name. (It is simple example. I need dynamic generation) How
to
> do it.
>
> Antony Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]