W
watergirl
Hello.
I'm trying to do a very simple upload using velocity and struts. This
is my html:
<html>
<body>
<form name="myForm" method="post" action="<my action goes here>"
enctype="multipart/form-data">
Select File: <input type="file" name="myFile"> </br>
<input type="submit" value="Upload File">
</form>
</body>
</html>
For some reason I'm getting this error...
java.lang.InternalError: erroneous handlers
at
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(Ljavax/servlet/http/HttpServletRequestV(CommonsMultipartRequestHandler.java:???)
at
org.apache.struts.util.RequestUtils.populate(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/http/HttpServletRequestV(RequestUtils.java:445)
Does anyone have any clue what this could be about? Also - my
struts-config file:
<form-bean
dynamic="true"
name="myForm"
type="org.apache.struts.action.DynaActionForm">
<!-- inputs -->
<form-property name="myFile"
type="org.apache.struts.upload.FormFile"/>
</form-bean>
I was creating my own action form but currently just trying to keep it
basic.
<action
path="/FileUpload"
name="myForm"
type="my.package.StrutsUploadAction">
<forward name="success" path="/success.vm"/>
</action>
Any ideas would be greatly appreciated.
Thank you!
I'm trying to do a very simple upload using velocity and struts. This
is my html:
<html>
<body>
<form name="myForm" method="post" action="<my action goes here>"
enctype="multipart/form-data">
Select File: <input type="file" name="myFile"> </br>
<input type="submit" value="Upload File">
</form>
</body>
</html>
For some reason I'm getting this error...
java.lang.InternalError: erroneous handlers
at
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(Ljavax/servlet/http/HttpServletRequestV(CommonsMultipartRequestHandler.java:???)
at
org.apache.struts.util.RequestUtils.populate(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/http/HttpServletRequestV(RequestUtils.java:445)
Does anyone have any clue what this could be about? Also - my
struts-config file:
<form-bean
dynamic="true"
name="myForm"
type="org.apache.struts.action.DynaActionForm">
<!-- inputs -->
<form-property name="myFile"
type="org.apache.struts.upload.FormFile"/>
</form-bean>
I was creating my own action form but currently just trying to keep it
basic.
<action
path="/FileUpload"
name="myForm"
type="my.package.StrutsUploadAction">
<forward name="success" path="/success.vm"/>
</action>
Any ideas would be greatly appreciated.
Thank you!