my dog learned polymorphism
The moose likes Struts and the fly likes Converting a list of values from Struts2 action class to an array in Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Converting a list of values from Struts2 action class to an array in Javascript" Watch "Converting a list of values from Struts2 action class to an array in Javascript" New topic
Author

Converting a list of values from Struts2 action class to an array in Javascript

sri ram kotireddy
Greenhorn

Joined: Mar 13, 2012
Posts: 16
Hello Folks,

Can you please help me in Converting a list of values from struts2 action class to a an array in javascript

Suggessions?

Thanks,
Ram.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56157
    
  13

Where's your code? What problems are you having with it?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
sri ram kotireddy
Greenhorn

Joined: Mar 13, 2012
Posts: 16
Action class:



Jsp code:


How to convert list variable in action class to javascript array values?

Thanks in advance.

Ram.
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Ram,

Try this one.


where data is arraylist which coming from server side .
sri ram kotireddy
Greenhorn

Joined: Mar 13, 2012
Posts: 16
Thanks it is working.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting a list of values from Struts2 action class to an array in Javascript
 
Similar Threads
struts2
How to retain automatically generated fields on pageload in struts2
Struts2 iterator
json in struts2
Struts2 iterator