SSH
文章平均质量分 51
Anderson_Lu
Anderson Lu
展开
-
【SSH异常系列】The Struts dispatcher cannot be found.
最近在SSH中使用ONGL表达式的时候一直报错,其根本的错误是:The Struts dispatcher cannot be found. 最后的解决方法是 将struts.xml中配置的过滤器类型改为 /* 用ONGL表达式的时候必须要使用/*.原创 2015-07-09 19:29:35 · 730 阅读 · 0 评论 -
【SSH异常系列】关于SSH中连接数溢出问题的解决方法
最近在项目中遇到一些奇葩的问题:在页面刷新多次后就报错了,报错原因是数据库的连接数太多。最后的原因分析如下: 1、在每次拿bean的时候都重新的new了一个新的容器对象。 ApplicationContext ac = new ClassPathXmlApplicationContext("beans.xml"); 这句话即使重新new一次AppliactionContext对象,然而在每次原创 2015-07-21 13:46:20 · 3913 阅读 · 0 评论 -
【SSH异常系列】Cannot call sendError() after the response has been committed
当我们使用JSONObject向页面发送数据的时候,有时会遇到一个异常错误:Cannot call sendError() after the response has been committed 按照字面意思即是说,response对象已经关闭而无法发送错误信息,开始遇到这个问题的时候半天找不到解决的方法。以下是抛出异常的方法: json.put("posList",pList);原创 2015-07-23 15:47:33 · 6472 阅读 · 0 评论