You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/11/06 05:34:08 UTC

DO NOT REPLY [Bug 14257] - jsp will execute 2 times

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14257>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14257

jsp will execute  2 times





------- Additional Comments From dragzhb@163.net  2002-11-06 04:34 -------
I have found the node of problem.

The problem is special character. <TD background=#25497F

if I remove background=#25497F, it only execute 1 times.
The following is my test.

1. The jsp will execute 2 times.
<%@ page contentType="text/html;charset=GB2312" %>

<%
	System.out.println("Test jsp start.");
	    
%>


<!doctype html public "-//w3c/dtd/HTML 4.0//en">
<html>
<!-- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved. -->

<head>
	<title>JSP DATE EXAMPLE</title>
	
</head>
<body bgcolor=#ffffff>
<font color=#DB1260>

<h1>

</h1>

<FORM NAME="main" id="main" method="post" action="QueryKeyword">


	<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width="85%>
      
      <TR background=#25497F color=#FFFFFF bgcolor="#000099"> 
        <TD background=#25497F color=#FFFFFF bgcolor="#000099" ><div 
align="center"><font color="#FFFFFF">Search By Date</font></div>
        </TD>
      </TR>
      
    </table>

</FORM>


</BODY>
</HTML>

<%
	System.out.println("Test jsp start."); 
        
%>



2. The following jsp will only execute 1 times.

<%@ page contentType="text/html;charset=GB2312" %>

<%
	System.out.println("Test jsp start.");
	    
%>


<!doctype html public "-//w3c/dtd/HTML 4.0//en">
<html>
<!-- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved. -->

<head>
	<title>JSP DATE EXAMPLE</title>
	
</head>
<body bgcolor=#ffffff>
<font color=#DB1260>

<h1>

</h1>

<FORM NAME="main" id="main" method="post" action="QueryKeyword">


	<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width="85%>
      
      <TR background=#25497F color=#FFFFFF bgcolor="#000099"> 
        <TD background="green" color=#FFFFFF bgcolor="#000099" ><div 
align="center"><font color="#FFFFFF">Search By Date</font></div>
        </TD>
      </TR>
      
    </table>

</FORM>


</BODY>
</HTML>

<%
		
		
	System.out.println("Test jsp start."); 
        
%>

do you know why?

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>