Yeah, using session to store objects works. I'm now able to get the
required Array of Object values using session.

Thank you so much.

On 2022/07/13 15:43:07 Yasser Zamani wrote:
> Hi,
>
> Thanks for reaching out!
>
> I think it will work, but only for simple objects like strings and
> numbers. Are they simple object and it doesn't work? then please provide
> your jsp and action related portions. If not, then I think you likely
> should use session to store complex objects.
>
> Regards.
>
> On 7/13/2022 6:12 PM, Shambhavi R wrote:
> > Hi,
> >
> >
> > I'm not able to get the array of objects from one Action Class to
another
> > in Struts 2.5.
> >
> > In short, the flow goes like this:
> >
> > Action Class A ---> JSP ---> Action Class B
> >
> > I have the array of Objects in Action Class A and I'm able to get those
> > values in the JSP redirected from Action Class A.
> >
> > On clicking a submit in the JSP, the execute() method of Action class B
> > gets executed and the Array of Objects in Action class B are always
null.
> >
> > I have getters and setters in both the Action Classes for the Array.
> >
> >
> >
> > Usually, to get values from one Action class to another, using hidden
> > properties in the JSP works. But it does not work in the case of Array
of
> > Objects.
> >
> >
> > I want to know how to get the Array of Object values in Action Class B.
> >
> >
> > Thanks,
> >
> > Shambhavi
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to