Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Nani Palle
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. File input elements cannot be preset--this is an HTML/browser thing, not Struts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic