age-
> From: Johnson Winfrey [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 26, 2001 4:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: More on downloading a file
>
> System.out.println DOES show up in the Java Console of the browser showing
> the
> Applet...
t;A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:(bcc: Winfrey Y Johnson/IT/VANCPOWER)
Subject: Re: More on downloading a file
Sohalia,
Note that the System.out.println in your apple
Sohalia,
Note that the System.out.println in your applet code is not going to show
up anywhere because the there is no console for the Applet to display.
I'd suggest that you have your applet just post to one of the tomcat
example servlets that will print out the request. Note that there is not
Sohaila Roberts wrote:
>
> Hi, ok i don't get an error anymore (thank you to those who helped me with
> that). I removed the ObjectOutputStream from my code, but now my servlet
> doesnt seems to not be run even tho a connection to is is established.
> (The servletrunner thing where it says the ser
Hi, ok i don't get an error anymore (thank you to those who helped me with
that). I removed the ObjectOutputStream from my code, but now my servlet
doesnt seems to not be run even tho a connection to is is established.
(The servletrunner thing where it says the servletname: init thing doesnt
happe
Sohaila Roberts wrote:
>
>
> --
> ObjectInputStream in = new ObjectInputStream(req.getInputStream() );
> ObjectOutputStream out1 = new ObjectOutputStream( resp.getOutputStream() );
> PrintWriter out2 = resp.getWriter();
> try {
You can not c
Sohalia,
You can't call both getOutputStream() and getWriter(). You can only call
one or the other. It is documented in the JavaDocs.
I don't think you need the call to getWriter().
-Richard
At 12:23 PM 9/26/01 -02-30, you wrote:
>Hello
>I want a servlet to force a download after the user
file
Have you thought about XML -> XSLT?
Cheers!
Mark
- Original Message -
From: "Jason Hunter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 12:20 PM
Subject: Re: Downloading a file
> "Rajeshwar Rao.V" wrote:
> >
Have you thought about XML -> XSLT?
Cheers!
Mark
- Original Message -
From: "Jason Hunter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 12:20 PM
Subject: Re: Downloading a file
> "Rajeshwar Rao.V" wrote:
> >
>
"Rajeshwar Rao.V" wrote:
>
> I used ServletUtils.returnFile() method but it is displaying just contents
> of the file on the browser. Any help is appreciated.
For some file types on IE that's the best you can get. See
http://www.servlets.com/soapbox/bugs.html.
-jh-
Hi Friends,
I used Jason Hunter package for File Uploading from Browser to
Server using servlets.I succesfully did it.My question is I want to dispaly
the same file on browser and make it flexible to user to save it to his
disk..How can i do that?
I used ServletUtils.returnFile() method b
Hello all!
I have a servlet that calls a JNI method to download a file. The file is
downloaded the /public_html directory of Java Web Server
2.0. Now, if I view the directory listing of /public_html
it lists the file but indicates the size of the file as 0 KB. When I
terminate the Web server and t
Do some workaround , set content type such that the browser cannot understand
, than write the file into it , browser will ask you to either open or save,
you can save it
May be its a workaround but it will give a solution
ravi
servletqa qa wrote:
> Hi
> How to download a file from server to the
//HttpResponse res passed into the method that uses this code
ServletOutputStream out = res.getOutputStream();
String contentType = getServletContext().getMimeType (filepath);
res.setContentType(contentType);
try {
***
- Original Message -
From: "servletqa qa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 23, 2000 1:45 PM
Subject: Downloading a file
> Hi
> How to download a file from server to the client usi
tem's Java
>Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Downloading a file
>Date: Wed, 23 Feb 2000 08:15:56 GMT
>
>Hi
>How to download a file from server to the client using a servlet. (Like
>Upload Servelet example.
Hi
How to download a file from server to the client using a servlet. (Like
Upload Servelet example.)
TIA
__
Get Your Private, Free Email at http://www.hotmail.com
___
To uns
whoops. heres the line...
public static final String sCONTENT_DISPOSITION = "Content-Disposition";
-Original Message-
From: Henric Larsson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, 7 October 1999 15:39
Subject: Re: download
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 07, 1999 7:23 AM
Subject: Re: downloading a file via servlet
here's an extract from the code I use. check the comments, you should be
able to figure it out.
// Set the filename
// IE4 will use content disposition filename only if it
ok, I see, but the
.henric
| www.abelbaker.com | [EMAIL PROTECTED] |
- Original Message -
From: Geoff Soutter <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 07, 1999 7:23 AM
Subject: Re: downloading a file via servlet
here's an extract from the
eaders.sCONTENT_DISPOSITION, lType + ";
filename=\"" + lFileName + "\"");
-Original Message-
From: Henric Larsson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, 7 October 1999 14:59
Subject: downloading a file via servl
Hi,
I have written a servlet that let's a user download files located in a
database, the problem is that the user clicks on a link that looks like
this:
LargeFile.doc
now when the save file dialog box pops up, it want to save the file as
FileServlet.zip. I want to modify this so the filedialog
22 matches
Mail list logo