下列代码会报出 argument type mismatch 的错误
formbean:
public class UploadForm extends ActionForm {
private FormFile myFile;
public FormFile getMyFile() {
return myFile;
}
public void setMyFile(FormFile myFile) {
this.myFile = myFile;
}
}
upload.jsp
<%@ page pageEncoding="GBK"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<html:html>
<html:form action="upload.do?flag=ok" enctype="mutilpart/form-data">
<html:file property="myFile"/><html:submit />
</html:form>
</html:html>请教各位大师,能帮我找找原因吗?
formbean:
public class UploadForm extends ActionForm {
private FormFile myFile;
public FormFile getMyFile() {
return myFile;
}
public void setMyFile(FormFile myFile) {
this.myFile = myFile;
}
}
upload.jsp
<%@ page pageEncoding="GBK"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<html:html>
<html:form action="upload.do?flag=ok" enctype="mutilpart/form-data">
<html:file property="myFile"/><html:submit />
</html:form>
</html:html>请教各位大师,能帮我找找原因吗?
能不能再讲的详细点啊,谢谢了!