[jboss-user] [O'Reilly JBoss 3.0/4.0 Workbook] - Issue with parsing multipart/form-data request in Struts2

rupang do-not-reply at jboss.com
Mon Nov 26 19:59:26 EST 2007


Hello, 

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! 

Thanks, 
Rupang

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107912#4107912

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107912



More information about the jboss-user mailing list