Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

Copy Java Object into JavaScript Object

Thread view: 
Rahul - 23 Apr 2007 07:28 GMT
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
Andrew Thompson - 23 Apr 2007 07:53 GMT
...
>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.

Signature

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

info@hmdproducts.com - 23 Apr 2007 12:06 GMT
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.