Notify of new replies to this comment - (on), Notify of new replies to this comment - (off). Java Tutorial - Get selected value from JTable in Java. Read the selected country on the server side To read the value of the selected country when the user submitting the form, simply write this code in a Java servlet class: String countryCode = request.getParameter("country"); Note that the value returned is ISO country code. several choices. Then only you can populate the list from your DB. String [] drpdownvalue = request.getParameterValues("drplistalbum"); and i have made a dropdown like this If the value does not exist, the drop-down list will display an empty option For utilizing the methods of Select class we have to import org.openqa.selenium.support.ui.Select in our code. In this post, we will see how to get selected value of dropdown in JavaScript and jQuery onchange event. The idea is to get an array of the all