This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes how to use jsp array in javascript? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "how to use jsp array in javascript?" Watch "how to use jsp array in javascript?" New topic
Author

how to use jsp array in javascript?

Komal Arora
Ranch Hand

Joined: Sep 30, 2010
Posts: 91

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


OCPJP
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to use jsp array in javascript?
 
It's not a secret anymore!