tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Payne" <>
Subject Tomcat appending garbage to files ending in .js
Date Thu, 12 Sep 2002 02:25:51 GMT

I've got a JSP with an embedded Javascript Source File request.  When Tomcat
(4.0.4) serves up the file, it appends this to the end of the file:

/*HTTP/1.1 200 OK Content-Length: 0 Date: Thu, 12 Sep 2002 02:13:50 GMT
Server: Apache Tomcat/4.0 (HTTP/1.1 Connector)

It's causing my browser to throw some nasty javascript errors. And if I
rename the file with an extension other than .js, it seems to work fine.


Example below:

<script language="JavaScript" src="/include/functions.js"></script>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message