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: dev@tomcat.apache.org ReportedBy: joh...@johannburkard.de 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org