I have the same problem but unable to find solution yet, except to validate as much as I can in the browser side so that I can retain the file field.
-Dan ----- Original Message ----- From: "John Brayton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 5:48 PM Subject: Advice on File Uplaod > I am somewhat of a Struts newbie, and I could use some advice on > implementing a component of an application. > > I have a form that allows a user to upload a file, along with > associated meta-data. If the form's validate() method returns > ActionErrors, the form will keep the originally entered fields as > default values so that the user can just fix his or her errors and > continue. > > Is there a facility to do something similar with a file? I don't > really want to have the file transmitted back and forth in the case > of a form validation error, and there does not seem to be a mechanism > in HTML for including an entire file as a default value anyway. But > I do not want the user to need to re-select the file from the file > system just because one or more of the meta-data fields has a > validation error. > > Any thoughts on how to go about this? > > Thanks! > > John > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]