tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5486] - Standard EA3 Taglib import does not work with if-modified-since http header field
Date Thu, 20 Dec 2001 12:14:30 GMT
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=5486>.
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=5486

Standard EA3 Taglib import does not work with if-modified-since http header field

sam.cooper@scisys.co.uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |



------- Additional Comments From sam.cooper@scisys.co.uk  2001-12-20 04:14 -------
I can't see how the bug can be in Opera as Opera can only cache what is 
returned to it. So Opera will either display the cached copy or the new copy, 
either way it can't modify the output.

I downloaded the latest nightly build (18th of Dec) to see if that made any 
difference. It didn't.

The problem is that the line of text "This should be shown if working 
correctly." is output by the import tag. Looking inside the tag library source 
code it seems to do this by using a javax.servlet.RequestDispatcher.include 
call to get the contents of the local resource.

Further tests seem to show that the time in the header field 'if-modified-
since' is what makes the difference. Using the java program I modified the time 
and ran the test several times changing the time passed in. One thing to note 
is that the string specified must be valid, specifying Tue the 20th of December 
is not correct so this field will then get ignored.

If the time is in the future, relative to the timestamp of the .java file in 
the tomcat/work directory, then the line is missing.
If the time is in the past by more than approx 2000 seconds (strange I know) 
then you get the imported line appearing correctly.
If the time is less than this 2000 seconds then you don't get the line.

I don't know if this makes any more sense to you.

Sam.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message