Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
how to set FormFile
Nesrin aboud
Ranch Hand
Posts: 48
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have a path on client side to a file,
I can not set it with
String
representing the path
how to set a FormFile object with this client path to be uploaded?
if it can not be done please help me by another way to upload this file
mahesh shinde
Ranch Hand
Posts: 69
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hey buddy you need not to set any string representation .
set a bean for that tag you will get file in formfile object
<s:file name=fileToUpload />
it will give browse button just browse the will and press submit
David Newton
Author
Posts: 12617
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
@Mahesh: wrong version of
Struts
.
@Nesrin: the server (web app) cannot tell the client (browser) which file to upload. Files *must* be chosen on the client (browser) side.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to set file download location in struts ??
absolute path Formfile upload
How to convert FormFile into BLOB object?
Upload file and mail it
How to use FormFile?
More...