wood burning stoves
The moose likes Struts and the fly likes FormFile path gets reset during submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "FormFile path gets reset during submit" Watch "FormFile path gets reset during submit" New topic

FormFile path gets reset during submit

Ajay Singh
Ranch Hand

Joined: Jan 04, 2008
Posts: 105
Hi all

Basically i have a form which contains textfield,browse button for file uploading(FormFile class is used) and a submit button to submit the file data to the server. I am able to see the file data in the server.But the problem is that the full file path gets reset whenever i click the submit button after browsing the file.I want to retain the file path in that textfield.Can someone guide me.I am using Struts 1.1 tomcat 6.0.2 and JDK 1.5

David Newton

Joined: Sep 29, 2008
Posts: 12617

Browsers do not maintain file input element filenames, nor can they be pre-loaded. This isn't an issue with Struts, but just the way browsers work.
I agree. Here's the link: http://aspose.com/file-tools
subject: FormFile path gets reset during submit
It's not a secret anymore!