File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
how to set FormFile
Joined: Feb 08, 2010
Mar 21, 2010 21:09:52
I have a path on client side to a file,
I can not set it with
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
Joined: Jul 24, 2009
Mar 22, 2010 03:13:32
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
Joined: Sep 29, 2008
Mar 22, 2010 05:42:59
@Mahesh: wrong version of
@Nesrin: the server (web app) cannot tell the client (browser) which file to upload. Files *must* be chosen on the client (browser) side.
subject: how to set FormFile
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?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015