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:14:23 GMT
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


Mime
View raw message