469,604 Members | 2,376 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,604 developers. It's quick & easy.

Arraylist inside javascript

184 100+
hi all,
I have retreive arraylist values inside javascript...
using loops i need to get it...
please any one help me...
Thanks in advance.

-Hamsa
Dec 7 '07 #1
2 13445
acoder
16,027 Expert Mod 8TB
Post your code .
Dec 7 '07 #2
Expand|Select|Wrap|Line Numbers
  1. out.println("<SCRIPT type='text/javascript'>");
  2.     out.println("var serviceArray = new Array();" );
  3.     for(int i=0; i<aaa.length;i++){
  4.  
  5.  
  6.         out.println("serviceArray.push("+aaa+");");
  7.  
  8.  
  9.  
  10.     }
  11.     out.println("</SCRIPT>");         .

u can use this code inside ur jsp. with aaa(ur parameter)
Dec 7 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Tamir Khason | last post: by
6 posts views Thread by Michael C | last post: by
4 posts views Thread by Dot net work | last post: by
4 posts views Thread by tma | last post: by
3 posts views Thread by =?Utf-8?B?R3JlZw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.