您的位置:首页 > 理论基础 > 计算机网络

刷新页面,获得刷新后页面的页数(http://localhost:8080/option/index.jsp?page=8)

2014-09-05 09:18 489 查看
<%@ page contentType="text/html;charset=gb2312"%>

<html>

<body>

<%

String str=request.getParameter("page");

int j=1;

if(str!=null)

{

j=Integer.parseInt(str);

}

%>

<a href="index.jsp?page=<%=j+1%>">刷新</a>

</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