tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45015] Quoting in attributes
Date Wed, 01 Oct 2008 08:30:10 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45015


Tapas Adhikary <tapas.adhikary@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tapas.adhikary@gmail.com
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




--- Comment #5 from Tapas Adhikary <tapas.adhikary@gmail.com>  2008-10-01 01:30:09 PST
---
Mark,
I am using Tomcat 5.5.27 on Linux but still facing the problem.
I am using c:ret tld and using following code in my abc.jsp,

<c-rt:set var="currUrl"
value="<%=request.getAttribute((String)pageContext.getAttribute("param")+"_Url")%>"
/>
While jsp compilation , I am getting following error,
org.apache.jasper.JasperException: file:browser/abc.jsp(51,42) Attribute value
request.getAttribute((String)pageContext.getAttribute("param")+"_Url") is
quoted with " which must be escaped when used within the value.

When I modify the code with escape character it works fine.This is my modified
code,
<c-rt:set var="currUrl"
value="<%=request.getAttribute((String)pageContext.getAttribute(\"param\")+\"_Url\")%>"
/>

According to comment # 4 this issue is resolved. But I am not sure if it is
resolved for Linux version of Tomcat 5.5.27 too.

Let me know if you need more info on this.

One quick question , Do I have to set any Tomcat JVM options to get rid of the
issue temporarily??


-- 
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message