Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 841
  • Last Modified:

How to Pass Array from Servlet to Javascript?

i want to pass the array element from java servlet to javascript, how can i?
0
kulsmadya
Asked:
kulsmadya
1 Solution
 
yuvalgCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now