file download

2005-07-30 Thread dumbQuestionsAsker _
hi everybody, I want to provide the ability to my webapp's users to download a .java file clicking on a html link. My problem is that I have no save as dialog box, Im redirected to the content of my file. I changed my web.xml mime type but still the same. Any idea?

Re: file download

2005-07-30 Thread Dakota Jack
Look at the Struts download action. On 7/30/05, dumbQuestionsAsker _ [EMAIL PROTECTED] wrote: hi everybody, I want to provide the ability to my webapp's users to download a .java file clicking on a html link. My problem is that I have no save as dialog box, Im redirected to the content of my

Re: file download

2005-07-30 Thread Robert Parsons
If you serve the java file through a servlet you can set the 'Content-disposition' header on the response to 'attachment'. dumbQuestionsAsker _ wrote: hi everybody, I want to provide the ability to my webapp's users to download a .java file clicking on a html link. My problem is that I have

Re: file download

2005-07-30 Thread Dakota Jack
And return a null after delivering the file. On 7/30/05, Robert Parsons [EMAIL PROTECTED] wrote: If you serve the java file through a servlet you can set the 'Content-disposition' header on the response to 'attachment'. dumbQuestionsAsker _ wrote: hi everybody, I want to provide the

RE: File Download dialog launched errantly

2005-07-12 Thread Kirby, Stephen \(Civ, ARL/CISD\)
- From: Luis Torres [mailto:[EMAIL PROTECTED] Sent: Monday, July 11, 2005 7:58 PM To: Tomcat Users List Subject: Re: File Download dialog launched errantly Hi, Actually that sounds right. You can't display WML data in a standard browser and that's why you get the download dialog. To see

File Download dialog launched errantly

2005-07-11 Thread Kirby, Stephen \(Civ, ARL/CISD\)
Hi, I am using a WML file as my welcome-file. When I try to launch the web page I'm getting a File Download dialog for some reason. (it's tomcat-5.5.9 and it shows tomcat works fine when I leave the welcome file as index.jsp) The web.xml already had the MIME mapping for wml extension files

Re: File Download dialog launched errantly

2005-07-11 Thread Luis Torres
://www.wapsilon.com. If it displays ok in one of those two then you are on the right track :) Hasta luego. Luis Kirby, Stephen (Civ, ARL/CISD) wrote: Hi, I am using a WML file as my welcome-file. When I try to launch the web page I'm getting a File Download dialog for some reason. (it's tomcat-5.5.9

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

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.

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

RE: SSL on tomcat breaks file download

2004-11-02 Thread Dobson Paul L Contr OO-ALC/LGFBR
: 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

RE: SSL on tomcat breaks file download

2004-11-02 Thread Goldman, Stephen CIV SWRMC
- 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

Servlet coming as file download

2004-08-05 Thread Carlos Roberto de Oliveira Queiroz
Hello, I have a Apache 2.0.50 with an active mod_deflate connecting to Tomcat (4.x) via mod_jk2. After I activated deflate, sometimes when I call a servlet IE doesn´t open the page with the servlet response, but a file download window as if I was trying to download a file named 'servlet

apache2/mod_jk/tomcat4 - file download / special characters in filename

2004-03-03 Thread Andreas Hartstack
Problem: In my tomcat webapp a servlet manages a filedownload. Clicking on a file-link results in the browser's save as dialog. Using tomcat alone (port 8080) everything works fine. Special characters (like German umlaut) are shown in ISO-8859-1. Apache2/mod_jk seems to change the charset to

Re: apache2/mod_jk/tomcat4 - file download / special characters in filename

2004-03-03 Thread John Sidney-Woollett
try converting the filename to ISO-8859-1 as well eg filename = new String(file.getName(), ISO-8859-1); Your Code (modified): response.setHeader(Content-Disposition, attachment; filename= + new String(file.getName(), ISO-8859-1)); response.setContentLength((int)file.length());

RE: HELP: Servlet File Download solution.

