> -----Original Message----- > From: Amol Ghotankar [mailto:[email protected]] > Sent: Tuesday, May 24, 2011 12:09 > To: Struts Users Mailing List > Subject: Issue: Action redirect do not include parameter as > complex objects? > > 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.
Don't do it that way. The design is flawed. > > Or > > Is there any way by which I can forward the complete action > context or value stack in the redirected action > Disclaimer: there are reasons why this is not common. That being said: Use the session or application scope to store the object and pass a token/key to the item stored in the url. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

