I should correct myself. My problem may not be related, since it was due to
the CookieInterceptor's handling of setValue.

Can you post your pojo and your query string?



cilquirm wrote:
> 
> Do you have struts.devMode = true?
> 
> I had the same problem and I was forced to change struts.devMode = false
> 
> I believe this is a change from 2.0.6  ( and in some regards, a worse one
> at that ).
> 
> I'm still investigating it, but please try turning devMode off and seeing
> if it helps.
> 
> 
> 
> Scott Kingdon wrote:
>> 
>> I am using Struts 2. I get this error whenever I turn on validation. The
>> struts automatically returns the input page.
>> 
>> 07:42:11,349 INFO  [STDOUT] 07:42:11,349 ERROR [ParametersInterceptor]
>> ParametersInterceptor - [setParameters]: Unexpected Exception catched:
>> Error
>> setting expression 'name' with value '[Ljava.lang.String;@188e507'
>> 
>> There are several parameters that are being passed in to the action. It
>> is
>> only failing in this one. I have changed the name of the parameter. But
>> the
>> problem persists with that name.
>> 
>> struts.xml action config includes this interceptor:
>> <interceptor-ref name="paramsPrepareParamsStack"/>
>> 
>> If I remove the validation xml the problem goes away. But then I have
>> lost
>> validation. If I remove 'name' from the validation in the xml the problem
>> is
>> still there. That is, even if there is no mention of the 'name' parameter
>> in
>> the validation xml, I still get the error.
>> 
>> I have other Actions that are configured the exact same way and work just
>> fine.
>> 
>> I have tried rebuilding from scratch. No fix there.
>> 
>> It looks like somehow there is are two 'name' parameters being sent in.
>> So
>> struts is handling it with an array. To ensure this is struts I have sent
>> requests to the server by pasting the url in the browser with only one
>> name
>> paramater. I still get the error.
>> 
>> I feel like I have done everything but the one thing that will work.
>> grrrr!
>> 
>> Any ideas?
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Validation-dies-because-of-request-param-array--tf4018521.html#a11413932
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to