GeeCON Prague 2014*
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
Author

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

Regards
Ajay
David Newton
Author
Rancher

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.
 
 
subject: FormFile path gets reset during submit