随笔分类 - Struts2
摘要:设置全局的timer需要在web.xml中添加servlet, 并设置load-on-startup 为 1, 然后在servlet的init()中开启timer, 具体代码如下:1. web.xml backup locationService.backup.Backup 12. Backup.j...
阅读全文
摘要:1. To handle 404 not found yourself, just add this code to your web.xml 404 /pageNotFound.jsp 2. To handle wrong action not mapped in Str...
阅读全文