刷新页面,获得刷新后页面的页数(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>
<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>
相关文章推荐
- http://localhost:8080/demo/user_index.jsp
- http://localhost:8080/web/X.jsp 报错404
- 启动tomcat后访问页面http://localhost:8080/报错
- 安装tomcat后,运行bin目录下的startup.bat后,启动浏览器在地址栏输入http://localhost:8080回车后显示不了tomcat页面的原因
- 去除html页面中GET《 http://localhost:8080/favicon.ico 404 (Not Found)》
- http://localhost:8080/main.do?action=index改成http://localhost:8080/来访问首页
- 我在eclipse中启动Tomcat8.5之后,运行项目下的JSP文件,总是报404错误,但是访问http://localhost:8080/地址却可以正常访问
- 提交表单时,固定jsp页面<select>标签下option的值不刷新
- 在index.jsp页面加载时刷新底部button.jsp的页面数据
- 解决新版阿里weex框架创建vue项目后打开http://localhost:8080/index.html空白
- 前端打不开页面报GET http://localhost:8080/page/toPageInfo net::ERR_INCOMPLETE_CHUNKED_ENCODING
- Tomcat启动但不能打开http://localhost:8080安装测试页面
- Tomcat服务器不能打开http://localhost:8080安装测试页面
- Tomcat能启动和停止,但是输入http://localhost:8080/不能显示页面
- 在ie中输入http://localhost:8080提交请求时,一直访问不到页面
- Tomcat服务器不能打开http://localhost:8080安装测试页面
- solr6.0以上安装完,http://localhost:8080/solr/index.html,报404错
- JS获得当前页面详细地址与刷新
- 利用Microsoft.XMLHTTP定制页面无刷新自动检索提示信息
- tomcat网站地址: http://localhost:8080改为http://localhost