SSL on tomcat breaks file download

2004-11-02 Thread Dobson Paul L Contr OO-ALC/LGFBR








I created a JSP web application that allows user to
dynamically generate and download excel files using POI/HSSF. I use the
following lines to store the excel file in my application directory under a
directory titled xlsreports:



nextXLSName = MiscUtil.getNextXLSName(); //gets the next
file name by querying the database.

report.writeFile(WebappPrefs.getRptPath(session.getServletContext())
+ nextXLSName);





The above lines seem to work because I find the generated
file in the correct folder with the correct time stamp of when I tested the
JSP.



I then use the following line of code to send the user the
file:



jsp:forward page=%= \xlsreports/\
+ nextXLSName % /





This has always worked flawlessly until I implemented SSL on
Tomcat. Now, IE tells me that the requested site is either unavailable or
cannot be found.



Any ideas why implementing SSL would break this or how to
fix it? Thanks a million in advance.



--Paul










-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: SSL on tomcat breaks file download

2004-11-02 Thread Jon Wingfield
Archives:
http://marc.theaimsgroup.com/?l=tomcat-userm=109818070801385w=2
http://marc.theaimsgroup.com/?l=tomcat-userm=105966032518910w=2
Jon
Dobson Paul L Contr OO-ALC/LGFBR wrote:

I created a JSP web application that allows user to dynamically generate 
and download excel files using POI/HSSF. I use the following lines to 
store the excel file in my application directory under a directory 
titled xlsreports:

 

nextXLSName =  MiscUtil.getNextXLSName(); //gets the next file name by 
querying the database.

report.writeFile(WebappPrefs.getRptPath(session.getServletContext()) + 
nextXLSName);

 

 

The above lines seem to work because I find the generated file in the 
correct folder with the correct time stamp of when I tested the JSP.

 

I then use the following line of code to send the user the file:
 

jsp:forward page=%= \xlsreports/\ + nextXLSName % /
 

 

This has always worked flawlessly until I implemented SSL on Tomcat. 
Now, IE tells me that the requested site is either unavailable or cannot 
be found.

 

Any ideas why implementing SSL would break this or how to fix it?  
Thanks a million in advance.

 

--Paul
 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: SSL on tomcat breaks file download

2004-11-02 Thread Edouard Dalla-Costa
hey,

it is simply an header problem. I encountered the same problem few
month except that I am using servlet and not JSP file. But I think it
should be exactly the same. Tomcat by default set Cache-Control and
Pragma to no-cache. So you have to force those to to cache. I had to
add those two line to my servlet:

response.setHeader( Cache-Control, cache );
response.setHeader( Pragma,cache );

I hope it will help you

Doud

On Tue, 02 Nov 2004 17:32:21 +, Jon Wingfield
[EMAIL PROTECTED] wrote:
 Archives:
 http://marc.theaimsgroup.com/?l=tomcat-userm=109818070801385w=2
 http://marc.theaimsgroup.com/?l=tomcat-userm=105966032518910w=2
 
 Jon
 
 
 
 Dobson Paul L Contr OO-ALC/LGFBR wrote:
 
 
 
  I created a JSP web application that allows user to dynamically generate
  and download excel files using POI/HSSF. I use the following lines to
  store the excel file in my application directory under a directory
  titled xlsreports:
 
 
 
  nextXLSName =  MiscUtil.getNextXLSName(); //gets the next file name by
  querying the database.
 
  report.writeFile(WebappPrefs.getRptPath(session.getServletContext()) +
  nextXLSName);
 
 
 
 
 
  The above lines seem to work because I find the generated file in the
  correct folder with the correct time stamp of when I tested the JSP.
 
 
 
  I then use the following line of code to send the user the file:
 
 
 
  jsp:forward page=%= \xlsreports/\ + nextXLSName % /
 
 
 
 
 
  This has always worked flawlessly until I implemented SSL on Tomcat.
  Now, IE tells me that the requested site is either unavailable or cannot
  be found.
 
 
 
  Any ideas why implementing SSL would break this or how to fix it?
  Thanks a million in advance.
 
 
 
  --Paul
 
 
 
 
 
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL on tomcat breaks file download

2004-11-02 Thread Dobson Paul L Contr OO-ALC/LGFBR
Worked perfectly!  Thank you.

Paul Dobson, F-16 Programmer/Analyst 
Viranim Technologies, Inc 
OO-ALC/LGFBR 
(801) 755-3679 
[EMAIL PROTECTED] 


