struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antony Paul" <>
Subject Using map backed forms beans
Date Mon, 01 Dec 2003 10:36:10 GMT
    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.


private Map map = new HashMap();
 public void setMap(String key,Object 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:
For additional commands, e-mail:

View raw message