1. 问题描述Web程序在tomcat刚开始运行时速度很快,但过一段时间后发现速度变得很慢。检查日志输出,发现异常如下:org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted, cause: java.util.NoSuchElementException: Timeout waiting for idle object同时在SQLServer事件探查器中发现,每执行一次sql语句都要产生Audit login事件,语句执行后产生Audit logout事件。说明每一次tomcat都 ...
- 22:40
- 浏览 (167)
- 评论 (0)
因为AJAX默认是以UTF-8传输字符的,所以不经常出现中文乱码问题。我在用tomcat5+struts从action中返回中文到xmlHttp.responseText,就出现乱码。在代码中加入response.setHeader("Content-Type", "text/html;charset=GB2312");就可以保证返回的中文不出现乱码了。
- 13:44
- 浏览 (192)
- 评论 (0)
应用displaytag在struts中完成大数据量分页显示,Oracle数据库 JSP文件: <%...@ taglib uri="/WEB-INF/displaytag.tld" prefix="disp" %><disp:table name="resultList" export="true" pagesize="100" requestURI="l ...
- 18:53
- 浏览 (246)
- 评论 (0)
org.displaytag.pagination.SmartListHelper.java把下面两个方法的代码改写如下: public int getFirstIndexForCurrentPage() { return (this.currentPage - 1) * this.pageSize; } /** * Returns the in ...
- 12:15
- 浏览 (116)
- 评论 (0)
1、创建存储过程create or replace procedure *pro_nameasbegininsert into agri_exhibition_basecur (messid,title,type,pub_date) select id,title,sort,pub_date from agri_message where (trunc(sysdate-pub_date)=0 and rownum<6) and sort='供' ;insert into agri_exhibition_basecur (messid,title,type,pub_date) select ...
- 09:44
- 浏览 (147)
- 评论 (0)
- 浏览: 16901 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
我的相册
memcached
共 3 张
共 3 张
最近加入圈子
最新评论
-
试用Google Chrome浏览器
很好,支持开源,我正在使用!
-- by wenjixiao -
pidgin的飞信插件
附件里的x86_64版本的,你的ubuntu是x86_64的吗?
-- by lveyo -
Spring2结合DWR2的用户注 ...
你的例子,运行起来,UserAjaxHelper.checkUsername(u ...
-- by huanglppp -
pidgin的飞信插件
奇怪,我的就不行呢,我的版本也是pidgin 2.4.3,ubuntu 8.04 ...
-- by eBug -
pidgin的飞信插件
Pidgin 2.4.3插件的名字叫 fetion
-- by lveyo






评论排行榜