This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
sri ram kotireddy
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where's your code? What problems are you having with it?
 
sri ram kotireddy
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Action class:



Jsp code:


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

Thanks in advance.

Ram.
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ram,

Try this one.


where data is arraylist which coming from server side .
 
sri ram kotireddy
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks it is working.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!