A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
How to convert File object to Formfile object
Joined: Mar 11, 2008
May 02, 2011 08:44:11
I am having a file object. I need to convert it into FormFile object. It shows classcastexception when try to type cast it. Please help.
File reqFile = new File("file.txt");
The setReqFile is a private Formfile variable in my form like "private FormFile reqFile;"
Thanks in advance!!
It is sorta covered in the
JavaRanch Style Guide
subject: How to convert File object to Formfile object
converting to a FormFile object?
could not setThe value in html:file
How to Convert a java.io.File to struts FormFile?
Multiple File Upload using Struts
How to convert FormFile into BLOB object?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014