RE: ParametersInterceptor setting values using a String[]

2008-02-18 Thread Matthew Seaborn
Your right: looks like SiteMesh was sending the parameters through to another action. Thanks for the help. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 14 February 2008 11:17 To: Struts Users Mailing List Subject: Re: ParametersInterceptor setting values

ParametersInterceptor setting values using a String[]

2008-02-14 Thread Matthew Seaborn
This appears to have been mentioned a number of times in the Struts 2 and XWork forums but I cannot find a real answer: Using Struts 2.0.11 I am experiencing the following problem. I have an action with the method setId(Integer id) { ... } When this value is set via a HTTP request

Re: ParametersInterceptor setting values using a String[]

2008-02-14 Thread Daniel Baldes
Matthew Seaborn wrote: Why is this happening and short of creating my own TypeConverter or blocking it in the logger config, how can I stop this error being logged for GET requests? AFAIK this error is only logged in devMode.

RE: ParametersInterceptor setting values using a String[]

2008-02-14 Thread Matthew Seaborn
Exception caught setting '+name+' on '+action.getClass()+: + e.getMessage()); } } -Original Message- From: Daniel Baldes [mailto:[EMAIL PROTECTED] Sent: 14 February 2008 10:14 To: Struts Users Mailing List Subject: Re: ParametersInterceptor setting values using a String[] Matthew

Re: ParametersInterceptor setting values using a String[]

2008-02-14 Thread jeromy . evans
Hi Matthew, The params interceptor is calling setId on ActionSupport (the default action), not on your action that has the setId method, so an exception is being thrown as there's no matching setter whatsoever. You may have a config error. All params are treated as arrays because its valid in