File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes how to use jsp array in javascript? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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: 56168
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to use jsp array in javascript?
 
Similar Threads
resultset
How to write retrieved data into javascript Array?
how to print values on jsp page fetched from servlet
Using ResultSet
parameter from jsp to javascript function?