问题描述
错误提示argumenttypemismatch<html:formaction="polity"method="post"enctype="multipart/form-data"><html:hiddenproperty="o"value="doEdit"/><html:hiddenproperty="polity.noticeId"/><inputtype="submit"class="common_button"value="保存"/></div>标题<html:textproperty="polity.noticeTitle"size="70"/>上传附件<html:fileproperty="polity.upfile"value="上传"></html:file><html:hiddenproperty="polity.sendTime"/><html:hiddenproperty="polity.clickCount"/></html:form>actionPolityFormpForm=(PolityForm)form;FormFilefile=(FormFile)pForm.getUpfile();if(file!=null&&pForm.getUpfile().toString().length()>0){StringfileName=file.getFileName();byte[]b=file.getFileData();Stringdir=request.getRealPath("/uploadfile");//request.getRealPath获得web应用程序在服务器的绝对路径OutputStreamstreamOut=newFileOutputStream(dir+"/"+fileName);streamOut.write(b,0,b.length);}this.polityBiz.update(pForm.getPolity());pForm.reset(mapping,request);returnthis.toList(mapping,form,request,response);}是页面有问题吗???去;求高手指教