java页面分页,收藏中有;页面跳转如下

来源:互联网 发布:风云纯网络防火墙 编辑:程序博客网 时间:2024/05/21 10:01
<form action="tee.jsp" name="frm" method="post" onsubmit="return chenge()">
<a href = "multipage.jsp?curPage=1" >首页</a>  
<a href = "multipage.jsp?curPage=<%=curPage>1?curPage-1:curPage%>" >上一页</a>  
<a href = "multipage.jsp?curPage=<%=curPage+1%>" >下一页</a>  
<a href = "multipage.jsp?curPage=<%=pageCount%>" >尾页</a>  
跳到第<input type="text" name="pagee" >页
<input type="submit"  value="确定" /> 
<input type="reset" >
第<%=curPage%>页/共<%=pageCount%>页  

</form>




tee.jsp:


<%
   String na=request.getParameter("pagee");
   int aa=Integer.parseInt(na);
   System.out.print(aa);
   response.sendRedirect("multipage.jsp?curPage="+aa);
 %>

http://blog.csdn.net/xiazdong/article/details/6857515

  
原创粉丝点击