In your jsp / view, use the classic html <form/> and <select/> :
<form id="form" method="POST"> <select id="selected" name="selected"> <option value="1">First value</option> <option value="2">Second value</option> </select> </form>
In your controller, this method will get the selected value when the form request is sent:
@RequestMapping(method=RequestMethod.POST) public String submitForm(@RequestParam String selected) {
To fill in the selection field, you need to manually transfer the value from the controller to view it and finally select it using JSTL (or whatever you are using) / javascript.
source share