https://bz.apache.org/bugzilla/show_bug.cgi?id=67606
Bug ID: 67606 Summary: Malformed JSP compilation Product: Tomcat 8 Version: 8.5.x-trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: Jasper Assignee: dev@tomcat.apache.org Reporter: eeshan.k...@internetbrands.com Target Milestone: ---- After upgrading to tomcat 8.5.93 (version is not in dropdown above), I have noticed our old JSP pages (that have been working since before Tomcat 5) have started to become malformed. It seems the jsp is malformed when jasper is creating/parsing it into a .java file? I have stopped tomcat, removed all previous files under the /Catalina/work... path to force a recompilation of the JSP's, but to no avail. It surprisingly seems to eliminate parsing of the <script> element, thereby causing the entire page to be malformed. The EXACT SAME CODE runs fine on another staging VM, with the same tomcat version (the difference only lies in the OS version) I see 0 exceptions in any/all logs. When I manually try and type the JSP and force a recompile, tomcat is still pulling the malformed .java file. An extract of the JSP and the Java class : <head> <title>Fe Queue Browser</title> <script> function validate() { var password = prompt('Whatsa passwoid?', ''); if (password == '<%=password%>') { return true; } else { alert('Wrong!'); return false; } } ------------------------------------------------------- The compiled java class for the above section (notice the missing <script>): out.write("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("<html>\r\n"); out.write(" <head>"); out.write("\r\n"); out.write(" "); out.write("<title>Fe Queue Browser</title>"); out.write("\r\n"); out.write(" \r\n"); out.write(" "); out.print(password); out.write("') {\r\n"); out.write(" return true;\r\n"); ------------------------------------------------------------ Is there a bug on how Jasper2.3 is parsing/reading the <script> element? Do I need to re-write my page? How then does the same code compile correctly on another VM. -- 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