Anuj Batra wrote:According to me you cannot do it. The array llist creation is on the server side. So when the array list is processed (the whole code in jsp) it is converted into an html page and sent to the client. on client side you do not have any server side code. So it is not possible. However there are certain ways in which this could be achieved like
You can use directly the variable, no need to put it in a hidden field, just use it in the script code: var arrayString = '${temp}'.split(','); or whatever other code you need.