struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: <html:file> tag
Date Thu, 03 Oct 2002 15:27:53 GMT

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 -


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

Kevin Bedell
author, "Struts Kickstart" - SAMS Publishing

"Matt Sales" <> on 10/03/2002 11:09:36 AM

Please respond to "Struts Users Mailing List"

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

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

Here's a snippet of my jsp:

<html:form method="POST" action="/"
    <html:file property="file"/>

I've also tried the <html:file> tag using the accepts attribute,
accepts="", and
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


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

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:   <>
For additional commands, e-mail: <>

View raw message