tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Colebatch <...@bigpond.net.au>
Subject RE: File Download - CSV question ****
Date Fri, 26 Oct 2001 05:10:03 GMT
On Thu, 25 Oct 2001, Evan Swanson wrote:

> I am using IE5.0 in both situations. The only difference is going from
> TC3.2 on windows to TC4.0 on HP Unix. I would think that the IE would
> be making the decision on how to handle the file by the extension name
> but it is not.

technically speaking it should (and by the sounds of it is) be looking at
the mime type.

> Is MIME type something you can configure on Tomcat? 

I'm not on solid ground here, so I'll let someone else answer it.  I know
that in $TOMCAT_HOME/conf/web.xml and $CATALINA_HOME/conf/web.xml there
are mime-types listed, but I'm not sure if changing them will change the
behaviour (I remember a lot of discussion about this a few months back in
relation to tc3 and my memory is that the conf/web.xml is not read by the
container, but I could be wrong).

So if someone else with firm knowledge could answer that one we'd both
be wiser (o:

cheers
dim


> 
> 
> -----Original Message-----
> From: Dmitri Colebatch [mailto:dim@bigpond.net.au]
> 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 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 client, and IE is redirecting the download there.
> 
> another option is that the mimetype being sent in tomcat 4.0 is different
> to 3.x, but I'm not sure about this, so will let someone else answer this
> option.
> 
> if you outline exactly what client/server you were using before, and now,
> it will make the question more specific.  for intsance, tc3.2 on windows
> with a win98 client with IE4.0 and now using tc4.0 on linux with a win2k
> client with IE5.0.
> 
> cheers
> dim
> 
> On Wed, 24 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 displays the data on the screen.
> > 
> > Is this a difference between TC32 adn TC40 or Unix / Windows.
> > Is this configurable.
> > 
> > 
> > Thanks in advance.
> > 
> > 
> 


Mime
View raw message