the best solution to this is to use AJAX.
Stringly disagree. There is no need to wait until the page is loaded to set up the dropdown using Ajax. How convoluted!
Eric suggested the best solution: in your controller, gather the data required to populate the dropdown, send that data to the JSP, use JSTL to iterate over the data and emit the markup. Straight-forward and simple.