Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File tag issues (s:File value="")

 
Yemi Dalley
Greenhorn
Posts: 12
MyEclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please does anyone know how to use the value attribute of the file tag.

I'm trying to do initialize the file tag if a file was previously uploaded.

Thanks
 
Shashank Ag
Ranch Hand
Posts: 88
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually you don't initialize value attribute of <s:file /> tag.
It is because the value determines the file path on clients system which is never sent to you.
Even if somehow you know it, even then what happens if file was removed from that location.

Hence, if you will need a work around to this by displaying list of uploaded files upon page.
 
Yemi Dalley
Greenhorn
Posts: 12
MyEclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic