struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yitzle <yit...@users.sourceforge.net>
Subject Re: MultiPartRequest bean for File Upload missing?
Date Thu, 09 Aug 2007 17:58:11 GMT
On 8/9/07, Hafeez-ur Rehman <hafeezr@numetrics.com> wrote:
> Hi,
>
> Add enctype property as form attribute
> <html:form action="someAction.do " enctype="multipart/form-data" >
>
> Hafeez
> -----Original Message-----
> From: anexpert@gmail.com [mailto:anexpert@gmail.com] 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message