问题描述
js代码:meetr.getExcel(expressions,{callback:function(rtnData){dwr.engine.openInDownload(rtnData);//调用dwr中的下载函数},exceptionHandler:function(e){alert("导出Excel失败!");}})
java代码:byte[]temp=newbyte[1024];wb.write(out);Stringfilename="sss.xls";//默认输出值为filename的值returnnewFileTransfer(filename,"application/msexcel",out.toByteArray());
报错:org.springframework.web.servlet.PageNotFound-NomappingfoundforHTTPrequestwithURI[/dwr/download/ilj4EcFm7GW5d0Bon7rhfD8edvk]inDispatcherServletwithname'dwr-dispatcher'怎么解决啊?急求
解决方案
解决方案二:
配置文件贴出来看看
解决方案三:
<beanid="meetr"class="com.rizon.hygl.dwr.meetr"><dwr:remotejavascript="meetr"><dwr:includemethod="getList"/><dwr:includemethod="remove"/><dwr:includemethod="checkdate"/><dwr:includemethod="getExcel"/></dwr:remote><propertyname="modelBeanDaoLocator"ref="apollo-model-beandao-locator"></property><propertyname="userService"ref="userService"></property></bean>