Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to Pass Array from Servlet to Javascript?

Posted on 2000-03-13
1
813 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet doXXX methods 3 62
HashTable highest marks enumeration alternative 9 43
by zero exception 10 52
junit as external jar or library 7 22
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

840 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