You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Sudhir S. Shetty" <ss...@powershare.net> on 2002/08/24 15:42:58 UTC
Error while Retrieving FormFile From Map
Hi,
I have a Jsp page in which I upload a file using the <html:file
property="prtFormFileAttachment"/> tag,
In my action class I use BeanUtils to get a Map of my form Bean in which I
have a FormFile As an attribute.
I pass this Map to my Bussiness Object,
In the Bussiness object when I issue the command
FormFile pvtFormFile = (FormFile)pvtMapForm.get("prtFormFileAttachment");
I get an Exception
java.lang.ClassCastException: java.lang.String
at com.inveniotech.docmgt.DmDocMgtBaseBo.insertAttachedModel(DmDocMgtBaseBo
Kindly guide mne as to how can i get the file from the Map
TIA,
regards,
Sudhir
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>