tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Davis <br...@accessidaho.org>
Subject Re: How to map .js to MIME type to tomcat
Date Wed, 10 May 2000 14:24:52 GMT
Add a block to conf/web.xml:

    <mime-mapping>
        <extension> js </extension>
        <mime-type> application/x-javascript </mime-type>
    </mime-mapping>

Bryan

David Jian wrote:
> 
> Hi,
> 
> I try to use a .js file for my javascript file. How can I map the .js
> suffix to MIME type "application/x-javascript" in tomcat 3x?
> 
> Thanks
> 
> DJ
> 
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org

-- 
Bryan Davis                 ACCESS IDAHO            999 Main St, Ste 910
<bryan@accessidaho.org> Director of Development          Boise, ID 83702
http://www.state.id.us                     v:208.332.0102 f:208.332.0106

Mime
View raw message