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 2001/12/19 00:42:32 UTC

DO NOT REPLY [Bug 5497] New: - JSP include not always including

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=5497>.
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=5497

JSP include not always including

           Summary: JSP include not always including
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tim.nolan@solnet.com.au


Loading a page with a single JSP include directive works in IE5, NS4 but not in 
NS6.1, unless you do a Shift-Refresh (no-cache reload), or modify the include 
file.

My guess is that Tomcat is not including it because the modify time of the 
include file is later than the "If-Modified-Since" header.

Here are the successful/failed requests in full (host/URL names mofified). The 
include file is between the text "Before" and "After" and is just the text "Hey"
Successful:
GET http://host:8080/example/test.jsp HTTP/1.1
Host: host:8080
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.2) Gecko/20010726 
Netscape6/6.1
Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9, 
image/png, image/jpeg, image/gif;q=0.2, text/plain;q=0.8, text/css, */*;q=0.1
Accept-Language: en-us
Accept-Encoding: gzip,deflate,compress,identity
Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=866366D2738128D9A0C1650535F7F531
If-Modified-Since: Tue, 18 Dec 2001 23:23:09 GMT
Cache-Control: max-age=0

HTTP/1.0 200 OK
Content-Type: text/html;charset=ISO-8859-1
Date: Tue, 18 Dec 2001 23:23:26 GMT
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
X-Cache: MISS from antares
Proxy-Connection: close

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><title>Untitled</title></head>
<body>
Before
Hey
After
</body>
</html>
Failed:
GET http://host:8080/example/test.jsp HTTP/1.1
Host: host:8080
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.2) Gecko/20010726 
Netscape6/6.1
Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9, 
image/png, image/jpeg, image/gif;q=0.2, text/plain;q=0.8, text/css, */*;q=0.1
Accept-Language: en-us
Accept-Encoding: gzip,deflate,compress,identity
Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=866366D2738128D9A0C1650535F7F531
If-Modified-Since: Tue, 18 Dec 2001 23:23:26 GMT
Cache-Control: max-age=0

HTTP/1.0 200 OK
Content-Type: text/html;charset=ISO-8859-1
Date: Tue, 18 Dec 2001 23:24:16 GMT
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
X-Cache: MISS from antares
Proxy-Connection: close

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><title>Untitled</title></head>
<body>
Before

After
</body>
</html>

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