Copy Java Object into JavaScript Object

R

Rahul

Hi
I need to copy the entire ArrayList object into the JavaScript Array,
so that I can display the list on the page and move the list elements
up and down without any server side call.

Can someone help me out, how can I accomplish this.

Rahul Srivastava
 
A

Andrew Thompson

Rahul wrote:
...
I need to copy the entire ArrayList object..

Coming from what? A Java applet, application,
servlet, ..banana?
... into the JavaScript Array,
so that I can display the list on the page and move the list elements
up and down without any server side call.

Can someone help me out, how can I accomplish this.

Java programmers might think they can, but for
the people that actually *know* JavaScript, post
to comp.lang.javascript.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200704/1
 
I

info

Hi
I need to copy the entire ArrayList object into the JavaScript Array,
so that I can display the list on the page and move the list elements
up and down without any server side call.

Can someone help me out, how can I accomplish this.

One way, using Java, is to make a JSP or servlet produce the
JavaScript page. In a JSP use:
<%@page contentType="text/javascript" %>
Then you can format the ArrayList as you like for JavaScript use--
resorting, etc. Check browser cache issues when you test.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top