We inherited a number of JSP pages with this line in them

<% response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache");
response.setHeader("Cache-control", "no-store"); %>

I have never gone and checked if this truly results in a page that is not
cached or if the options are specific to our Netscape 3.6.3 webserver

Jeff

-----Original Message-----
From: Jackie Comeau [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 7:33 AM
To: JRun-Talk
Subject: RE: Setting "Expires" header in JSP


In some of our "ugly" servlet code using html (no jsp!), my predecessor
wrote this code to expire his html page within a servlet.

Does this help for formatting purposes in your jsp?

Jackie

response.setHeader("Expires", "Tues, 01 Jan 1980 00:00:00 GMT");

On Tuesday, July 10, 2001 10:45 PM, Nathan Wheat
[SMTP:[EMAIL PROTECTED]] wrote:
> 
> I've got one dumb question, and one less-dumb... I'll let you decide
> which...
> 
> (1) I'd like to set the HTTP header "Expires" to indicate that a
particular
> JSP page is not cached.  
>       ie, <% response.setHeader("Expires","some date format"); %>
> My question is regarding the date to go in there.  I read in the HTTP
specs
> that the format is expected to be in GMT/UTC timezone and in a specific
> format.  Is there a ready-made method for providing a date in this
HTTP-spec
> format (in GMT/UTC timezone)?  Alternatively, what other options? (Just
> manually choose a date from last year...?  Set to zero?)  I'd prefer to
> stick with a JSP header, rather than using the <META> tag.
> 
> (2) I have a bunch of Stored Procedures in MSSQL.  After a week of playing
> with writing a new custom tag to access a storedproc, I found reference to
> the <jrun:storedproc> tag - in the somewhat hidden taglib PDF document.
> It's not listed in JRun Studio help, nor in the Developing Apps with JRun
> manual.  I'm not sure if this omission from other docs was intentional of
> not.  Is this tag supported/stable/reliable?  Does anyone out there have
> comments about it?
> 
> Thanks,
> 
> Nathan Wheat
> Technical Sales Consultant
> Firmware Design
> Phone:  0401 148 989
> Email:  [EMAIL PROTECTED]
> http://www.firmware.com.au
> 
> Are you a Web Developer or Designer?
> Looking for an edge? If so, check out Web Design 2001
> Go to the link Below to find out more & register
> <http://wd2001.firmware.com.au/ft>
>  
> 
> 
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to