I have the following setup for my web-app:
1.) A Bean class.
2.) A DAO class that returns an arraylist containing Bean.
3.) A JSP page that has a dropdown menu.
I need to populate this dropdown menu from arraylist created in step 2. I don't know much about JSTL.I managed to populate my dropdown through scriptlets (using for each loop and iterating over the arraylist stored in session).
Now I need to free my code from scriptlets. Should I learn JSTL or use AJAX (or jquery)? Also do I need to call a servlet first to return an arraylist, in case I plan to use <jsp:useBean> tag?