1,JSPrequest、response传值中文乱码问题:
<% response.setContentType("text/html;charset=GB2312"); response.setCharacterEncoding("GB2312"); request.setCharacterEncoding("GB2312"); %>
2,获取ResultSet大小问题:
return int getResultSize(ResultSet rs) { rs.last(); int r = rs.getRow(); rs.beforefirst(); return r; }
3,session传递复杂对象:
session.setAttribute("objname", objvalue);