Lab 4 2001 Servlet and Form

Create a servlet in project Lab4_001 with method post. This servlet should have variables (and corresponding form items), name, month, onOff, check1, check2 and check2. In the servlet you should write out the results of the data entry using the following lines.

   out.println("Name is "+name+" month is "+month+" onOff is "+onOff +"<BR>;");
   out.println("check 1"+check1+" check2 "+check2+" check3 "+check3 +"<BR>;");

Finally, your form should be converted to look like the following. The month should return a number between 1 and 12, the radio buttons should return Little, Medium or Large and the checkboxes 1, 2, and 3 corresponding to the label.



name

month
little medium large
one two three

press Submit to launch servlet Servlet1