Yes, the map is Map<String,String[]>. Because the HTTP protocol allows
sending multiple parameters with the same name.
(*Chris*)
On May 19, 2011 2:06 AM, "arin_12" <arin...@lycos.com> wrote:
> I also tried Map <String String>. But the same result.
> .toString also does not help any thing. It looks like the Parameter from
> request is returning
>
> Map<String , String[]>.
>
> Later If i run the value as String array I get the value. The length is
> always sets to 1.
>
> String st[] = map.get("param");
> value = st[1];
>
> This gives me the exact value. This extra code I am writing in every
action
> class.
>
> Any better solution ?
>
> --
> View this message in context:
http://struts.1045723.n5.nabble.com/Separate-Java-Bean-Class-for-Getter-Setter-method-tp4385274p4408881.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>