`
dangjun625
  • 浏览: 39846 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

dispalytag demo

    博客分类:
  • Java
阅读更多
最近研究下 dispalytag,弄了好久才把基本的现实出来

1,jsp页面代码

<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>


2,
<body><%
	List studentList = StudentDB.getInfo();
	request.setAttribute("studentList", studentList);
       %>

		<display:table name="studentList" pagesize="5" export="true">
			<display:column property="stId" title="学生编号" />
			<display:column property="stName" title="学生姓名" />
			<display:column property="address" title="地址" />
		</display:table></body>

3,需要的包有
  • commons-beanutils-1.8.0.jar
  • commons-collections-3.2.1.jar
  • commons-lang-2.4.jar
  • commons-logging-1.1.1.jar
  • displaytag-1.2.jar
  • displaytag-export-poi-1.2.jar
  • displaytag-portlet-1.2.jar
  • iText-2.0.7.jar
  • jstl.jar
  • standard.jar

附上源码,需要的研究下...
分享到:
评论
2 楼 tan3103 2011-03-21  
你的demo例子我看了 很好 和适合我们初学者 谢谢
1 楼 dangjun625 2010-01-21  
备注:
displaytag 属性说明
http://jhaij.iteye.com/blog/267782

基于displaytag的可编辑的表格
http://www.iteye.com/topic/326548

Display Tag使用
http://zhieer.iteye.com/blog/27067

DisplayTag应用指南
http://www.iteye.com/topic/24869

相关推荐

Global site tag (gtag.js) - Google Analytics