Eddie, I got errors when i use:
<html:form action="/saveIdForm" encType="multipart/form-data">

errors:
encType: invalid according to the specified TLD

Could you send me your jsp page with the <html:file> tag?


---------------------------------------------------------------------------
Henry Lu
MCIT                                            phone: (734) 936-2063
University of Michigan Medical Center           fax:   (734) 763-4372

On Thu, 21 Feb 2002, Eddie Bush wrote:

> What does your html:form tag look like, Henry?  Be sure you specify
> encType="multipart/form-data" as an attribute to the html:form tag.  ex:
>
> <html:form action="/upload" encType="multipart/form-data">
> <html:file property="theFile"/>
> </html:form>
>
> I'm having an odd problem with mine hanging for some odd reason though - it
> just sits there now.  It DOES make it to the action however.  I just threw
> together a simple action that prints the file's contents.  I didn't think it
> was doing anything but it apprantly flushed the buffer when I killed the
> built-in tomcat server.  I got the entire file contents printed in my output
> window.
>
> HTH Henry!
>
> Eddie
>
>
> ----- Original Message -----
> From: "Henry Lu" <[EMAIL PROTECTED]>
> To: "struts users" <[EMAIL PROTECTED]>
> Sent: Thursday, February 21, 2002 2:53 PM
> Subject: <html:file> tag and FormFile
>
>
> > Is there any one who may help me to figure out how to use <html:file> rag
> > and FormFile in a ActionForm? I got errors where I tried to use both.
> > errors are:
> >
> > javax.servlet.ServletException: BeanUtils.populate
> > ....
> > Root Cause:
> > java.lang.IllegalArgumentException: argument type mismatch
> >
> > my JSP file has:
> >
> > <html:file property="myfile"/>
> >
> > and my ActionForm has:
> >
> > private FormFile myfile;
> >
> > // getter and setter
> >
> >
> >
> > --------------------------------------------------------------------------
> -
> > Henry Lu
> > MCIT                                            phone: (734) 936-2063
> > University of Michigan Medical Center           fax:   (734) 763-4372
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to