This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Is html:file default possible? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Is html:file default possible?" Watch "Is html:file default possible?" New topic
Author

Is html:file default possible?

Tim Manchester
Ranch Hand

Joined: Nov 03, 2004
Posts: 62
Is it possible to put a default value in an <html:file> ? If so, how?
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1016
>Is it possible to put a default value in an <html:file> ?
No.
For security purposes there is no way that you can populate the html:file control. The user has to type/select the file they want.
Tim Manchester
Ranch Hand

Joined: Nov 03, 2004
Posts: 62
OK, that makes sense. At least I can stop wasting time now.

Regards,

- Tim
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is html:file default possible?
 
Similar Threads
File upload problem
html:file , setting default file type for choosing
how to set default value to the struts html:file using javascript
change struts default upload button
html:file and showing the image..