You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Jian <dj...@UU.NET> on 2000/05/09 22:49:44 UTC
How to map .js to MIME type to tomcat
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
Re: How to map .js to MIME type to tomcat
Posted by Bryan Davis <br...@accessidaho.org>.
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
<br...@accessidaho.org> Director of Development Boise, ID 83702
http://www.state.id.us v:208.332.0102 f:208.332.0106