- 浏览: 667167 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (608)
- Java (125)
- Struts (16)
- Spring (19)
- iBatis (11)
- Hibernate (14)
- Oracle (33)
- Mysql (22)
- JBoss (4)
- JavaScript (46)
- Ajax (9)
- jQuery (5)
- web (25)
- Html (14)
- Exception (26)
- Linux (106)
- Vim (11)
- Python (12)
- ComputerTech (25)
- 文章 (50)
- Maven (20)
- FreeMarker (5)
- Json (0)
- Tomcat (6)
- ActiveMQ (2)
- Test (1)
- Git (5)
- Shell (1)
- 《Java并发编程实践》 (2)
- 产品设计 (1)
- xxx (0)
- diamond (1)
- dubbo (1)
- Raspbian (1)
- IDE (3)
- 并发编程 (1)
最新评论
-
mikzhang:
抱歉,写这篇文章时,博主开发的程序只面对IE浏览器,故没考虑其 ...
JS 中改变confirm默认按钮提示“确定""取消" -
poterliu:
测试过了,发现execScript方法只支持IE浏览器。目前已 ...
JS 中改变confirm默认按钮提示“确定""取消"
【from http://www.cxy.me/bbs/viewbbs.asp?BoardID=23&ID=4863&star=1&skin=0】
org.apache.coyote.tomcat5.CoyoteResponseFacade.sendRedirect(CoyoteResponseFacade.java:352)
org.apache.jsp.test_jsp._jspService(test_jsp.java:62)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
在jsp页面中,如果使用了两个以上重定向语句,如下面的代码,通常会出现以上错误。
如下:<%
int i=0;
if(i==0)
{
response.sendRedirect("test1.jsp");//满足条件
}
int j=0;
j=1;
if(j==1)
{
response.sendRedirect("test1.jsp");//满足条件
}
%>
解决办法:设置互斥变量,不能让重定向的条件同时为真。纠其原因,可能jsp内部对象的执行不是象我们想象的一样
按照语句顺序执行,可能在执行页面跳转后,还会执行其以下的代码,只不过不给用户返回,至于这个猜想,有兴趣的
高手可以测试一下。解决方案如下:
<%
int avoidConflict=1;//互斥变量int i=0;if(i==0&&avoidConflict==1){avoidConflict=0;response.sendRedirect("test1.jsp");}int j=0;if(j==0&&avoidConflict==0){avoidConflict=1;response.sendRedirect("test1.jsp");
//上面两个重定向语句绝对不可能同时满足条件}%>
发表评论
-
Oracle_ojdbc6 使用 报错
2015-06-10 14:29 1036via: http://sd8089730.iteye.c ... -
It is indirectly referenced from required .class file
2014-08-19 15:30 436via: http://www.blogjava.net/z ... -
Hibernate_a different object with the same identifier value was already associat
2014-07-05 17:03 517via: http://www.blogjava.net/h ... -
Connection reset by peer: socket write error
2013-03-14 10:24 854Connection reset by peer: soc ... -
java.sql.SQLException: 索引中丢失 IN 或 OUT 参数
2012-05-07 17:00 2574java.sql.SQLException: 索引中丢失 ... -
request.getHeader("referer") is null
2012-03-19 15:23 954referer 用来判断上一页是不是自己的网站 如果我 ... -
ORA-14551: cannot perform a DML operation inside a query
2012-04-26 14:49 1100ORA-14551: cannot perform a ... -
Struts FileUpload - Processing of multipart/form-data request failed
2011-09-16 15:52 7310Struts FileUpload 异常处 ... -
HTTP Status 500 - No action instance for path could be created
2011-09-16 15:03 1712HTTP Status 500 - No action ... -
java.sql.SQLException: ORA-01830: date format picture ends before converting ent
2011-08-17 17:48 3410java.sql.SQLException: ORA-0 ... -
Bean property 'xxDao' is not writable or has an invalid setter method
2011-08-08 16:25 8746Bean property 'xxDao' is not ... -
SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null];
2011-08-04 15:38 2242网上解决方案 1.起初没有创建序列s_log,因此需要在Or ... -
org.xml.sax.SAXParseException: Document root element "struts-config", must match
2011-08-01 22:19 1680org.xml.sax.SAXParseException: ... -
Error creating form bean of class...
2011-08-01 10:44 1028Error creating form bean of cla ... -
java.text.ParseException: Unparseable date: "11/10/10" at java.text.DateFormat.
2011-08-01 10:39 5615使用DateFormat的使用,然后自己试了下,结果出来个错误 ... -
[interceptor.FileUploadInterceptor:intercept] [Removing file filesXXX .tmp]
2011-07-25 11:18 4508上传完文件时控制台显示[interceptor.FileUpl ... -
The Network Adapter could not establish the connection
2011-07-15 17:05 12601、oracle配置 oracle9i2中把C:\ora ... -
java.sql.SQLException: ORA-00933: SQL 命令未正确结束
2011-06-30 12:16 2114java.sql.SQLException: ORA-0093 ... -
ORA-00942 Table or View Does Not Exist Oracle Error
2011-06-22 23:55 4460Cause: java.sql.SQLException: ... -
getOutputStream() has already been called for this response
2011-06-22 23:48 1620java.lang.IllegalStateExceptio ...
相关推荐
jar包,官方版本,自测可用
2010-8-11 18:24:13 org.apache.coyote.http11.Http11BaseProtocol init 信息: Initializing Coyote HTTP/1.1 on http-8080 2010-8-11 18:24:13 org.apache.catalina.startup.Catalina load 信息: Initialization ...
tomcat-coyote.jar
jar包,官方版本,自测可用
你可以从Apache Tomcat的官方网站或者第三方库中找到这个jar包,例如`tomcat-catalina.jar`或`tomcat-coyote.jar`。 2. **配置web.xml**:在Tomcat的`conf`目录下的`web.xml`文件中,你需要添加一个新的过滤器配置...
例如,`org.apache.coyote.tomcat4.CoyoteAdapter`是Coyote与 Catalina(Tomcat的核心容器)之间的适配器,它将Coyote的请求和响应对象转换为Catalina可以理解的形式。 2. **Protocol Handlers**:协议处理器是...
org.apache.coyote org.apache.ibatis org.apache.juli 4号包: org.apache.tiles org.apache.velocity org.apache.xerces org.apache.xml org.apache.xmlbeans org.apache.xmlcommons org.apache.derby org.apache....
org.apache.coyote org.apache.ibatis org.apache.juli 4号包: org.apache.tiles org.apache.velocity org.apache.xerces org.apache.xml org.apache.xmlbeans org.apache.xmlcommons org.apache.derby org.apache....
org.apache.coyote org.apache.ibatis org.apache.juli 4号包: org.apache.tiles org.apache.velocity org.apache.xerces org.apache.xml org.apache.xmlbeans org.apache.xmlcommons org.apache.derby org.apache....
org.apache.coyote org.apache.ibatis org.apache.juli 4号包: org.apache.tiles org.apache.velocity org.apache.xerces org.apache.xml org.apache.xmlbeans org.apache.xmlcommons org.apache.derby org.apache....
org.apache.coyote org.apache.ibatis org.apache.juli 4号包: org.apache.tiles org.apache.velocity org.apache.xerces org.apache.xml org.apache.xmlbeans org.apache.xmlcommons org.apache.derby org.apache....
org.apache.coyote org.apache.ibatis org.apache.juli 4号包: org.apache.tiles org.apache.velocity org.apache.xerces org.apache.xml org.apache.xmlbeans org.apache.xmlcommons org.apache.derby org.apache....
org.apache.coyote org.apache.ibatis org.apache.juli 4号包: org.apache.tiles org.apache.velocity org.apache.xerces org.apache.xml org.apache.xmlbeans org.apache.xmlcommons org.apache.derby org.apache....
org.apache.coyote org.apache.ibatis org.apache.juli 4号包: org.apache.tiles org.apache.velocity org.apache.xerces org.apache.xml org.apache.xmlbeans org.apache.xmlcommons org.apache.derby org.apache....
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468) at org.apache....
`org.apache.coyote`包下的类与网络通信密切相关。 3. ** Jasper**:Tomcat的JSP引擎,用于处理JSP文件。它将JSP转换为Java源代码,然后编译成Servlet。`org.apache.jasper`包下的类主要处理JSP的解析、编译和执行...
Apache Tomcat 是一款广泛应用的开源软件,用于部署和运行Java Servlet和JavaServer Pages(JSP)应用程序。在本文中,我们将深入探讨Apache Tomcat 8.5.92这一特定版本,了解其特点、功能以及如何进行安装和配置。 ...
源码中,`org.apache.coyote.http11.Http11NioProtocol`和`org.apache.coyote.ajp.AjpNioProtocol`分别处理HTTP和AJP协议。 5. **部署与配置**: `org.apache.catalina.deploy`包包含了Web应用部署的相关类,如`...
`org.apache.coyote.http11.Http11NioProtocol`和`org.apache.coyote.http11.Http11AprProtocol`是两个常见的实现,分别基于Java NIO和Apache Portable Runtime (APR)库。 3. ** Jasper**:Jasper是Tomcat中的JSP...
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java...