Hi, i'm trying to populate a Map with the tag <s:textfield>, but when i read
the map in my action i find a String array and not a String.
In my JSP i have:
....
<s:textfield key="proprieta['pap']"/>
....
where "proprieta" is my Map. In the action i have:
...
private Map<String,String> proprieta = new HashMap();
public Map getProprieta()
{
return proprieta;
}
public void setProprieta(Map proprieta)
{
this.proprieta = proprieta;
}
and in the method execute when i call getProprieta() it return me
{pap=[Ljava.lang.String;@1eef1eb}
that is a "String[]" corresponding to the key "pap" .
How can i tell to Struts2 to fill the map only with a simple String and not
with a String[]?
Stefano
--
View this message in context:
http://www.nabble.com/textfield-and-Map-tf3987607.html#a11322256
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]