ben short wrote:
> I have tried with firefox and ie6. May i ask what you are using?

Firefox.
May I ask what you are using (i. e. Tomcat version)?

You didn't answer my question: Does your browser send an If-Modified-Since 
Request-Header?

On Tomcat 5.5.17 calling this JSP *twice* will cause IE 6 and FF 1.5.0.6 to 
send an If-Modified-Since header line on the second attempt. And the JSP will 
display it.

---------- snip ----------

<[EMAIL PROTECTED] contentType="text/html"%>
<[EMAIL PROTECTED] pageEncoding="UTF-8" session="false" import="java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd";>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Request Headers</title>
    </head>
    <body>
        <h1>Request Headers</h1>
        <table>
            <tr>
                <th>Header Name</th><th>Header Value</th>
            </tr>
            <%
                response.addDateHeader("Last-Modified", new Date().getTime());
                for(Enumeration headerNames = request.getHeaderNames(); 
headerNames.hasMoreElements();)
                {
                    String headerName = (String) headerNames.nextElement();
                    String headerValue = request.getHeader(headerName);
            %>
            <tr>
                <td><%= headerName %></td>
                <td><%= headerValue %></td>
            </tr>
            <%
                }
            %>
        </table>
    </body>
</html>

---------- snap ----------

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to