Hi,

I am using JSP/Servlets to display my pages. One of the pages has a gif file
embedded thru' the img tag.
For every request the gif is regenerated by the servelet

The geneated html file has

<!--
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="No-cache">
<meta http-equiv="Cache-Control" content="No-cache">
-->

In spite of all this, only the gif is cahced by both Netscape and IE and
will show the latest gif file only when refreshed.

Any ideas?

Thanks,



>From: Jean Bresse <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: getParameter and Reload behavior
>Date: Mon, 10 Jan 2000 12:55:40 -0500
>
>Hi folks:
>
>SCENARIO:
>1) User starts at Logon page, provide user name and password, then hit
>submit button to go to Main page
>
>2) Main page reads data from form using getParameter and allows user in
>Main page if user valid.
>
>3) User clicks Back button and goes back to Logon page (the server
>produces the page again because all pages are set to expires right away)
>
>4) Without the user providing proper user name and password, user clicks
>Forward button.  Message appears indicating page has expired.  User
>clicks OK to reload page.  User gets Main page.
>
>PROBLEM:
>My Main page would normally return the user to Logon based on the user
>name and password not being valid, but in this case it accepts it.  I'm
>suspecting here that request.getParameter( ) retrieves the form's input
>value from the first logon in step 1.
>
>QUESTION:
>1) Am I guessing right here regarding the getParameter( ) method?
>
>2) If so, are there any solutions involving some simple settings?  (the
>only solution that comes to mind is to have some session object, say
>some flag, that would alert me that the user is in that state (i.e. got
>past Logon the second time using Forward)
>
>Your input is always much appreciated...
>
>Thanks!
>
>Jean
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to