This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use jsp array in javascript?

 
Komal Arora
Ranch Hand
Posts: 91
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

i have a jsp array as follows:



now i wish to use the array "word_list" in a javascript. Can anybody please suggest as to how i can do this?

thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to recreate the data using a JavaScript construct. Remember, all a JSP is doing is creating an HTML page to send to the browser. That page can contain JavaScript text.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic