Passing a Java object from one Struts action to another

Posted by Bernhard V on Stack Overflow See other posts from Stack Overflow or by Bernhard V
Published on 2010-06-16T10:02:44Z Indexed on 2010/06/16 10:12 UTC
Read the original article Hit count: 279

Filed under:
|
|
|
|

Hello!

In one of my Struts action I've got the following code in a method:

  ...
  List<Object> retrievedListOfObjects = c.getListOfObjects();
  return mapping.findForward("fw_view");
}

fw_view leads to a new Struts action with another Struts form. Let's say this form has got among others the following field

List<Object> listOfObjects;

I now want to pass the retrievedListOfObjects from within the first Struts action to the form of the following Struts action.

Is this possible without storing it in the session?

© Stack Overflow or respective owner

Related posts about java

Related posts about form