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?
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
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
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
-
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
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
://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
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
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.
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
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
-
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
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
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
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());
(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
: 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
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=\"" +
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
/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
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
: '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
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
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
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
]'
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
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
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
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
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
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
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
-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
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
]]
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
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
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
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
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
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
, 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
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:
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
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
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
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:
70 matches
Mail list logo