File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
How to invoke struts action through a simple java class
reg. sendRedirect
Pass control to another Action
Help: inconsistent explanation on jsp:forward?
Action forward to Action losing request objects