tomcat-users mailing list archives

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

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.

Anybody?


Example below:

<html>
<head>
<title>Problem</title>
<script language="JavaScript" src="/include/functions.js"></script>
</head>
<body>
foo
</body>
</html>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message