Below is the code which i have written to retrieve values from the database (I have added the whole code so it will be easier for you to understand what i am trying to say h
First of all, If you are trying to do something with MVC you should decouple your code. JSP file only access to the request with no java code at all.
So your Controller needs to do something like this.
request.setAttribute("ipsections",added.populateSelect());
and then, in your jsp file
${ipsection}