Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 10454 invoked from network); 14 Apr 2003 21:32:18 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 14 Apr 2003 21:32:18 -0000 Received: (qmail 22175 invoked by uid 97); 14 Apr 2003 21:34:17 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 22168 invoked from network); 14 Apr 2003 21:34:17 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 14 Apr 2003 21:34:17 -0000 Received: (qmail 9044 invoked by uid 500); 14 Apr 2003 21:32:04 -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 9029 invoked from network); 14 Apr 2003 21:32:04 -0000 Received: from web40708.mail.yahoo.com (66.218.78.165) by daedalus.apache.org with SMTP; 14 Apr 2003 21:32:04 -0000 Message-ID: <20030414213210.22725.qmail@web40708.mail.yahoo.com> Received: from [64.32.176.246] by web40708.mail.yahoo.com via HTTP; Mon, 14 Apr 2003 14:32:10 PDT Date: Mon, 14 Apr 2003 14:32:10 -0700 (PDT) From: Lior Shliechkorn Subject: [OFF-TOPIC] RE: SOLUTION Streaming XLS File to browser To: Poi , Tomcat In-Reply-To: <3E9B089D.9090500@ptc.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1872764406-1050355930=:16301" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --0-1872764406-1050355930=:16301 Content-Type: text/plain; charset=us-ascii Thanks to a person named Kendall Coolidge I found the solution as to why the file was not coming up correctly. The problem was that I had these headers: response.setHeader("pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache"); response.setHeader("Expires", "0"); And they needed to be commented out. Wonderful!! Thanks again to all of you. Erik Price wrote:No problem, and good luck. I hope you solve it, and post the solution to the list when you do. Erik Lior Shliechkorn wrote: > Oh, that was an old segment where I was closing the resultset and > statement. Thanks a lot for looking, and trying to help. I'm stumped on > this one =). > > Have a good one, > Lior > > */Erik Price /* wrote: > > I'm sorry, but I am unable to see anything wrong. (But I am not a > master of servlets either ;) Your code is very clean and easy to read, > though. > > This is off the subject, but I am curious why in the finally block of > "processRequest" you print out the caught exception as a SQLException: > > try { > out.flush(); > out.close(); > } catch (Exception sqlex) { > System.err.println("SQLException thrown in processRequest() > finally: " + sqlex.getMessage()); > sqlex.printStackTrace(); > } > > Sorry that I do not know the cause of your problem (perhaps it is a > browser problem, not your servlet?). > > > > Erik > > > > > > > Lior Shliechkorn wrote: > > > > Thanks, here you go. > > > > Lior > > > > */Erik Price /* wrote: > > > > > > > > Lior Shliechkorn wrote: > > > Here is the f! ile... > > > > > > Thanks > > > > You have to include it in your email. (Hopefully it is not too > long or > > wider than 80-column lines! :) The list software does not > propagate the > > attachment. > > > > (Eclipse offers autoformatting of source code which can reduce the > > width > > of lines to less than 80 columns.) > > > > > > Erik > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > > ------------------------------------------------------------------------ > > Do you Yahoo!? > > Yahoo! Tax Center > > - File > > online, calculators, forms, and more > > > ------------------------------------------------------------------------ > Do you Yahoo!? > Yahoo! Tax Center > - File > online, calculators, forms, and more --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more --0-1872764406-1050355930=:16301--