jsp

table,td{
border: 1px solid black;
}
table{
border-collapse: collapse;
}
td{
width: 300px
}

	<table>
		<c:forEach items="${aa.list }" var="tmp" >
			<tr>
				<td>${tmp.id }</td>
				<td>${tmp.username }</td>
				<td>${tmp.password }</td>
			</tr>
		</c:forEach>
	</table>
	<div>
		<a href="aa?currentpage=1&pagesize=${aa.pagesize }">首页</a>
		<a href="aa?currentpage=${aa.pervpage }&pagesize=${aa.pagesize }">上页</a>
		<a href="aa?currentpage=${aa.nextpage }&pagesize=${aa.pagesize }">下页</a>
		<a href="aa?currentpage=${aa.pagenumber }&pagesize=${aa.pagesize }">末页</a>
		<span>当前第${aa.currentpage }/${aa.pagenumber }页</span> 
		<span>一共${aa.rows }条数据</span> 
		<span>跳转到第<input name="currentpage" type="text" value="${aa.currentpage }"/>页</span> 
		<span>每页<input name="pagesize" type="text" value="${aa.pagesize }"/>数据</span>
		<input type="submit" value="提交"/>
	</div>
上一篇:查看一年四季变化


下一篇:JavaScript基础