jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r775619 - in /jakarta/taglibs/proper/string/trunk/string-test/src: main/webapp/org/apache/taglibs/string/CapitalizeTest.jsp test/java/org/apache/taglibs/string/CapitalizeTest.java
Date Sun, 17 May 2009 10:01:40 GMT
Author: bayard
Date: Sun May 17 10:01:39 2009
New Revision: 775619

URL: http://svn.apache.org/viewvc?rev=775619&view=rev
Log:
Needs to push things through application scope. Now for String to support that attribute

Modified:
    jakarta/taglibs/proper/string/trunk/string-test/src/main/webapp/org/apache/taglibs/string/CapitalizeTest.jsp
    jakarta/taglibs/proper/string/trunk/string-test/src/test/java/org/apache/taglibs/string/CapitalizeTest.java

Modified: jakarta/taglibs/proper/string/trunk/string-test/src/main/webapp/org/apache/taglibs/string/CapitalizeTest.jsp
URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/string/trunk/string-test/src/main/webapp/org/apache/taglibs/string/CapitalizeTest.jsp?rev=775619&r1=775618&r2=775619&view=diff
==============================================================================
--- jakarta/taglibs/proper/string/trunk/string-test/src/main/webapp/org/apache/taglibs/string/CapitalizeTest.jsp
(original)
+++ jakarta/taglibs/proper/string/trunk/string-test/src/main/webapp/org/apache/taglibs/string/CapitalizeTest.jsp
Sun May 17 10:01:39 2009
@@ -1,3 +1,3 @@
 <%@ taglib uri="http://jakarta.apache.org/taglibs/string-1.1" prefix="str" %>
 
-<str:capitalize var="test">test successful</str:capitalize>
+<str:capitalize var="test" scope="application">test successful</str:capitalize>

Modified: jakarta/taglibs/proper/string/trunk/string-test/src/test/java/org/apache/taglibs/string/CapitalizeTest.java
URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/string/trunk/string-test/src/test/java/org/apache/taglibs/string/CapitalizeTest.java?rev=775619&r1=775618&r2=775619&view=diff
==============================================================================
--- jakarta/taglibs/proper/string/trunk/string-test/src/test/java/org/apache/taglibs/string/CapitalizeTest.java
(original)
+++ jakarta/taglibs/proper/string/trunk/string-test/src/test/java/org/apache/taglibs/string/CapitalizeTest.java
Sun May 17 10:01:39 2009
@@ -26,7 +26,7 @@
         String toInclude = getTestJsp(this);
         pageContext.include(toInclude);
 
-        String test = (String) pageContext.getAttribute("test");
+        String test = (String) pageContext.getAttribute("test", PageContext.APPLICATION_SCOPE);
 
         assertEquals("JSP set incorrect value", "Test successful", test);
     }



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


Mime
View raw message