struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Belingueres <>
Subject [S2] problem setting parameters inside a Map
Date Wed, 14 Oct 2009 21:41:44 GMT

I have problems trying to set request parameters into a Map<Integer,String>.

My input form have a form with some hidden input:

<s:hidden name="mymap[1234]" value="YES"/>
<s:hidden name="mymap[45]" value="YES"/>

And in my Action have a private Map (with its getter and setter):

private Map<Integer,String> mymap = new HashMap<Integer,String>();

however I can't get the request parameters assigned to the Map.

I'm using S2 v2.1.6...any ideas?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message