aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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: 61417
    
  67

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.
 
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