Reduce variable scope to reduce testing issues
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 11 Jul 2011 09:29:28 +0000 (09:29 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 11 Jul 2011 09:29:28 +0000 (09:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1145084 13f79535-47bb-0310-9956-ffa450edef68

webapps/examples/jsp/tagplugin/if.jsp

index 0050039..6f32e99 100644 (file)
@@ -33,7 +33,7 @@
     <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 
     <h3>Set the test result to a variable</h3>
-    <c:if test="${1==1}" var="theTruth" scope="session"/>
+    <c:if test="${1==1}" var="theTruth" scope="page"/>
     The result of testing for (1==1) is: ${theTruth}
 
     <h3>Conditionally execute the body</h3>