You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/02/05 01:39:08 UTC

DO NOT REPLY [Bug 33407] New: - \$ is quoted even with el-ignored=true

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33407>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33407

           Summary: \$ is quoted even with el-ignored=true
           Product: Tomcat 5
           Version: 5.5.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: john.donald@web.de


The spec mentions that \$ is only enabled when EL is enabled.

JSP.1.6 Quoting and Escape Conventions
Quoting in Template Text
Only when the EL is enabled for a page (see Section JSP.3.3.2, �Deactivating
EL Evaluation�), a literal $ can be quoted by \$. This is not required but is
useful for quoting EL expressions.

This is currently not the case, as i can see a TODO in the src code.

// TODO: only recognize \$ if isELIgnored is false, but since
// it can be set in a page directive, it cannot be determined
// here.  Argh!

Nevertheless it's a bug i have run into, because my jsps contain many regular 
expressions for javascript where the $ has to be escaped \$, so it's not 
interpreted as end of line in the regex.

John

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org