Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 13420 invoked from network); 18 Jun 2002 21:50:28 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 18 Jun 2002 21:50:28 -0000 Received: (qmail 1693 invoked by uid 97); 18 Jun 2002 21:50:18 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 1677 invoked by uid 97); 18 Jun 2002 21:50:18 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 1665 invoked by uid 98); 18 Jun 2002 21:50:18 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: Tue, 18 Jun 2002 14:50:03 -0700 (PDT) From: "Craig R. McClanahan" To: Tomcat Users List Subject: Re: REPOST: 2 questions..requests... In-Reply-To: <88500E0F870AA542B6340D8BC05A9E1B065E35@rup.hugsmidjan.is> Message-ID: <20020618144653.A2586-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Tue, 18 Jun 2002, Reynir H=FCbner wrote: > Date: Tue, 18 Jun 2002 10:00:53 -0000 > From: Reynir H=FCbner > Reply-To: Tomcat Users List > To: tomcat-user@jakarta.apache.org > Subject: REPOST: 2 questions..requests... > > > > hi, > > I have 2 questions (not really related) : > > 1. How can I get the header "if-modified-since", from the request > object, when I print out the enumeration of getHeaderNames() it's not > there. > Do you know for sure that your browser actually *sent* this header? That will typically happen only when the URL has previously been retrieved, *and* the previous output for that URL included a "Date" for the browser to use on subsequent requests. You also need to be sure you've configured your browser not to unconditionally read the page on every request. > > 2. I've been writing some scripts in java, mainly regluar-expression > related stuff,downloading webpages with HttpUrlConnection, parsing some > strings out of 'em, and so on. I have been playing around executing the > whole thing in a jsp site. The execution of this jsp page can take few > minutes, depending on some parameters. For me it is very much ok, > because I needed to run this script onetime only. But what bothers me, > is the fact, that when I run it, Internet Explorer seems to reload the > page, so it runs twice. I am wondering if this is a bug in tomcat or > Internet Explorer. In the end I moved all the script into a standalone > application and executed it ok ( did not run twice). So this is not a > problem I will solve, but I wonder if this is a known problem with > tomcat-jsp execution, where does the time-gap lie, when does it start to > reload, is this somekind of a "ping" request from Internet Explorer that > executes the page again if it hasn't loaded with in some time or what is > happening ? if any one knows, tell me. It does not happen with any > other jsp page, and I actually saw the page "blink" or "flash" when it > got reloaded in IExpl. > Can't help you without details (and don't use IE anyway), but there is nothing Tomcat can do if the browser really does submit the request twice -- you will need to program around that. > I am using tomcat 4.0.3 standalone, without coyote. and then Internet exp= lorer 6. > > Thank you, > best regards, > -reynir > Craig -- To unsubscribe, e-mail: For additional commands, e-mail: