No, you're doing it correctly. There's a brief discussion about this right now on the struts-dev list. Struts will let you specify a value, but most browswers ignore it.
We will be documenting this better after tonight. -- James Mitchell Web Developer/Struts Evangelist http://jakarta.apache.org/struts/ > -----Original Message----- > From: Susan Bradeen [mailto:[EMAIL PROTECTED] > Sent: Friday, February 28, 2003 2:12 PM > To: [EMAIL PROTECTED] > Subject: Repopulating FormFile field after form validation fails. > > > In searching the archives, it appears that, by deliberate design for > security reasons, the FormFile field value cannot be > repopulated after > validation using the methods typical to other form fields. > The jsp page > source code shows a value for the field, > > <input type="file" name="linkFile" > value="org.apache.struts.upload.CommonsMultipartRequestHandler > [EMAIL PROTECTED]"> > > but the field itself in the jsp is still blank. I am guessing this is > proper browser behavior. Maybe I am wrong already? If not, is there a > common work-around that I have missed for setting the > <html:file> value > with the user's original selection, or does everyone just > make the user > browse and select their file over again? > > An archive post on the subject: > http://marc.theaimsgroup.com/?l=struts-user&m=102644179705188&w=2 > > Any comments are appreciated. > > Susan Bradeen > SoftLanding Systems, Inc > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > 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]