Discussions

Web tier: servlets, JSP, Web frameworks: How can I upload a file to a servlet with parameters?

  1. <input type="file" name="list.txt"/>
    <input type="hidden" name="Company" value="acme"/>
    <input type="hidden" name="Employee" value="wileECoyote"/>

    I am uploading the file properly but the parameters are all nulls.
  2. How?

    Post the transmitter code (Or is it IE / Netscape)? and the servlet code so it's easier to see what's happening.

    CHz

    Tony
  3. Go there is the answer of ur Q
    http://forum.java.sun.com/thread.jsp?forum=31&thread=147609