NutzCN Logo
问答 jsp发送post到后台
发布于 2684天前 作者 qq_5d22b496 3612 次浏览 复制 上一个帖子 下一个帖子
标签: mvc

本人纯小白一个。因为要导出excel,所以不能用ajax,可是用表单传参到后面的servlet,总显示找不到路劲,是需要改web.xml吗????还有就是在sservlet用poi返回工作薄然后用流输出到页面供用户选择保存路径的思路对吗??

11 回复

找不到路径是web.xml没匹配对吧

<form  action=base+"downExcel/doPost" method="post">
  <div id="div_2">

@IocBean @At("/downExcel") @Ok("json") @Fail("http:500") public class T1_DownModule extends HttpServlet { private static final long serialVersionUID = 6765085208899952414L; @At public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } @At public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { T1_dataBase tdb = new T1_dataBase();

这样写没问题吧???可是就是跳不过去!!要么没反应,输出台也什么都没有输出

。。。 启动日志贴一下

另外,你继承servlet这想法也是很特别的啊。。。

<form  action="${base}/downExcel/doPost" method="post">

太多了!!!启动时没问题的!!!继承servlet不是应该当成一个servlet吗???我看了您说的,要导出excel不能用ajax吗??要用servlet设置表头吗??

ALL Nutz Log via Log4jLogAdapter
2017-08-17 19:43:46,552 org.nutz.log.Logs.<clinit>(Logs.java:20) INFO  - Nutz is licensed under the Apache License, Version 2.0 .
Report bugs : https://github.com/nutzam/nutz/issues
2017-08-17 19:43:46,556 org.nutz.mvc.NutFilter.init(NutFilter.java:71) INFO  - NutFilter[nutz] starting ...
2017-08-17 19:43:46,568 org.nutz.resource.impl.ErrorResourceLocation.<init>(ErrorResourceLocation.java:27) INFO  - ErrorResourceLocation [loc=file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/wtpwebapps/Backend/WEB-INF/lib/nutz-last.jar], maybe it is in your classpath, but not exist
2017-08-17 19:43:46,574 org.nutz.resource.impl.ErrorResourceLocation.<init>(ErrorResourceLocation.java:27) INFO  - ErrorResourceLocation [loc=C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\wtpwebapps\Backend\WEB-INF\classes], maybe it is in your classpath, but not exist
2017-08-17 19:43:46,653 org.nutz.resource.Scans.<init>(Scans.java:487) DEBUG - Locations for Scans:
[ErrorResourceLocation [loc=file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/wtpwebapps/Backend/WEB-INF/lib/nutz-last.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\tomcat-juli.jar], FileSystemResourceLocation [root=F:\eclipse\tts9], ErrorResourceLocation [loc=C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\wtpwebapps\Backend\WEB-INF\classes], JarResourceLocation [jarPath=F:\eclipse\tts9\jdk1.8.0_71\lib\tools.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\bootstrap.jar]]
2017-08-17 19:43:47,116 org.nutz.resource.Scans.init(Scans.java:75) DEBUG - Locations for Scans:
[JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\fastjson-1.2.28.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\slf4j-ext-1.7.14.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\xmlbeans-2.3.0.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\geronimo-stax-api_1.0_spec-1.0.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\bootstrap.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\quartz-jobs-2.2.2.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\dom4j-1.6.1.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\commons-codec.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\poi-3.7-20101029.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\mysql-connector-java-5.1.34.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\javax.mail-1.5.2.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\commons-email-1.3.3.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\nutz-last.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\poi-ooxml-3.7-20101029.jar], FileSystemResourceLocation [root=F:\eclipse\tts9], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\protobuf-java-2.6.1.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\druid-1.0.15.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\slf4j-api-1.7.14.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\quartz-2.2.2.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\slf4j-log4j12-1.7.14.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\nutz-1.b.53-sources.jar], ErrorResourceLocation [loc=file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/wtpwebapps/Backend/WEB-INF/lib/nutz-last.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\tomcat-juli.jar], FileSystemResourceLocation [root=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\classes], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\commons-net-3.4.jar], ErrorResourceLocation [loc=C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\wtpwebapps\Backend\WEB-INF\classes], JarResourceLocation [jarPath=F:\eclipse\tts9\jdk1.8.0_71\lib\tools.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\jstl-1.2.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\log4j-1.2.17.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\poi-scratchpad-3.7-20101029.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\druid-1.0.15-sources.jar], JarResourceLocation [jarPath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps\Backend\WEB-INF\lib\poi-ooxml-schemas-3.7-20101029.jar]]
2017-08-17 19:43:47,120 org.nutz.mvc.config.AbstractNutConfig.getMainModule(AbstractNutConfig.java:119) DEBUG - MainModule: <com.backend.MainModule>
2017-08-17 19:43:47,134 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:50) DEBUG - Loading by class org.nutz.mvc.impl.NutLoading
2017-08-17 19:43:47,136 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO  - Nutz Version : 1.r.54 
2017-08-17 19:43:47,136 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO  - Nutz.Mvc[nutz] is initializing ...
2017-08-17 19:43:47,136 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) DEBUG - Web Container Information:
2017-08-17 19:43:47,137 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) DEBUG -  - Default Charset : UTF-8
2017-08-17 19:43:47,138 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) DEBUG -  - Current . path  : F:\eclipse\tts9\.
2017-08-17 19:43:47,138 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) DEBUG -  - Java Version    : 1.8.0_71
2017-08-17 19:43:47,138 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) DEBUG -  - File separator  : \
2017-08-17 19:43:47,138 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) DEBUG -  - Timezone        : Asia/Shanghai
2017-08-17 19:43:47,140 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) DEBUG -  - OS              : Windows 7 amd64
2017-08-17 19:43:47,140 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) DEBUG -  - ServerInfo      : Apache Tomcat/7.0.79
2017-08-17 19:43:47,140 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) DEBUG -  - Servlet API     : 3.0
2017-08-17 19:43:47,140 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) DEBUG -  - ContextPath     : /Backend
2017-08-17 19:43:47,141 org.nutz.mvc.config.AbstractNutConfig.getMainModule(AbstractNutConfig.java:119) DEBUG - MainModule: <com.backend.MainModule>
2017-08-17 19:43:47,141 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:231) DEBUG - >> app.root = C:/Program Files/Apache Software Foundation/Tomcat 7.0/wtpwebapps/Backend
2017-08-17 19:43:47,186 org.nutz.castor.Castors.reload(Castors.java:116) DEBUG - Using 91 castor for Castors
2017-08-17 19:43:47,190 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:368) DEBUG - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "com.backend", "*tx", "*org.nutz.integration.quartz.QuartzIocLoader"],init=[])
2017-08-17 19:43:47,208 org.nutz.resource.Scans.scan(Scans.java:234) DEBUG - Found 6 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-08-17 19:43:47,208 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:44) DEBUG - loading ioc js config from [dao.js]
2017-08-17 19:43:47,212 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:44) DEBUG - loading ioc js config from [fields.js]
2017-08-17 19:43:47,213 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:44) DEBUG - loading ioc js config from [ftplog.js]
2017-08-17 19:43:47,215 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:44) DEBUG - loading ioc js config from [mail.js]
2017-08-17 19:43:47,215 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:44) DEBUG - loading ioc js config from [quartz.js]
2017-08-17 19:43:47,216 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:44) DEBUG - loading ioc js config from [timmer.js]
2017-08-17 19:43:47,217 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:52) DEBUG - Loaded 35 bean define from path=[ioc/] --> [daoPlayerInfo, dailyiteminfo, mallbuy, guildchange, mallinfo, conf, playerInfoServerDataSource, itemChangeLog, dailymontyinfo, scheduler, dao, htmlEmail, daoPublic, gold_change_log, guildmember, changerole, rechargelog, ftpone, simulaterecharge, chatlog, redget, jobFactory, onlinePlayerJob, daoData, backendDao, gameServerDataSource, nutQuartzCronJobFactory, gameServerDao, publicServerDataSource, redgive, emailAuthenticator, activityget, backendDataSource, logDao, statisticJob]
2017-08-17 19:43:47,506 org.nutz.resource.Scans.scan(Scans.java:234) DEBUG - Found 477 resource by src( com/backend/ ) , regex( ^.+[.]class$ )
2017-08-17 19:43:47,894 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.admin.AdminModule
2017-08-17 19:43:47,907 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.SimulateRechargeModule
2017-08-17 19:43:47,911 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.logic.Logic
2017-08-17 19:43:47,912 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.RoleModule
2017-08-17 19:43:47,915 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_OceanMoudle
2017-08-17 19:43:47,916 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.GameMailModule
2017-08-17 19:43:47,924 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.UserModule
2017-08-17 19:43:47,928 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.quartz.MailSchedule
2017-08-17 19:43:47,934 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_taskMoudle
2017-08-17 19:43:47,937 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1CheckModule
2017-08-17 19:43:47,937 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.service.TaskTimerService
2017-08-17 19:43:47,939 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.LogModule
2017-08-17 19:43:47,941 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.TableModule
2017-08-17 19:43:47,942 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.HomeModule
2017-08-17 19:43:47,942 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.RoleLogModule
2017-08-17 19:43:47,944 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.PermissionModule
2017-08-17 19:43:47,946 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.ServerOpenTimeModule
2017-08-17 19:43:47,947 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_Email
2017-08-17 19:43:47,950 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.admin.DblogModule
2017-08-17 19:43:47,954 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_everyBattle
2017-08-17 19:43:47,954 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.admin.SendMailModule
2017-08-17 19:43:47,959 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_EveryPack
2017-08-17 19:43:47,961 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.ServerInfoModule
2017-08-17 19:43:47,962 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_AdminMoudle
2017-08-17 19:43:47,963 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_pvpModule
2017-08-17 19:43:47,965 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.RunSqlModule
2017-08-17 19:43:47,965 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.admin.ErrorLogModule
2017-08-17 19:43:47,971 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_dataBase
2017-08-17 19:43:47,972 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.service.impl.RunSqlServerImpl
2017-08-17 19:43:47,973 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.GlobalModule
2017-08-17 19:43:47,979 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.NewActivityModule
2017-08-17 19:43:47,984 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_goldModule
2017-08-17 19:43:47,985 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_bankModule
2017-08-17 19:43:47,986 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_DownModule
2017-08-17 19:43:47,987 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.ActivityModule
2017-08-17 19:43:47,990 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.service.impl.EmailServiceImpl
2017-08-17 19:43:47,991 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_EveryPowder
2017-08-17 19:43:47,992 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.RankingListModule
2017-08-17 19:43:47,993 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.admin.ServerStateModule
2017-08-17 19:43:47,993 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.DataStatisticModule
2017-08-17 19:43:47,994 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.MenuModule
2017-08-17 19:43:47,995 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.SerErrorLogModule
2017-08-17 19:43:47,997 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.admin.ServerModule
2017-08-17 19:43:48,000 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.admin.GmCommandModule
2017-08-17 19:43:48,003 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.ForbiddenModule
2017-08-17 19:43:48,006 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.service.impl.DBConnectServerImpl
2017-08-17 19:43:48,010 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:71) DEBUG - Found a Class with Ioc-Annotation : class com.backend.Module.T1_GMModule
2017-08-17 19:43:48,012 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:48) INFO  - Scan complete ! Found 47 classes in 1 base-packages!
beans = ["logModule", "homeModule", "permissionModule", "menuModule", "rankingListModule", "serverOpenTimeModule", "userModule", "globalModule", "t1_GMModule", "t1_Email", "t1_AdminMoudle", "dblogModule", "t1_OceanMoudle", "t1CheckModule", "serverStateModule", "serErrorLogModule", "runSqlModule", "dBConnectServer", "serverModule", "simulateRechargeModule", "sendMailModule", "forbiddenModule", "t1_taskMoudle", "t1_EveryPack", "newActivityModule", "serverInfoModule", "t1_pvpModule", "roleLogModule", "gameMailModule", "mailSchedule", "t1_DownModule", "roleModule", "taskTimer", "t1_everyBattle", "runSqlServer", "activityModule", "gmCommandModule", "emailService", "dataStatisticModule", "adminModule", "errorLogModule", "t1_dataBase", "tableModule", "logic", "t1_goldModule", "t1_bankModule", "t1_EveryPowder"]
2017-08-17 19:43:48,013 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:36) DEBUG - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
2017-08-17 19:43:48,013 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:52) DEBUG - Loaded 0 bean define from path=[] --> []
2017-08-17 19:43:48,016 org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:103) WARN  - Found Duplicate beanName=scheduler, pls check you config!
2017-08-17 19:43:48,016 org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:103) WARN  - Found Duplicate beanName=nutQuartzCronJobFactory, pls check you config!
2017-08-17 19:43:48,016 org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:103) WARN  - Found Duplicate beanName=jobFactory, pls check you config!
2017-08-17 19:43:48,018 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:93) INFO  - NutIoc init begin ...
2017-08-17 19:43:48,020 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:109) INFO  - ... NutIoc init complete
2017-08-17 19:43:48,021 org.nutz.mvc.config.AbstractNutConfig.getMainModule(AbstractNutConfig.java:119) DEBUG - MainModule: <com.backend.MainModule>
2017-08-17 19:43:48,024 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:157) INFO  - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-08-17 19:43:48,026 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:358) DEBUG - @Views(DefaultViewMaker)
2017-08-17 19:43:48,032 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:259) DEBUG - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-08-17 19:43:48,037 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:139) DEBUG - module class location 'file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/wtpwebapps/Backend/WEB-INF/classes/'
2017-08-17 19:43:48,037 org.nutz.resource.impl.ErrorResourceLocation.<init>(ErrorResourceLocation.java:27) INFO  - ErrorResourceLocation [loc=C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\wtpwebapps\Backend\WEB-INF\classes], maybe it is in your classpath, but not exist
2017-08-17 19:43:48,037 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:169) DEBUG -  > scan 'com.backend'

