Re: Problem validating multipart form data

2005-11-03 Thread Collin VanDyck
Niall, Thanks for the reply. This certainly helps (at least, helps me believe that I'm not doing something egregiously wrong in my webapp :). Collin Niall Pemberton wrote: Parameters parsed from the Multipart request are stored in the MulitpartRequestWrapper. However before Struts forward

Re: Problem validating multipart form data

2005-11-03 Thread Collin VanDyck
To be honest, I'm not sure exactly what the Struts framework is using to manage the file uploads. I simply create a FormFile member in my ActionForm and it gets populated correctly with the uploaded file data. Is this a parameter I can configure within Struts? Is there a feasible replacement

Re: Problem validating multipart form data

2005-11-02 Thread Niall Pemberton
Parameters parsed from the Multipart request are stored in the MulitpartRequestWrapper. However before Struts forwards the request it unwraps it, loosing those parameters. So when your validation fails this happens when it forwards to your "input". This can be resolved in a Servlet 2.3 environment

Re: Problem validating multipart form data

2005-11-02 Thread Adam Hardy
Collin, are you using org.apache.commons.fileupload.DiskFileUpload.parseRequest(request) ? I'm not sure anymore if this is wrapped by struts or not, but I guess it is and it's this bit that isn't working. Adam Collin VanDyck on 02/11/05 20:53, wrote: Hello All Any ideas on this one? I

Re: Problem validating multipart form data

2005-11-02 Thread Collin VanDyck
Hello All Any ideas on this one? I switched to a manual validation, which works, though I'd much rather use the built-in mechanism to validate where possible. thanks Collin Collin VanDyck wrote: Hello! I'm using struts-1.2.7. I have form that needs both file upload functionality as well