Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing data from one Struts Action class to another

843833Nov 14 2001 — edited Feb 17 2007
Too bad jakarta.apache.com/struts doesn't have a forum, perhaps this is the next best thing...

I'm using the Struts framework, and I have an Action class which forwards to another Action class, but I would also like to pass along some parameters.

Both actions work fine for what they do when called by a JSP page, but in the case where one must call another and pass along info, I haven't figured out how to do it.

In the first Action I've tried:
request.setAttribute( "name", actionForm);
request.setAttribute("name", "1"); //the actual value I want passed

But the ActionForm in the receiving action is never getting populated in the receiving action. Any ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2007
Added on Nov 14 2001
4 comments
498 views