I have a problem in javascript, actually I have a jsp page in which i have two list boxes which contains the datafrom the database.
Actually when i retriving data from the database, i am storing it in 2 arraylist and the iterating these two arraylist to display the data in the list boxes.

I have a problem, when i am selecting any option from first list box at that time depends upon the selection from the first list box the second list box should display values....

my question is how i pass the arraylist value from jsp to javascript.

please help me in this..