2004-01-14 Thread Shanta B
(BSubject: HELP: Servlet File Download solution. (B (BI wrote a download servlet but I found it didn't run at IE5.x (B (BIE6.x - OK (BIE5.x - NG (BNS - OK (B (BMy source is below. I want to know if there are better solutions (Bor any Common Libarary I can use. (B (Bresponse.setHeader("Co

RE: HELP: Servlet File Download solution.

2004-01-14 Thread Hooper, Brian
: Tuesday, January 13, 2004 9:45 PM To: 'Tomcat Users List' Subject: HELP: Servlet File Download solution. I wrote a download servlet but I found it didn't run at IE5.x IE6.x - OK IE5.x - NG NS - OK My source is below. I want to know if there are better solutions or any Common Libarary I can use

HELP: Servlet File Download solution.

2004-01-13 Thread Rai Ou
I wrote a download servlet but I found it didn't run at IE5.x (B (BIE6.x - OK (BIE5.x - NG (BNS - OK (B (BMy source is below. I want to know if there are better solutions (Bor any Common Libarary I can use. (B (Bresponse.setHeader("Content-Disposition", (B "attachment; filename=\"" +

Re: File download impact JSP running

2003-11-17 Thread Antonio Fiol Bonnn
Hello, I know nothing about Content-Disposition. In fact, the only thing I know is that we never needed/used it ;-) Maybe it is too obvious, but I suggest you to try response.setContentType() instead. Anyway, I will try to get a code snippet from one of our apps a bit later for you. Hope that

Re: File download impact JSP running

2003-11-17 Thread Antonio Fiol Bonnn
Hi! Sorry about my previous response: I missed the important point. Here is what the RFC says about Content-Disposition (two fragments of RFC 2616). Anyway, the important part is that you SHOULD NOT send your file AND a web page after it. In your code snippet, you loop over the file, sending

Re: File download impact JSP running

2003-11-17 Thread Harry Mantheakis
Hello The RequestDispatcher.forward method 'should be called before the response has been committed to the client' as quoted from: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/index.html I think your code is breaking that rule. Regards Harry Mantheakis London, UK Hello All,

File download impact JSP running

2003-11-16 Thread Cui Xiaojing-a13339
Hello All, I use below a set of commands to download a file, after the file is saved into local disk, the current JSP page (Jreport_main.jsp) could not work correctly. After the current page is refreshed, it can work again. Does setting header in response impact the jsp running? Could please

how to write file download program

2003-10-09 Thread bin cai
Hi, I am afraid to ask some instruction for my work. I am thinking to write a program to help client to download some sound file from server. Client send request to download a file in server. The request includes the file name and directory he want the file to be loaded onto. the request invokes

AW: how to write file download program

2003-10-09 Thread Nitschke Michael
You know that you are on a java oriented list, and i assume that not much of the members are php-experienced. Mike -Ursprüngliche Nachricht- Von: bin cai [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 09. Oktober 2003 12:08 An: Tomcat Users List Betreff: how to write file download

question on creating a file download servlet

2003-06-09 Thread Mark W. Webb
I need to write a servlet that handles file downloads, so that I can audit who downloaded from where, when..etc. When I click on the link to download a file, the Save As window comes up in my browser(Netscape), and as a default filename I get the servlet name. Is there a way to list the actual

RE: question on creating a file download servlet

2003-06-09 Thread Shapira, Yoav
on creating a file download servlet I need to write a servlet that handles file downloads, so that I can audit who downloaded from where, when..etc. When I click on the link to download a file, the Save As window comes up in my browser(Netscape), and as a default filename I get the servlet name

Re: question on creating a file download servlet

2003-06-09 Thread Mark W. Webb
To: [EMAIL PROTECTED] Subject: question on creating a file download servlet I need to write a servlet that handles file downloads, so that I can audit who downloaded from where, when..etc. When I click on the link to download a file, the Save As window comes up in my browser(Netscape

Re: question on creating a file download servlet

2003-06-09 Thread budi
check this out: http://www.fawcette.com/javapro/2002_03/online/online_eprods/servlets_03_08/ budi ---Original Message--- From: Mark W. Webb Subject: question on creating a file download servlet Sent: 09 Jun 2003 19:33:37 I need to write a servlet

[OT] cache problems with IE after file download...could it be tomcat?

2003-03-07 Thread Prashanth Pushpagiri
implemented a file download bean which sends out binary data to the browser. The bean is instantiated by a JSP page. To make sure browsers don't cache response I do: response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); response.setDateHeader(max-age, 0

Weird error using file download

2002-11-26 Thread Vy Ho
I got a very weird error and here is the situation: The app I used: tomcat 4.06, phoenix web browser 0.3, ie6.0 Here is the problem: When I set up an application in tomcat (with BASIC AUTHEN), phoenix could download all binary files (.exe, .pdf, etc...) fine from Tomcat server. Then I tested

File Download and then Reloading a page

2002-07-17 Thread Laurent Michenaud
Hi, I would like to be able within a servlet to launch a file download and just after reloading a jsp page( =The servlet generates two response ). Is it possible ? Thanks Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe, e-mail: mailto:[EMAIL

File Download and then Reloading a page

2002-07-17 Thread Laurent Michenaud
Hi, I would like to be able within a servlet to launch a file download and just after reloading a jsp page( =The servlet generates two response ). Is it possible ? Thanks Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe, e-mail: mailto:[EMAIL

Re: File Download and then Reloading a page

2002-07-17 Thread Nikola Milutinovic
I would like to be able within a servlet to launch a file download and just after reloading a jsp page( =The servlet generates two response ). Is it possible ? No, but you can give a JSP/HTML page in response that will have JScript function that opens another page

IIS - jsp file download on port 80

2002-06-27 Thread Jeffrey Polaski
First, thanks in advance for any help with this... I've gotten Tomcat 4.0.4 set up and everything works well if I connect to port 8080. I'd like to be able to serve servlets and jsp's transparently to users over port 80. However, if I connect through port 80 and try to grab a .jsp file all I

Re: IIS - jsp file download on port 80

2002-06-27 Thread Prashanth Pushpagiri
Try adding a application mapping in your IIS console. (IIS console -- Home Directory -- Configuration App Mapping), I'm using IIS 5.0 in win2k professional. In this console add the .jsp entension and map it to isapi_redirect(or).dll where ever it is stored. That should work. Also, check to see

Re: File download with Tomcat 4.0.2

2002-06-02 Thread thorsten frank
hi, At 02:34 PM 31/05/2002 -0700, you wrote: Hello, How do I force Tomcat to serve a file as a download, instead of displaying it in the browser? you don't, because it's up to the browser to decide. you can zip up all the files you want to offer for download, but any content-type the

Re: File download with Tomcat 4.0.2

2002-06-01 Thread Markus Kirsten
Hi Alex, I think that's actully up to the browser to determinate wheter the browser should display the data, if a helper application should do so or if the user should be prompted to download the file without displaying or executing it. So, in other words, what you need to do is to say on the

File download with Tomcat 4.0.2

2002-05-31 Thread Alex Roussev
Hello, How do I force Tomcat to serve a file as a download, instead of displaying it in the browser? For example, if I have an href pointing to a filename with extention exe and I click on the href within a browser it will prompt me to save this file. So basically, I want to do this

Re: File download with Tomcat 4.0.2

2002-05-31 Thread Phillip Morelock
yes, define a mime-mapping is this not a common mime type (one you've made up yourself)? If so, many browsers will display anything they perceive as text data right in the browser itself by default. you're running into a somewhat complex interaction of client browser software and server

File Download

2002-03-22 Thread Reto Badertscher
Hello, i'm downloading a file from a servlet. So far all is OK, besides that IE5 displays the URL in the save dialog. I have a problem when using the compress filter - my file is no longer stored with the correct MIME type (in this case 'mdb'). How can i download a zipped application file and

RE: File Download - CSV question ****

2001-10-26 Thread Alberto Gobbi
You should have a look at the mime type definition for .csv in both installations. Alberto -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 22:11 To: Tomcat-User Subject: Re: File Download - CSV question Are you using the same

RE: File Download - CSV question ****

2001-10-26 Thread Dmitri Colebatch
be wiser (o: cheers dim -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 10:11 PM To: Tomcat-User Subject: Re: File Download - CSV question Are you using the same client between the two servers? IE seems to consider

RE: File Download - CSV question ****

2001-10-26 Thread Craig R. McClanahan
On Thu, 25 Oct 2001, Evan Swanson wrote: Date: Thu, 25 Oct 2001 13:22:06 -0700 From: Evan Swanson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Cc: 'Dmitri Colebatch' [EMAIL PROTECTED] Subject: RE: File Download - CSV question I order

RE: File Download - CSV question ****

2001-10-26 Thread Cato, Christopher
. /Christopher Cato -Original Message- From: Evan Swanson [mailto:[EMAIL PROTECTED]] Sent: den 25 oktober 2001 22:22 To: '[EMAIL PROTECTED]' Cc: 'Dmitri Colebatch' Subject: RE: File Download - CSV question I order to reduce the variable, I tried installing TC4.0

RE: File Download - CSV question ****

2001-10-26 Thread Furmaniak Christophe
10:11 PM To: Tomcat-User Subject: Re: File Download - CSV question Are you using the same client between the two servers? IE seems to consider itself more important than mimetypes, and if it sees a file extension it recognises it treats it as it deems fit, regardless

RE: File Download - CSV question ****

2001-10-26 Thread Evan Swanson
: 'Dmitri Colebatch' Subject: RE: File Download - CSV question On Thu, 25 Oct 2001, Evan Swanson wrote: Date: Thu, 25 Oct 2001 13:22:06 -0700 From: Evan Swanson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Cc: 'Dmitri Colebatch' [EMAIL PROTECTED

RE: File Download - CSV question ****

2001-10-26 Thread Craig R. McClanahan
On Fri, 26 Oct 2001, Dmitri Colebatch wrote: Date: Fri, 26 Oct 2001 15:10:03 +1000 From: Dmitri Colebatch [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: File Download - CSV question On Thu, 25 Oct 2001, Evan Swanson wrote

File Download - CSV question

2001-10-25 Thread Evan Swanson
I wrote an application that for Tomcat 3.2 running on window. In the HTML the is a reference ( A HREF=/filname.csv ) to the filename. When I run this on windows I get a popup save as selection box. When I run this on Tomcat4.0 on Unix it no longer gives me the selection box but instead

Re: File Download - CSV question ****

2001-10-25 Thread Dmitri Colebatch
Are you using the same client between the two servers? IE seems to consider itself more important than mimetypes, and if it sees a file extension it recognises it treats it as it deems fit, regardless of the mimetype. So one possibility is that you have just installed excel or something on the

RE: **** File Download - CSV question ****

2001-10-25 Thread Shah, Chintan V (Chintan)
]' Subject: File Download - CSV question I wrote an application that for Tomcat 3.2 running on window. In the HTML the is a reference ( A HREF=/filname.csv ) to the filename. When I run this on windows I get a popup save as selection box. When I run this on Tomcat4.0 on Unix it no longer

RE: File Download - CSV question ****

2001-10-25 Thread Filip Hanik
24, 2001 10:11 PM To: Tomcat-User Subject: Re: File Download - CSV question Are you using the same client between the two servers? IE seems to consider itself more important than mimetypes, and if it sees a file extension it recognises it treats it as it deems fit, regardless of the mimetype

RE: File Download - CSV question ****

2001-10-25 Thread Evan Swanson
by the extension name but it is not. Is MIME type something you can configure on Tomcat? -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 10:11 PM To: Tomcat-User Subject: Re: File Download - CSV question Are you using the same client

RE: File Download - CSV question ****

2001-10-25 Thread Evan Swanson
for this? Can I change the configuration? Is this a MIME type problem? -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 10:11 PM To: Tomcat-User Subject: Re: File Download - CSV question Are you using the same client between the two

**** File Download - CSV question ****

2001-10-24 Thread Evan Swanson
I wrote an application that for Tomcat 3.2 running on window. In the HTML the is a reference ( A HREF=/filname.csv ) to the filename. When I run this on windows I get a popup save as selection box. When I run this on Tomcat4.0 on Unix it no longer gives me the selection box but instead displays

File Download - CSV question ****

2001-10-24 Thread Evan Swanson
I wrote an application that for Tomcat 3.2 running on window. In the HTML the is a reference ( A HREF=/filname.csv ) to the filename. When I run this on windows I get a popup save as selection box. When I run this on Tomcat4.0 on Unix it no longer gives me the selection box but instead

RE: file download servlet

2001-09-12 Thread Dinu Jose
11:54 AM To: tomcat-user Subject: RE: file download servlet Hi, have you tried with different browsers? I remember vaguely that this kind of stuff can also be working in one browser and not work in another one... regards Alexander -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: file download servlet

2001-09-12 Thread chiuming
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 11:53 PM To: [EMAIL PROTECTED] Subject: file download servlet I asked this question before, but I didn't get any reply. I post it again in hope someone could give me some hint

RE: file download servlet

2001-09-12 Thread Tim O'Neil
that this kind of stuff can also be working in one browser and not work in another one... regards Alexander -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 11:53 PM To: [EMAIL PROTECTED] Subject: file download servlet

RE: file download servlet

2001-09-12 Thread Tony Vinayak
]] Sent: Wednesday, September 12, 2001 2:04 PM To: [EMAIL PROTECTED] Subject: RE: file download servlet The server sends a header that describes the file type. See mime types. At 10:45 AM 9/12/2001, you wrote: But how exactly does web server instruct web browser to save the stream of bytes

Re: file download servlet

2001-09-12 Thread Ketan Patel
song.mp3 will be the filename. -Ketan chiuming wrote: I asked this question before, but I didn't get any reply. I post it again in hope someone could give me some hint. I have a file download servlet serves web browsers. request to file is like this http://192.168.1.105/download/servlet

Re: file download servlet

2001-09-12 Thread Dmitri Colebatch
while downloading the extrapath song.mp3 will be the filename. -Ketan chiuming wrote: I asked this question before, but I didn't get any reply. I post it again in hope someone could give me some hint. I have a file download servlet serves web browsers. request to file

Re: file download servlet

2001-09-12 Thread simon
of interest, is the above URL really considered illegal or a security threat? - Original Message - From: Dmitri Colebatch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 13, 2001 1:48 PM Subject: Re: file download servlet you could go a step further than

file download servlet

2001-09-11 Thread chiuming
I asked this question before, but I didn't get any reply. I post it again in hope someone could give me some hint. I have a file download servlet serves web browsers. request to file is like this http://192.168.1.105/download/servlet/download?filename=song.mp3 The file on the server side

RE: file download servlet

2001-09-11 Thread Alexander Jesse
To: [EMAIL PROTECTED] Subject: file download servlet I asked this question before, but I didn't get any reply. I post it again in hope someone could give me some hint. I have a file download servlet serves web browsers. request to file is like this http://192.168.1.105/download/servlet/download

RE: setContentType / File download

2001-03-14 Thread Kwan, Kenneth Y
, March 14, 2001 4:08 PM To: tomcat-user Subject:setContentType / File download Hi tomcat-user, i have some troubles using the setContentType method. I want to generate a CSV file of my database data and send it to the browser. the browser

Re: setContentType / File download

2001-03-14 Thread Tagunov Anthony
On Wed, 14 Mar 2001 09:07:57 +0100, Gerd Trautner wrote: Hi tomcat-user, i have some troubles using the setContentType method. I want to generate a CSV file of my database data and send it to the browser. the browser should then say "save file as filenam.csv" ... what i do is:

AW: setContentType / File download

2001-03-14 Thread Andreas Mecky
AIL PROTECTED]] Gesendet: Mittwoch, 14. Marz 2001 09:08 An: tomcat-user Betreff: setContentType / File download Hi tomcat-user, i have some troubles using the setContentType method. I want to generate a CSV file of my database data and send it to the browser. the browser should then say

RE: setContentType / File download

2001-03-14 Thread Stefán F. Stefánsson
This pops up the Save file/open dialog box but if you choose to save you'll get a garbled name... but at least you'll get the file! -Original Message- From: Gerd Trautner [mailto:[EMAIL PROTECTED]] Sent: 14. mars 2001 08:08 To: tomcat-user Subject: setContentType / File download Hi

Re: AW: setContentType / File download

2001-03-14 Thread Gerd Trautner
Andreas Mecky, Wednesday, March 14, 2001, 1:14:45 PM, you wrote: Hi, try this: response.setContentType(application/msexcel); response.setHeader("Content-Disposition","inline; filename="here goes my filename"); this works for me in IE and NS. yes, this works. thanks! gerd

setContentType / File download

2001-03-13 Thread Gerd Trautner
Hi tomcat-user, i have some troubles using the setContentType method. I want to generate a CSV file of my database data and send it to the browser. the browser should then say "save file as filenam.csv" ... what i do is: