hi frendz.. I wana know how can i pass an array that is made in javascript..i.e i am calling a javascript method on submission of a jsp in which i made an array containing some values.Now i want to send this array to controller servlet. Plz help asap.
You cant. What you can do is create a comma separated list of values from your javascript array as a string, pass it to the controller servlet where you again split it up into the original strings (use java.lang.String.split() )
We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
You could call a javascript function upon submit that dynamically creates a multi select form input type and then loads it with values and selected attribute with values for each item in the array, and then when passed to the Servlet you can call request.getParameterValues("nameYouCalledDynamicSelect") to return a String[].