tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject svn commit: r357589 - /tomcat/jasper/tc5.5.x/jasper2/src/share/org/apache/jasper/compiler/Generator.java
Date Mon, 19 Dec 2005 00:48:47 GMT
Author: billbarker
Date: Sun Dec 18 16:48:43 2005
New Revision: 357589

URL: http://svn.apache.org/viewcvs?rev=357589&view=rev
Log:
Restrict <jsp:getAttribute /> to only look in PAGE_SCOPE.

This is per the JSP spec section 5.3.  It would be nice to be able to do this at translation
time (as recommended), but I don't see how to do this with my limited knowledge of Jasper
:(.

Fix for Bug #37933


Modified:
    tomcat/jasper/tc5.5.x/jasper2/src/share/org/apache/jasper/compiler/Generator.java

Modified: tomcat/jasper/tc5.5.x/jasper2/src/share/org/apache/jasper/compiler/Generator.java
URL: http://svn.apache.org/viewcvs/tomcat/jasper/tc5.5.x/jasper2/src/share/org/apache/jasper/compiler/Generator.java?rev=357589&r1=357588&r2=357589&view=diff
==============================================================================
--- tomcat/jasper/tc5.5.x/jasper2/src/share/org/apache/jasper/compiler/Generator.java (original)
+++ tomcat/jasper/tc5.5.x/jasper2/src/share/org/apache/jasper/compiler/Generator.java Sun
Dec 18 16:48:43 2005
@@ -1028,9 +1028,9 @@
                 out.printil(
                     "out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString"
                         + "(org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty"
-                        + "(_jspx_page_context.findAttribute(\""
+                        + "(_jspx_page_context.getAttribute(\""
                         + name
-                        + "\"), \""
+                        + "\", PageContext.PAGE_SCOPE), \""
                         + property
                         + "\")));");
             }



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


Mime
View raw message