File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Passing arraylist as hidden variable in JSP Struts2 framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Passing arraylist as hidden variable in JSP Struts2 framework" Watch "Passing arraylist as hidden variable in JSP Struts2 framework" New topic
Author

Passing arraylist as hidden variable in JSP Struts2 framework

Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
HI
I am facing problem while I am terating list of list in jsp. i am able to get the value from action class to jsp and displayed properly. but I need to modify those value on the screen and take it to second screen. I am facing when i am passing arraylist as hidden variable.

There are 2 class. one A1 class is having getter setter of emplyee and address.
another class A2 is having getter setter of list of first A1 class.

First iterator is of A2 class and inside that iterator of A1 class.

Its really urgent.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Please post your code, it can be helpful to resolve your issue.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33


Please find the attached code. I am able to get data from Action class and put it on JSP but will taking changed data from the current screen to next screen it is creating problem.

I am getting problem at "<s:hidden name="pointListVOList[%{#swapPointProfile.tcMBankSwapPointCustomVOListRight}]"></s:hidden>" and "<s:hidden name="pointListVOList[%{#swapPointProfile.tcMBankSwapPointCustomVOListLeft}]"></s:hidden>". Rest everything is working fine.
Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
Please reply.
Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing arraylist as hidden variable in JSP Struts2 framework