valuelist是www.sf.net上的一个开元项目, 是表现层的tag解决方案,
其主要功能有 查询,显示,分页,排序,批量可修改的table(感觉这个比较厉害),报表,格式转储(html,csv,pdf,excel
等格式)等, 其自带的war中有各个功能的演示,偶使用的是0.1.6的版本,
以下是其WAR目录结构 css include images Web-inf
Web-inf/classes,lib,taglib taglib/valuelist.tld Web-inf/action-servlet.xml,struts-config.xml,struts-html.tld,web.xml
classes/applicationContext.xml,classicLook.properties,i18n.properties, log4j.xml,microsoftLook.properties,simpleLook.properties,SqlMapConfig.xml, standardJspApplicationContext.xml
classes/net/mlw/data,util,vlh,BaseTestCase.class
data/CreateTestData.sql,CreateTestTable.sql,DestroyTestData.sql, ExampleHelperDispatchControler.class,Player.class,Player.hbm.xml, PlayerIbatis.xml,PlayersIdWrapperAndValidator.class,PlayersObjectValidator.class, StrutsSampleAction.class,Team.class
从上面看出,valuelist支持整合了多中框架,如 struts,spring,hibernate,ibatis等, 学习一番,对于框架整合与架构设计一定很有帮助的
配置的时候应注意: 1.加上commons-validator.jar(可能是作者疏忽,忘打了该包) 2.更改数据源,使用mysql,我的好象是4.*把, 在classes/applicationContext.xml中配置, 另外,不支持嵌套的统计查询,还得更改其中的sql语句,
SELECT (SELECT count(*) FROM player) as totalCount, p.PLAYER_ID as playerId,
不支持以上语句, 偶把他改为 SELECT 88 as totalCount, p.PLAYER_ID as playerId,
这样基本上就可以运行了, 感兴趣的同志门不妨试一试
祝大家学习工作生活愉快
|
|