aspose file tools*
The moose likes Struts and the fly likes Action forward to Action losing request objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action forward to Action losing request objects " Watch "Action forward to Action losing request objects " New topic
Author

Action forward to Action losing request objects

amit gupta
Greenhorn

Joined: Dec 29, 2006
Posts: 23
Hi,

If I use actionForward to navigate from Action1 --> to Action 2, does Action forward loses the request objects ?

if so is there any way to retain the request object in Action2.

SCJP 1.5, SCWCD 5.0
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If it's a redirect, yes, you'll lose the original request.

But action chaining is almost *always* a bad idea.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Action forward to Action losing request objects