
JSP
文章平均质量分 66
thinktotings
每天进一步,踏上成功路……
展开
-
JSP注释,在浏览器查看源代码时,看不到此界面
JSP注释,在浏览器查看源代码时,看不到此界面 <%-- 看不到我,我是被注释的代码 --%> <%-- /* * Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved. * * Redistribution and use in source and binary for...原创 2010-12-29 13:52:51 · 713 阅读 · 0 评论 -
JSP获得项目根路径
<%=request.getContextPath() %> 如项目为sina ,表达式的值为/sina http://127.0.0.1/sina 在jsp页面中此路径可以写成 <%=request.getContextPath()%> ...原创 2011-01-17 13:16:46 · 202 阅读 · 0 评论 -
display table 外部分页 不支持排序
display table 外部分页 不支持排序 需求:根据当前面码数currentPage,每页记录数pageSize,数据总记录数totalCount,进行分页,算出,每页的数据开始索引startIndex和结束索引endIndex web.xml <servlet> <description>This is ...原创 2011-01-18 07:29:25 · 128 阅读 · 0 评论 -
display table 外部分页 支持当前页排序
display table 外部分页 支持当前排序 需求:根据当前面码数currentPage,每页记录数pageSize,数据总记录数totalCount,进行分页,算出,每页的数据开始索引startIndex和结束索引endIndex web.xml <servlet> <description>This is the ...原创 2011-01-18 07:50:50 · 109 阅读 · 0 评论 -
display table外部分页,支持外部排序
display table外部分页,支持外部排序 操作步骤: 第一部: web.xml <!--引入标签--> <jsp-config> <taglib> <taglib-uri>http://jsptags.com/tags/navigation/pager</taglib-uri> ...原创 2011-01-18 13:45:09 · 132 阅读 · 0 评论 -
distag table 求和
distag table页面示示表格后,需要对某列进行求和运算: <display:table decorator="com.test.decorators.DecoratorProfit"> 有个 decorator属性,指定一个处定义的类 该类要实现org.displaytag.decorator.TableDecorator 可以重写 @Override ...原创 2010-10-28 22:07:52 · 115 阅读 · 0 评论 -
distag table 求和
distag table页面示示表格后,需要对某列进行求和运算: <display:table decorator="com.test.decorators.DecoratorProfit"> 有个 decorator属性,指定一个处定义的类 该类要实现org.displaytag.decorator.TableDecorator 可以重写 @Override ...原创 2010-10-28 22:07:53 · 117 阅读 · 0 评论 -
EL表达式 if else
<c:choose> <c:when test="${empty item.numcusellrate}"> <display:column title="Rate" sortable="true" value="N/A" ></display:column> </原创 2011-02-24 14:46:02 · 211 阅读 · 0 评论