By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,225 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

passing a javascript array to java

P: 11
Hello, I have an array in my javascript file:
var locations=new Array();

and I want to pass the attributes of the array into my java file, does anyone know how can this be done?
Thank you in advance!
Apr 9 '08 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 392
Please do not cross post the same question in multiple forums.

I want to pass the attributes of the array into my java file, does anyone know how can this be done?
What is your Java file? Where is it running? Java and JavaScript are completely un-related they can not pass values directly to each other. If your file is a servlet then you would need to send the elements in the array as parameters in a GET or POST request.
Apr 9 '08 #2

Post your reply

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