Here i want to get the value from List box from Jsp to Servlet.
Here actually am using Two Listbox, using Javascript i have done moving Listbox Values to one Listbox to another Listbox,but in Jsp when i click button for the Servlet page to get the value of Listbox values it gives me an NullpointerException.if i select any values mean its show in Servlet.
this is the coding which i have created in jsp page for this process.
<form name="f1" action="insert" method="POST" >
<select name="reg" size="4" multiple="multiple">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<select name="reg1" size="4" multiple="multiple">
</select>
<input type="submit" value="Go!" name="b1" />
</form>
here i use to move the items from first listbox to second listbox ...that process has done using javascript.now i want to move the second listbox values to Servlet[here i should not select the second listbox values]
this is my problem..please give me a suggestion regarding..