This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes Struts and the fly likes html:file value is reset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:file value is reset" Watch "html:file value is reset" New topic

html:file value is reset

John Spence

Joined: Jan 05, 2004
Posts: 2
I have a form that contains several input fields, one being an html:file tag. If validation of the form fails, the value the user supplied to the html:file field is lost and the user must enter the value (via the browse button) again.

Can anyone help me understand why the value of the html:file field is being reset and what I can do to prevent it?
It is sorta covered in the JavaRanch Style Guide.
subject: html:file value is reset