Re: [S2] ServletRequestInterceptor & ParameterAware

2007-01-05 Thread Sébastien LABEY
Right, request parameters are String/value pairs, but because Struts2 can convert these parameters to the right type through the getters/setters described in the action, I was wondering if this could be possible to do the same for the Map of parameters that I get through getParameters(). In this c

RE: [S2] ServletRequestInterceptor & ParameterAware

2007-01-04 Thread Dave Newton
From: Sébastien LABEY [mailto:[EMAIL PROTECTED] > 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 sett

Re: [S2] ServletRequestInterceptor & ParameterAware

2007-01-04 Thread Sébastien LABEY
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

RE: [S2] ServletRequestInterceptor & ParameterAware

2007-01-04 Thread Dave Newton
From: Sébastien LABEY [mailto:[EMAIL PROTECTED] > [...] 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 ---

[S2] ServletRequestInterceptor & ParameterAware

2007-01-04 Thread Sébastien LABEY
Hi all, I've experienced something that I think strange, but I would like to know if it is a normal behavior. I'm using Struts 2.0.1 with the default interceptors configuration. I have a generic Action that implements ParametersAware (and ServletRequestAware and SessionAware) and I have the gette