https://issues.apache.org/bugzilla/show_bug.cgi?id=56334
--- Comment #6 from Markus <p...@chamaeleon.de> --- The question is whether EL should be processed as-is or inside some "context". I always thought (and till 7.0.47 it seems to be the case) that EL parsing is "context free", regardless whether the expression is in <c:set value="${'\\?'}" ... /> or in <set attribute="${'\\?'}" /> ("context free" not meaning Chomsky Hierarchy Context Free btw. but "without regarding the context outside the EL expression" ;) I skimmed through the JSP 2.2 spec and while \ in JSP documents are indeed treated specially I'd say this only applies to \ *outside* of EL expressions. Especially when reading section JSP.10.1.11: "For each escaped \ preceeding an unescaped expression ${foo}, a ${'\\'} must be generated in the XML view, and neighboring generated ${'\\'} expressions must be combined" I think this implies "treat \ inside EL the same way regardless of position" ("context free" in the notion above), because otherwise the spec would have to read something like "convert \ to ${'\\'} in case A and to ${'\\\\'} in case B". In "The Java EE 6 Tutorial, Volume I" Chapter 6 section "Referring to Object Properties Using Value Expressions" http://docs.oracle.com/cd/E19226-01/820-7627/gjddd/#6nisfjmda the following literals are defined for EL (amongst others): "String: with single and double quotes; " is escaped as \", ' is escaped as \', and \ is escaped as \\" So the EL specification defines the escaping literals *inside* EL expressions and the JSP specification defines processing rules of \ *outside* EL expressions, and \ inside EL should not be pre-processed by some JSP specific logic. (I could be wrong, but that's how I'd sitck together those different pieces...) -- 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