Actually I'm getting 'odd' output - sometimes it's entirely blank.  That's
annoying.

Is anyone aware if this has been an issue?  Would updating to the nightly
build be a possible solution?  I'm using 1.0.2 I believe - that's what was
the current 'stable' release when I chose to adopt Struts.

Thanks!

Eddie

----- Original Message -----
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 4:00 PM
Subject: Re: <html:file> tag and FormFile


> 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