JSP页面中分页功能实现使用了
实现流程:
分页插件
1.pom.xml 引入依赖 jsp-api
2.编写自定义方法继承TagSupport
3.编写对应的*.tld文件
4.web.xml 加载
5.使用方法
a.在web.xml中不需配置
JSP上面注入标签
<%@ taglib prefix="urlChangePage" uri="/urlChangePage"%>
在需要展示分页的地方
<urlChangePage:pages /> pages 为java端setAttribute("pages",pages);
或
b.
<%@ taglib uri="/dateConvert" prefix="ct"%>
<ct:longStr longTime="1314842011312"></ct:longStr>
是否在Web.xml 中配置与文件存放位置有关?
在WEB-INF目录下放置 *.tld文件
博文参考:
[url=http://ldq2010-163-com.iteye.com/blog/1163236]借助TagSupport 实现自定义标签[/url]
<urlChangePage:pages />
实现流程:
分页插件
1.pom.xml 引入依赖 jsp-api
2.编写自定义方法继承TagSupport
3.编写对应的*.tld文件
4.web.xml 加载
5.使用方法
a.在web.xml中不需配置
JSP上面注入标签
<%@ taglib prefix="urlChangePage" uri="/urlChangePage"%>
在需要展示分页的地方
<urlChangePage:pages /> pages 为java端setAttribute("pages",pages);
或
b.
<%@ taglib uri="/dateConvert" prefix="ct"%>
<ct:longStr longTime="1314842011312"></ct:longStr>
是否在Web.xml 中配置与文件存放位置有关?
在WEB-INF目录下放置 *.tld文件
博文参考:
[url=http://ldq2010-163-com.iteye.com/blog/1163236]借助TagSupport 实现自定义标签[/url]