aspose file tools*
The moose likes Struts and the fly likes how to set selected path to struts html:file when it redirects to same page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to set selected path to struts html:file when it redirects to same page" Watch "how to set selected path to struts html:file when it redirects to same page" New topic
Author

how to set selected path to struts html:file when it redirects to same page

Nani Palle
Greenhorn

Joined: Apr 10, 2009
Posts: 4
Hi...

I have some problem in struts related to the file format,when i upload file using stuts tld(html:file),that file is uploaded along with other text fields information,if i get any error,that will redirect to same page,in which all text field values are populated what i have selected except file path,in file field there is empty,i want to display path what i have selected before this action in file editor..

is there any solutions to set path to html:file by default..

Thanks
YadavendarP
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

No. File input elements cannot be preset--this is an HTML/browser thing, not Struts.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to set selected path to struts html:file when it redirects to same page