Here is the form submission part
var form=document.forms["mainForm"];
form.setAttribute("action",url_action);
form.setAttribute("method","post");
form.setAttribute("enctype","multipart/form-data");
form.setAttribute("encoding","multipart/form-data");
form.submit();
Now how can I get all the parameters or form input type names and corresponding values to a map in servlet?
Map example:
name=Abhishek age=25 filename=abc.txt