Solved

How to Pass Array from Servlet to Javascript?

Posted on 2000-03-13
1
795 Views
Last Modified: 2013-11-24
i want to pass the array element from java servlet to javascript, how can i?
0
Comment
Question by:kulsmadya
1 Comment
 
LVL 3

Accepted Solution

by:
yuvalg earned 50 total points
ID: 2612328
If you servlet generates an HTML file as a response o a user action , you can generate javascript code (within the html) that declares an array and assigns the relevant values (which are taken from a java array you maintain in your servlet).

yuval.

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now