Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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 Struts.
@Nesrin: the server (web app) cannot tell the client (browser) which file to upload. Files *must* be chosen on the client (browser) side.
It is sorta covered in the
JavaRanch Style Guide
subject: how to set FormFile
Upload file and mail it
absolute path Formfile upload
How to use FormFile?
How to convert FormFile into BLOB object?
How to set file download location in struts ??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013