-
Spring annotations will work fine if you remove
enctype="multipart/form-data"
.@RequestParam(value="txtEmail", required=false)
-
You can even get the parameters from the
request
object .request.getParameter(paramName);
-
Use a form in case the number of attributes are large. It will be convenient. Tutorial to get you started.
-
Configure the Multi-part resolver if you want to receive
enctype="multipart/form-data"
.<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="maxUploadSize" value="250000"/> </bean>
Refer the Spring documentation.