Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

List box in Jsp

843840Nov 4 2009 — edited Nov 6 2009
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..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2009
Added on Nov 4 2009
8 comments
3,496 views