wood burning stoves 2.0*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
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: 60782
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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.
 
Consider Paul's rocket mass heater.
 
subject: Converting a list of values from Struts2 action class to an array in Javascript
 
Similar Threads
Struts2 iterator
How to retain automatically generated fields on pageload in struts2
json in struts2
Struts2 iterator
struts2