This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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