HI
I want to use Map in my AcionMap class.What i have written is :
In
JSP file:
<html:text property="value(name)"/>
In ActionForm class:
Map map = null;
public Object getValue(
String key)
{
return map.get(key);
}
public void setValue(String key , String value)
{
map.put(key , value);
}
public Map getMap() {
return map;
}
and in Action class i write:
String name = (String)testForm.getValue("name");
but now at this place 'name' is coming to be null.
What mistake i am making.
Thanks
Regards
Gaurav
public void setMap(Map map) {
this.map = map;
}