In my database I have a int field called accountType. The data to be stored in that field is coming from select element (html) with different 3 different options as follows:
I have a servlet that gets the parameter from the html elements. For a string I know I have to use something like , However I'm a little confused about how to get the selected option value as an int so I can store it as int using a DB class.
I will appreciate any suggestions on how to approach this.