form action写错了

nutz并不会认为它是servlet,只是当成个普通入口类

这样啊??那大神,应该怎么弄呢???求稍微给点思路,我整了一个下午了,还是没办法弹出浏览器的那个保存路径框

兽总,为什么我写表名用中文写,就能下载正确的表名(只是表名为空,内容为正确的EXCEL数据),但是只要用字母或者数字就报这样的错

017-08-17 20:26:25,354 org.nutz.dao.impl.sql.run.NutDaoExecutor._runSelect(NutDaoExecutor.java:193) DEBUG - SELECT * FROM log_ach 
八月 17, 2017 8:26:25 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [default] in context with path [/Backend] threw exception
java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
	at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:466)
	at org.nutz.mvc.view.HttpStatusView.render(HttpStatusView.java:74)
	at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:55)
	at org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:30)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:45)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:183)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

2017-08-17 20:26:25,391 org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:28) WARN  - Error@/database/doPost :
java.lang.IllegalStateException: getOutputStream() has already been called for this response
	at org.apache.catalina.connector.Response.getWriter(Response.java:662)
	at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:213)
	at org.nutz.mvc.view.UTF8JsonView.render(UTF8JsonView.java:61)
	at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:55)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:28)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:40)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:113)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:40)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:183)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

加个@Ok("void")

添加回复
请先登陆
回到顶部