struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pratt <thechrispr...@gmail.com>
Subject RE: Separate Java Bean Class for Getter/Setter method.
Date Thu, 19 May 2011 15:14:24 GMT
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_12@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message