Re: Upgrading Struts 1.1 to Struts 2 with tiles

2011-05-24 Thread Sachin Lale
Hi, I might not understand what null definition means. Also i don't want to loose the current flow of struts 1.1 (using TilesPlugin) and also Struts2 to work using old tiles definition. I am using tile 2.2.2 and followed the instructions given on http://tiles.apache.org/framework/migration/con

RE: Issue: Action redirect do not include parameter as complex objects?

2011-05-24 Thread Jason Pyeron
> -Original Message- > From: Amol Ghotankar [mailto:ghotankaru...@gmail.com] > 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 insert

Re: Issue: Action redirect do not include parameter as complex objects?

2011-05-24 Thread Dave Newton
On Tue, May 24, 2011 at 1:35 PM, Amol Ghotankar wrote: > 1, Why I need to pass the object and not the id. > --> I have just inserted it and do not want additional reads from database. Doesn't matter (and if your caching is configured properly, shouldn't do a round-trip anyway). Look at a browser

Re: Issue: Action redirect do not include parameter as complex objects?

2011-05-24 Thread Amol Ghotankar
Ok. 1, Why I need to pass the object and not the id. --> I have just inserted it and do not want additional reads from database. 2. Can't image url & get request. --> Exactly. Why do we have just GET here, can't we have post also. 3. Old version. --> Applications can't be upgraded for every vers

Re: Issue: Action redirect do not include parameter as complex objects?

2011-05-24 Thread Maurizio Cucchiara
I can't resist to imagine a connection pool that pass over a get request :) -- Maurizio Cucchiara

Re: Issue: Action redirect do not include parameter as complex objects?

2011-05-24 Thread Dave Newton
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 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 p

Re: Issue: Action redirect do not include parameter as complex objects?

2011-05-24 Thread Maurizio Cucchiara
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 wrote: > Hello, > > I have tried an ex

Issue: Action redirect do not include parameter as complex objects?

2011-05-24 Thread Amol Ghotankar
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 ${user} In struts 2.0.14 this gives an ognl exception. whereas when I