Not to mention that's not how URL parameters work--all you can send is strings.

Dave

On Tue, May 24, 2011 at 12:40 PM, Maurizio Cucchiara
<maurizio.cucchi...@gmail.com> wrote:
> Aside from you're using an old version of S2, I don't think your approach is
> the best one. Why should you pass every parameters? You could simply pass
> just the id and then load the user object inside your loadAdd method.
>
> On 24 May 2011 18:08, Amol Ghotankar <ghotankaru...@gmail.com> wrote:
>
>> Hello,
>>
>> I have tried an example in which i have inserted a user using insert method
>> of UserAction class.
>>
>> On insert I have redirected the success to loadAdd method of UserAction.
>>
>> During redirect I have passed the parameter as
>>
>> <param name="user">${user}</param>
>>
>> In struts 2.0.14 this gives an ognl exception.
>>
>> whereas when I pass
>>
>> <param name="user.id">${user.id}</param>
>>
>> it works.
>>
>> My observation says this is a bug in struts or ognl that it does parse
>> composite objects while it parses simple data types.
>>
>> Any work-around please suggest.
>>
>> Or
>>
>> Is there any way by which I can forward the complete action context or
>> value
>> stack in the redirected action
>>
>>
>> With Best Regards,
>>
>> Amol Ghotankar
>> Technical Lead
>> Cursive Technologies Pvt. Ltd.
>> 104, A1 Wing, W Sector,
>> Masulkar Colony, Ajmera,
>> Pimpri, Pune-18 INDIA
>> O: +91 2020 270 570
>> M: +91 9960 980 419
>> www.cursivetech.com
>>
>>
>> CURSIVE TECHNOLOGIES EMAIL NOTICE
>> The information contained in this email and any attachments is confidential
>> and may be subject to copyright or other intellectual property protection.
>> If you are not the intended recipient, you are not authorized to use or
>> disclose this information, and we request that you notify us by reply mail
>> or telephone and delete the original message from your mail system.
>>
>
>
>
> --
> Maurizio Cucchiara
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to