There is an example application included in the Struts distribution showing
how to upload files - or at least there was. It's probably still there,
though I haven't looked recently.

Best of luck -

Kevin


<shamelessplug>
      It's also covered in my book :-) with a sample application provided.
      (you did ask where it's documented...)
</shamelessplug>

----------------
Kevin Bedell
author, "Struts Kickstart" - SAMS Publishing






"Matt Sales" <[EMAIL PROTECTED]> on 10/03/2002 11:09:36 AM

Please respond to "Struts Users Mailing List"
       <[EMAIL PROTECTED]>

To:    "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:     (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:    <html:file> tag


Hello,
I'm having trouble with the <html:file> tag...

Here's a snippet of my jsp:

<html:form method="POST" action="/saveAction.do"
enctype="multipart/form-data">
    <html:file property="file"/>
...
</html:form>

I've also tried the <html:file> tag using the accepts attribute,
accepts="java.io.File", and
accepts="java.io.String",
with, of course, the corresponding property in the actionForm set to the
correct type.

Every time the form is submitted, I get a Servlet Exception:
BeanUtils.populate and ArgumentTypeMismatchException.
Am I missing something here?  Should the type of the upload actionForm
property be File? String?  something else?

If anyone knows of any documentation out there about this, I'd appreciate
it.

Thanks,
Matt


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







---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------



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

Reply via email to