struts-user mailing list archives

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

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?

TIA
Gabriel

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message