struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S├ębastien LABEY" <>
Subject Re: [S2] ServletRequestInterceptor & ParameterAware
Date Thu, 04 Jan 2007 18:41:57 GMT
Hi Dave,

Thanks for your answer.
I know that getParameters().get("myParamater") returns an array of objects,
but isn't it supposed to return not only String[], but arrays of Objects
depending on the type described (if described) for the parameter through
getter and setter in the action : if getId() returns an Integer, why doesn't
getParameters().get("id") return an array of Integer, instead of an array of
String? Is it the "normal" behavior? I'm confused because depending on the
way that I get the value of a parameter, I don't get the same type (Integer
vs String)...
Am I wrong?

On 1/4/07, Dave Newton <> wrote:
> From: S├ębastien LABEY []
> > [...] when I use getParameters().get("id"), I receive a String[]...
> "getParameters" is plural; it returns as many "id"s as it can in an array,
> even if there's just the one.
> Dave
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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