Passing data from one Struts Action class to another
843833Nov 14 2001 — edited Feb 17 2007Too 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?