The best practice to retrieve HTML form fields in Servlet is to use apache commons-fileupload 1.3 jar.
Using iterator iterate through multipart HTTPServletRequest and use a for loop to check if it isFormField(), then
String item1=null,item2=null,item3=null;
if(item.isFormField())
{
if(item.getFieldName().equals("field1"))
{
item1=item.getString();
}
if(item.getFieldName().equals("field2"))
{
item2=item.getString();
}
if(item.getFieldName().equals("field3"))
{
item3=item.getString();
}
}
and your HTML file should be like this