Re: How to specify a name for a content beeing served by s servlet

2003-01-14 Thread Cédric Viaud
Ok, it now work fine. I just make a little modification to the code with : response.setHeader(Content-Disposition,inline; filename=+archive); If i put attachment and not inline i can't manage to have the native contents embemded in my page for data such as images. Thanks everybody for the help.

How to specify a name for a content beeing served by s servlet

2003-01-09 Thread Cédric Viaud
Hi, i would like to know if it is possible to indicate in the HTTP header of a response a name for a ressource. Let be a little clearer. I got a controler servlet wich map all request with *.do. I check the URL use the name before the .do to know the command. For exemple, if the request is

RE: How to specify a name for a content beeing served by s servlet

2003-01-09 Thread Ralph Einfeldt
You are looking at the wrong spec :} It part of the mime standard: http://www.nacs.uci.edu/indiv/ehood/MIME/rfc2183.txt You need to set a header Content-Disposition with the value of filename=somefile.ext; -Original Message- From: Cédric Viaud [mailto:[EMAIL PROTECTED]] Sent:

Re: How to specify a name for a content beeing served by s servlet

2003-01-09 Thread Jason Pyeron
Cédric, You could write something like this, as we have done. /some-path/getbyidservice/93847572934/foo-filename.jpg We have done this in Perl, and will be attacking this in servlets 1st week February. This allows the browser to cache (if allowed by headers) and to have the

RE: How to specify a name for a content beeing served by s servlet[off-toppic]

2003-01-09 Thread Jason Pyeron
yea, i agree but not all [dumb?] browsers respect it. -jason pyeron On Thu, 9 Jan 2003, Ralph Einfeldt wrote: You are looking at the wrong spec :} It part of the mime standard: http://www.nacs.uci.edu/indiv/ehood/MIME/rfc2183.txt You need to set a header Content-Disposition with the value of

Re: How to specify a name for a content beeing served by s servlet

2003-01-09 Thread Craig R. McClanahan
On Thu, 9 Jan 2003, Cédric Viaud wrote: Date: Thu, 9 Jan 2003 17:24:24 +0100 From: Cédric Viaud [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat users [EMAIL PROTECTED] Subject: How to specify a name for a content beeing served by s servlet Hi, i would like to

Re: How to specify a name for a content beeing served by s servlet

2003-01-09 Thread jon
I found this resource: http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html I've seen people say they use the Content-disposition header to get around this issue but I haven't needed to do this yet... Example: Content-disposition: attachment; filename=file2.gif HTH, Jon Quoting Cédric

Re: How to specify a name for a content beeing served by s servlet

2003-01-09 Thread Dodd Gatsos
Sorry, Here's the code line I used: response.setHeader(Content-Disposition,attachment; filename=+archive); Dodd - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 11:19 AM Subject: Re: How to specify a name for a

Re: How to specify a name for a content beeing served by s servlet

2003-01-09 Thread Dodd Gatsos
Yes, This is exactly what I did to send .csv files to the client with the correct name of the file rather than the called servlet as the default filename. Worked like a charm on both IE and Netscape. Dodd - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL