File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes File tag issues (s:File value= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "File tag issues (s:File value="")" Watch "File tag issues (s:File value="")" New topic

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

Yemi Dalley

Joined: May 03, 2007
Posts: 12

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.


SCJD (URlybird)
Shashank Ag
Ranch Hand

Joined: Dec 22, 2009
Posts: 88

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.

SCJP 91%, SCWCD 97%
Yemi Dalley

Joined: May 03, 2007
Posts: 12

I agree. Here's the link:
subject: File tag issues (s:File value="")
It's not a secret anymore!