struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Belingueres <belingue...@gmail.com>
Subject Re: [S2] problem setting parameters inside a Map
Date Wed, 14 Oct 2009 22:27:31 GMT
meh never mind...it was a validation.xml file that I was unaware of
(without the action name in the middle of the file name) and this
_short-circuited_ validaton was failing and the parameter never got a
chance. Solved.

2009/10/14 Gabriel Belingueres <belingueres@gmail.com>:
> 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