https://issues.apache.org/bugzilla/show_bug.cgi?id=52361
Bug #: 52361 Summary: JasperException at JSP compilation Product: Tomcat 6 Version: 6.0.35 Platform: PC OS/Version: Windows XP Status: NEW Severity: regression Priority: P2 Component: Jasper AssignedTo: dev@tomcat.apache.org ReportedBy: l...@dinec.be Classification: Unclassified When a tag attribute contains a JSP scriplet, an compilation exception is thrown if there is a double quote inside the scriplet. Example: <select:myControl name="blabla" lng="<%=bNorth?"nl":"fr"%>" /> There were no problems with such instructions in the previous tomcat versions (<=6.0.28). stack trace: org.apache.jasper.JasperException: /test.jsp(258,104) Attribute value bEn?"en":"fr" is quoted with " which must be escaped when used within the value at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88) at org.apache.jasper.compiler.Parser.parseAttributeValue(Parser.java:256) at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:205) at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:148) at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1208) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1422) at org.apache.jasper.compiler.Parser.parse(Parser.java:130) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592) ... -- 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