Jhenni,
Understand that you need to have the values at hand to populate in the dropdown box or select control in HTML.
We know a way for getting the values at runtime ie., dynamically. JSP helps you to do that.
Now, how you will get the values from database? Obviously a Java code (it can be any class,
servlet , model (Java Bean) which is aware of dealing with a database and retrieving).
Once you get the value you can assign the collection of values to a custom tag in case of
Struts and other frameworks. In plain JSP, you can make use of scriptlets in the beginner's level with which you can just iterate it using an Iterator as you do in a plain Java class and assign the individual values for each "option" inside your "Select" control.
So your flow should be
Select Box in JSP <---> Java Bean / Servlet <---> Database.
Hope this helps! :thumb: