0 Replies Latest reply on Nov 26, 2007 7:59 PM by Rupang Desai

    Issue with parsing multipart/form-data request in Struts2

    Rupang Desai Newbie


      I am trying to upload a text file less than 50KB using a client program.
      Client program makes a call to servlet using POST method and content type as multipart/form-data

      Server Side is JBoss-4.0.5.GA with Struts2 and Spring2

      The Servlet with doPost Method is getting called from the (above) client method. However as soon as request arrives on the server following message is displayed

      [STDOUT] 14:52:02,324 INFO [Dispatcher] Unable to find 'struts.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir

      [STDOUT] 14:52:02,480 ERROR [MultiPartRequest] org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly

      Kindly help me to find solution for this issue!