Aquarius24 Aquarius24 - 1 year ago 97
Java Question

Get selected dropdown value in servlet

I have below dropdown value in html and I am sending data to servlet using get method

<select name="country">
<option value="IN">India</option>
<option value="AU">Australia</option>
<option value="US">United States</option>

in servlet
when i do
i am getting IN, AU and US
instead of real country name

Answer Source


<select name="country">
<option>United States</option>


Or use the direct BCP47-Code (


Page 4 sais 2 ALPHA-Characters are minimum for locale:

language = 2*3ALPHA ; shortest ISO 639 code

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download