On 8/9/07, Hafeez-ur Rehman <[EMAIL PROTECTED]> wrote: > Hi, > > Add enctype property as form attribute > <html:form action="someAction.do " enctype="multipart/form-data" > > > Hafeez > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of yitzle > Sent: Thursday, August 09, 2007 8:23 AM > To: Struts Users Mailing List > Subject: MultiPartRequest bean for File Upload missing? > > I'm trying to add a file upload to my web app. > When I submit the file, I get: > > java.lang.RuntimeException: Unable to load bean > org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) - > [unknown location] > > Is there a line I'm missing from my JSP or a lib/jar I need to add or > a setting that needs changing? > Thanks! >
Thanks for the reply! I had <s:form action="CertificateImport" method="POST" enctype="multipart/form-data" > and tried with <form action="CertificateImport.action" method="POST" enctype="multipart/form-data" > When I tried <html:form ... > I got No tag "form" defined in tag library imported with prefix "html" even though I have <%@ taglib prefix="html" tagdir="/WEB-INF/tags" %> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]