问题描述:
Web工程--Xiazai; index.jsp<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
System.out.println("1111111111111111111111");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
<title>软件下载</title>
<link rel="stylesheet" type="text/css" href="/muti/style/index.css"/>
</head>
<body>
<%@include file="/include/fc_head.jsp"%>
<!-- 右侧结束 -->
</div>
<%@include file="/include/foot.jsp"%>
</body>
</html>我用浏览器http://localhost:8080访问后,发现MyEclipse控制台出现
1111111111111111111111
1111111111111111111111
1111111111111111111111
1111111111111111111111
1111111111111111111111
1111111111111111111111
从结果可以看出我只访问了一次,怎么会出现它自动多访问了这么多次?????Web.xml配置如下:
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>400</error-code>
<location>/index.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/index.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/index.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/index.jsp</location>
</error-page>
请问那位同仁遇到过如此问题,请不吝解答,也请高手解答,谢谢,在线观望。
Web工程--Xiazai; index.jsp<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
System.out.println("1111111111111111111111");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
<title>软件下载</title>
<link rel="stylesheet" type="text/css" href="/muti/style/index.css"/>
</head>
<body>
<%@include file="/include/fc_head.jsp"%>
<!-- 右侧结束 -->
</div>
<%@include file="/include/foot.jsp"%>
</body>
</html>我用浏览器http://localhost:8080访问后,发现MyEclipse控制台出现
1111111111111111111111
1111111111111111111111
1111111111111111111111
1111111111111111111111
1111111111111111111111
1111111111111111111111
从结果可以看出我只访问了一次,怎么会出现它自动多访问了这么多次?????Web.xml配置如下:
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>400</error-code>
<location>/index.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/index.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/index.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/index.jsp</location>
</error-page>
请问那位同仁遇到过如此问题,请不吝解答,也请高手解答,谢谢,在线观望。
解决方案 »
- Ext2.0 Ext.ux.UploadDialog+struts2 文件上传 FF正常 IE8上传成功后弹出下载框
- 又是刷新问题 天哪
- java 数据库连接类设计问题
- JSP中如何实现同一表单内值的传递(联动菜单)
- 寻在南京的朋友
- JSP表单输入的中文怎么在接收的servlet里成了乱码了??help
- 100分的问题!~
- 请问如何把添加数据和上传图片合并啊?
- jbx向导的 Jsp from ActionForm 标签的类型为什么这么少啊,没有复选框啊?
- 关于使用事务的问题!
- jsp急救啊
- cab控件问题,IE无法复制DLL,请个位专家赐教。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
<%@include file="/include/fc_head.jsp"%>
会不会是找不到上面两个页面 导致404异常 所以再次引用index.jsp页面 所以打印了多次1111111111
访问同一个页面用IE和firfox
发现打印出来的sql语句为
IE: 1次
firfox: 2次或以上。好像多访问了几次。遇到这样的问题真是百思不得其解。感觉这也太垃圾了
看着这样的问题,就想把电脑砸的细碎细碎的
System.out.println("1111111111111111111111");
%>
这个,你放在<link>标签下面试试