This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a dropdown menu on my JSP page. data in this dropdown menu is supposed to come from Database.
I am familiar with design patterns like DAO,VO(DTO),Singleton etc..
Could anybody tell me what's the best practice to populate this dropdown menu from the data which came from Database.
Joined: Feb 24, 2004
How about putting the DAOs inside the ActionServlet and thus getting dropdown data in ActionServlet only. Once we have data(Collection) , we can put that in to the scope (request or session) and then use it in View ( JSP) is this a good solution ?