tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kent" <k...@thoughtshare.com>
Subject RE: Additional questions on Tomcat ROOT == Apache Root
Date Tue, 17 Oct 2000 19:24:41 GMT
It will be RFC 2183.

         |-----Original Message-----
         |From: Daniel Barclay [mailto:Daniel.Barclay@digitalfocus.com]
         |Sent: October 17, 2000 11:10 AM
         |To: tomcat-user@jakarta.apache.org
         |Subject: Re: Additional questions on Tomcat ROOT == Apache Root
         |
         |
         |Drew Kidder wrote:
         |> 
         |> I have a slight problem with my servlet, which may be 
         |related to this. See
         |> if this is a result of a goofy ROOT setup...
         |> 
         |> The user clicks on a link looking like
         |> http://host/myservlet?name="myfile.pdf", where the 
         |"name" parameter is the
         |> name of the file that they want to download. However, 
         |when the file is sent
         |> back to the browser/plugin app, the filename is not 
         |"myfile.pdf", but
         |> "myservlet.pdf". The file contents are correct in every 
         |way, but the naming
         |> is off. I was able to fix it by setting the Location 
         |header in the
         |> response, but that munged up another feature of the 
         |servlet (which I posed
         |> questions on here) by doing a redirect.
         |> 
         |> Is this behavior based on the fact that my servlet may 
         |not be set up right
         |> as far as the context and/or root is concerned?
         |
         |You probably need to set the intended file name in the 
         |right place.  There's
         |a parameter named something like "disposition" in one of 
         |the HTTP/MIME headers.
         |Look in the MIME or HTTP specs. (the RFCs).
         |
         |
         |Daniel
         |-- 
         |Daniel Barclay
         |Digital Focus
         |Daniel.Barclay@digitalfocus.com
--------------------------------------------------------------------
Any attachments to this message have been scanned for viruses by The 
Electric Mail Company Inc.'s E-mmunity (tm) service employing Trend 
Micro technology.  Prior to opening any attachments see liability
disclaimer at: http://www.electricmail.com/e-mmunity_disclaimer.html
--------------------------------------------------------------------


Mime
View raw message