- download the jar file com.oreilly.servlet.MultipartRequest
- import
com.oreilly.servlet.MultipartRequest in your servlet / .java file contained in Web-Inf/classes
in your servlets doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { method add
MultipartRequest m=new MultipartRequest(request, "C:\SavingDirectory");
then call your variables from the form as below;
String pdate = m.getParameter("plandate");
and print them from the servlet like out.println(pdate);