2
<action name="someAction" class="">
    <result name="showDetails" type="redirectAction">
        <param name="actionName">someAction</param>
        <param name="method">someMethod</param>
        <param name="javabean.fieldOne">${javabean.fieldOne}</param>
        <param name="javabean.fieldTwo">${javabean.fieldTwo}</param>
        ...
        ...
    </result>
</action>

So instead of explicitly listing all the fields that I want to pass to the method, is it possible to pass the whole bean as parameter to the next action?

Note: I've tried ${javabean}, but it gave me some class reference number as a string literal in an object. AFAIK, there's no way to recreate the object with this reference id.

Shog9
  • 156,901
  • 35
  • 231
  • 235
user6332430
  • 442
  • 10
  • 29
  • 1
    Store it somewhere (e.g. session) and fetch in other action. – Aleksandr M May 13 '16 at 21:39
  • Your best solution is definitely to use the session; a workaround (more as an exercise of style than something that should be used in a real world application), however, is described here: http://stackoverflow.com/a/25685548/1654265 – Andrea Ligios May 13 '16 at 22:38
  • You can use one parameter that will keep the whole bean serialized to string. – Roman C May 15 '16 at 15:20
  • Thanks guys. I've solved the problem by storing the javabean in session. Thanks again. – user6332430 May 20 '16 at 20:22

0 Answers0