https://issues.apache.org/bugzilla/show_bug.cgi?id=51314
Bug #: 51314
Summary: JavaScript interpreted as Java when included in JSP
Product: Tomcat 6
Version: 6.0.32
Platform: All
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P2
Component: Jasper
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 27103
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27103
The JavaScript I'm trying to inline.
I was trying to inline one of my site's main JavaScript. The JavaScript is
attached.
The JSP code I used looks like this:
$ cat test.jsp
<%@ include file="r6.js" %>
$
The error message I'was getting is
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 102 in the jsp file: /r6.js
Syntax error on tokens, Label expected instead
Looks like Jasper is trying to compile the JavaScript because it has several
Java keywords in it?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]