`
leng_cn
  • 浏览: 298410 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
近一段时间要出一些报表,其中用户提出了一个关键的问题,就是要把页面上的数据另存为EXCEL,现在说说我们的做法: 第一种方法:直接在另存的时候,设置contenttype为EXCEL,即把页面保存为EXCEL的名字 response.setHeader("Content-type","application/xls"); response.setHeader("Content-Disposition", "attachment;filename=booking.xls"); response.setHeader( ...
通过下面的这种语句,可以对GROUP BY的数据进行COUNT统计:) Select count(*) From T_Sale_Lead t Where t.id In(Select max(t.id) From T_Sale_Lead t  Where t.T_Happen_Year=2008 and t.T_Happen_Month In(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Group by t.T_Cluster_Code,t.T_Happen_Year,t.T_Happen_Month ) 下面是hql的语句:) Select  t. ...
最近做项目用到了xtree做用户的组织结构和系统的目录结构,发现当节点多的时候SESSION变量会丢失,原来是xtree是在加载节点的时候会set cookie,当COOKIE超过了一定的数量的时候,会使SESSION溢出,即选择了SESSION变理,只需要在XTREE的配置文件webFXTreeConfig中的usePersistence变为FALSE就可以了,位置在xtree.js文件中的webFXTreeConfig中。
<html><head> <meta http-equiv=content-type content="text/html; charset=gb2312"><title>Test the xml data land </title> <XML ID="xmldso"></XML> </head> <body> <input type="button" value="addItem" id=btn o ...
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; public class TestPro { public TestPro() { // TODO Auto-generated constructor stub } public void setOk1(Object msg) { System.out.println(msg); } public void setOk2(Object msg) { System.out.println(msg); ...
WebWork - WebWork - Exposing webwork objects to JSTL, with a JSTL and DisplayTag Example <ww:set name="jobz" value="jobs" scope="request" /> The full example below shows a webwork variable "jobs" being exposed as "jobz" to the request scope and ...
XWork-specific language features The biggest addition that XWork provides on top of OGNL is the support for the ValueStack. While OGNL operates under the assumption there is only one "root", XWork's ValueStack concept requires there be many "roots". For example, suppose we are u ...
OGNL is the Object Graph Navigation Language (see http://www.ognl.org/ for the full documentation of OGNL). Here, we will cover a few examples of OGNL features that co-exist with the framework. To review basic concepts, refer to OGNL Basics. The framework uses a standard naming context to evaluate O ...
在做proxool的时候,写配置文件时经常会忽略一些常用的配置属性,这样的话 proxool会采用默认的值去执行,就比较在每次访问的时候的active连接数 最大使用时间会是5分,于是当你在执行程序的时候,你会发现proxool中的 active数目不停的在增长,于是我在配置里面增加了 maximum-active-time <prototype-count>5</prototype-count>     <maximum-connection-count>1000</maximum-connection-count>     <m ...
首先: 为 SQL Server 2005 Express Edition 或 SQL Server 2005 Developer Edition 启用远程连接 必须为要从远程计算机连接到的每个 SQL Server 2005 实例启用远程连接。为此,请按照下列步骤操作:1. 单击“开始”,依次指向“程序”、“Microsoft SQL Server 2005”和“配置工具”,然后单击“SQL Server 外围应用配置器”。 2. 在“SQL Server 2005 外围应用配置器”页上,单击“服务和连接的外围应用配置器”。 3. 在“服务和连接的外围应用配置器”页上,展开“数据库引擎”, ...
regsvr32 Quartz.dll
最近要用DSOFRAMER做为一个客户端OFFICE访问工具,而且需要把EXCEL内的文件数据导出,总结了几个简单的方法,以备后用:) try { var obj; obj = new Object(oframe.ActiveDocument);//获得当前控件的文档对象 if(obj !=null){   var xls;   var slt;            xls = obj.Application;   var xlsheet = xls.Worksheets(1);   alert(xls.ActiveCell.value);//当前cell的值 ...
错误信息: 未知错误->!org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.yashang.entity.CmsProduct]; uncategorized SQLException for SQL [insert into CMS_PRODUCT (NAME, TYPE, KEYWORDS, DEFAULTAUTHOR, AUTHOR, SUMMARYPIC, SUMMARY, CONTENT, FILEPATH, STATUS, ISHOT, ...
    我们的系统采用的是HIBERNATE+SPRING进行数据的操作,开始一直采用HIBERNATE进行数据库的直连,用SPRING对ORACLE对BLOG字段进行处理,这两天打算采用PROXOOL对数据源进行管理,访问数据都没有问题,可对数据进行SAVEORUPDATE的时候报错如下: ...
原文地址:http://www.proxool.com/html/proxoolerror/20080308/49.html mysql 八小时断开连接异常,一起说明下. 这里以mysql 8小时断开连接说下 mysql的my.ini(my.cnf)本身有个设置 interactive_timeout wait_timeout 是设置断开的时间设置,愚蠢的版本就是直接加大这两个值 正确的解决办法 <driver-url>jdbc:mysql://localhost/testdb?autoReconnect=true&amp;useUnicode=true ...
Global site tag (gtag.js) - Google Analytics