tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Len Popp" <len.p...@gmail.com>
Subject Re: href to .xls file shows raw file
Date Mon, 15 Oct 2007 17:59:30 GMT
I tried this on Tomcat 5.0.28. With Internet Explorer I had to clear
the browser cache before it would work. (With Firefox it worked with
or without the mime-mapping. Firefox must be finding the program based
on the file extension.)
-- 
Len

On 10/15/07, alla winter <alla1.winter@gmail.com> wrote:
> I added to web.xml  ( on both, server level and application level) the
> following clause
> <mime-mapping>
>         <extension>xls</extension>
>        <mime-type>application/vnd.ms-excel</mime-type>
>       </mime-mapping>
>
> and then restarted the server, but still got the same result
> Am I using the right set up?
> thanks
>
>
>
> On 10/15/07, Len Popp <len.popp@gmail.com> wrote:
> >
> > On 10/15/07, David Delbecq <delbd+jakarta@oma.be> wrote:
> > > alla winter a écrit :
> > > > I would appreciate if you would give me a hint, what should I do to
> > make
> > > > browser to display excell spread sheet when href to .xls file is
> > selected?
> > > > It displays the raw file insted.
> > > >
> > > > <a href="/cobra_source/beneficiary_template.xls"
> > > > target="_blank">Excel template </a>
> > > >
> > > > P.S.  I am using Tomcat 5.0.28 and jdk 1.5.0._12
> > > >
> > > > thanks for your help
> > > >
> > > >
> > > in the web.xml of your webapplication, you should properly define the
> > > contentype for .xls files.
> >
> > Specifically,
> >    <mime-mapping>
> >        <extension>xls</extension>
> >        <mime-type>application/vnd.ms-excel</mime-type>
> >    </mime-mapping>
> > In later versions of Tomcat, the default configuration has this mapping.
> > --
> > Len
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message