Hi all
I have lots and lots of doubts in JSP/Servelts. I am happy to see this site members responding so quickly..
I am retrieving some values from database into a Drop down list box say "Employee" based on the value selected I am passing a query again to the database to get value into another Drop down list box. The problem is when the page refreshes after loading values into the second list box, first list box options gets doubled (Arraylist items gets duplicated and it gets populated as and when I refresh the screen) I have stored the value of the selected option into a session and passed that to the
jsp page and cleared the ArrayList of first list box and now I got a new problem whenever page refreshes the first list box is empty (as I cleared the ArrayList at the end) how should I retain the values in the drop down list boxes without getting duplicate values for every screen refresh?
Even I am getting ArrayIndexOutofBound exception at some index position.
Please clarify as I am very new to JSP/Servlets..
Thanks a lot in advance.