7.Jsp页面
<%@page
contentType="text/html;charset=gb2312" language="java"
import="java.util.*,cn.loen.golf.course.po.*,cn.loen.golf.course.action.*"%>
<%@ page import="cn.loen.platform.util.page.Page"%>
<%@ include file="/common/taglibs.jsp" %>
<html:html lang="true">
<head>
<html:form action="/golf/courseSearchAction.do">
</html:form>
<br>
<table width="745" border="1" align="center">
${Page}
<%
Page datapage = (Page)request.getAttribute("Page");
List dataList = new ArrayList();//数据
int
if(datapage!=null){
}
for(int i= 0;i < dataNum;i++){
CourseSearchActionForm cform =
(CourseSearchActionForm)dataList.get(i);
List list = cform.getPriceList();
int size = list.size();
%>
<tr>
</tr>
<tr>
<td width="54">价格类型</td>
</tr>
<%for(int n=0;n<list.size();n++){
<tr>
<td><%=cp.getDaterule()%></td>
</tr>
<%}}%>
</table>
<jsp:include page="/platform/common/pageBar.jsp" flush="false"
/>
</body>
</html:html>
7.pageBar.jsp 控制条
<%@ page contentType="text/html;
charset=gb2312" %>
<%@ page import="java.util.*"%>
<%@ page
import="cn.loen.platform.util.page.Page"%>
<%
Page myPage = (Page)request.getAttribute("Page");
int lastPageNumber = 0;//总页数
int nextPageNumber = 0;//下页
int pageSize = 0;//每页记录数
int previoutPageNumber = 0;//上页
List orderlist = new ArrayList();//数据
int firstElement = 0;//当前第一条
int lastElement = 0;//当前最后一条
int pageNum = 0;//当前第几页
int totalElement = 0;//总记录数
if (myPage != null){
}
String pageURL = (String)request.getAttribute("myPageURL");
%>
<table width="100%" border="0" align="center">
<tr>
</table>
<SCRIPT LANGUAGE="JavaScript"
type="">
function jumpPage(selObj){
}
function gotoPage(pageNumber){
}
</SCRIPT>
插入表情