-Original Message-
From: Edouard Dalla-Costa [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 02, 2004 10:34 AM
To: Tomcat Users List
Subject: Re: SSL on tomcat breaks file download

hey,

it is simply an header problem. I encountered the same problem few
month except that I am using servlet and not JSP file. But I think it
should be exactly the same. Tomcat by default set Cache-Control and
Pragma to no-cache. So you have to force those to to cache. I had to
add those two line to my servlet:

response.setHeader( Cache-Control, cache );
response.setHeader( Pragma,cache );

I hope it will help you

Doud

On Tue, 02 Nov 2004 17:32:21 +, Jon Wingfield
[EMAIL PROTECTED] wrote:
 Archives:
 http://marc.theaimsgroup.com/?l=tomcat-userm=109818070801385w=2
 http://marc.theaimsgroup.com/?l=tomcat-userm=105966032518910w=2
 
 Jon
 
 
 
 Dobson Paul L Contr OO-ALC/LGFBR wrote:
 
 
 
  I created a JSP web application that allows user to dynamically generate
  and download excel files using POI/HSSF. I use the following lines to
  store the excel file in my application directory under a directory
  titled xlsreports:
 
 
 
  nextXLSName =  MiscUtil.getNextXLSName(); //gets the next file name by
  querying the database.
 
  report.writeFile(WebappPrefs.getRptPath(session.getServletContext()) +
  nextXLSName);
 
 
 
 
 
  The above lines seem to work because I find the generated file in the
  correct folder with the correct time stamp of when I tested the JSP.
 
 
 
  I then use the following line of code to send the user the file:
 
 
 
  jsp:forward page=%= \xlsreports/\ + nextXLSName % /
 
 
 
 
 
  This has always worked flawlessly until I implemented SSL on Tomcat.
  Now, IE tells me that the requested site is either unavailable or cannot
  be found.
 
 
 
  Any ideas why implementing SSL would break this or how to fix it?
  Thanks a million in advance.
 
 
 
  --Paul
 
 
 
 
 
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL on tomcat breaks file download

2004-11-02 Thread Goldman, Stephen CIV SWRMC
Does anyone know how to setup Tomcat so that no-cache is not the default.  I have a 
simular problem except accessing files under ssl.  These are physically located on the 
server and when I try to open them I get an error saying the request is unavailable.  

Stephen 

-Original Message-
From: Dobson Paul L Contr OO-ALC/LGFBR [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 9:49
To: 'Tomcat Users List'
Subject: RE: SSL on tomcat breaks file download


Worked perfectly!  Thank you.

Paul Dobson, F-16 Programmer/Analyst 
Viranim Technologies, Inc 
OO-ALC/LGFBR 
(801) 755-3679 
[EMAIL PROTECTED] 


-Original Message-
From: Edouard Dalla-Costa [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 02, 2004 10:34 AM
To: Tomcat Users List
Subject: Re: SSL on tomcat breaks file download

hey,

it is simply an header problem. I encountered the same problem few
month except that I am using servlet and not JSP file. But I think it
should be exactly the same. Tomcat by default set Cache-Control and
Pragma to no-cache. So you have to force those to to cache. I had to
add those two line to my servlet:

response.setHeader( Cache-Control, cache );
response.setHeader( Pragma,cache );

I hope it will help you

Doud

On Tue, 02 Nov 2004 17:32:21 +, Jon Wingfield
[EMAIL PROTECTED] wrote:
 Archives:
 http://marc.theaimsgroup.com/?l=tomcat-userm=109818070801385w=2
 http://marc.theaimsgroup.com/?l=tomcat-userm=105966032518910w=2
 
 Jon
 
 
 
 Dobson Paul L Contr OO-ALC/LGFBR wrote:
 
 
 
  I created a JSP web application that allows user to dynamically generate
  and download excel files using POI/HSSF. I use the following lines to
  store the excel file in my application directory under a directory
  titled xlsreports:
 
 
 
  nextXLSName =  MiscUtil.getNextXLSName(); //gets the next file name by
  querying the database.
 
  report.writeFile(WebappPrefs.getRptPath(session.getServletContext()) +
  nextXLSName);
 
 
 
 
 
  The above lines seem to work because I find the generated file in the
  correct folder with the correct time stamp of when I tested the JSP.
 
 
 
  I then use the following line of code to send the user the file:
 
 
 
  jsp:forward page=%= \xlsreports/\ + nextXLSName % /
 
 
 
 
 
  This has always worked flawlessly until I implemented SSL on Tomcat.
  Now, IE tells me that the requested site is either unavailable or cannot
  be found.
 
 
 
  Any ideas why implementing SSL would break this or how to fix it?
  Thanks a million in advance.
 
 
 
  --Paul
 
 
 
 
 
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]