Click here to Skip to main content
15,848,319 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have doubt in array list implementation in struts2.

I have created a array list in java script .
But how access the arraylist value in action class using index.

can some one help me out.

Thanks
Posted

1 solution

I have solved it myself .created the arraylist in javascript and setted the list value to hidden value in jsp using javascript.
Accessed the hidden variable value in action class.
The list value can be accessed as string . split the string using comma separator.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900