[Jboss-cvs] JBossAS SVN: r56074 - in branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http: . http-field http-scoped

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 18 12:14:22 EDT 2006


Author: bstansberry at jboss.com
Date: 2006-08-18 12:14:21 -0400 (Fri, 18 Aug 2006)
New Revision: 56074

Modified:
   branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http/getattribute.jsp
   branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http/http-field/getAttribute.jsp
   branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http/http-scoped/getAttribute.jsp
Log:
[JBAS-3526] Port JBAS-3528 Patch for 4.0.4.GA

Modified: branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http/getattribute.jsp
===================================================================
--- branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http/getattribute.jsp	2006-08-18 16:13:50 UTC (rev 56073)
+++ branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http/getattribute.jsp	2006-08-18 16:14:21 UTC (rev 56074)
@@ -3,6 +3,8 @@
    String TEST_HTTP = (String) session.getAttribute("TEST_HTTP");
    String flag = TEST_HTTP != null ? "true" : "false";
    response.setHeader("X-SawTestHttpAttribute", flag);
+   String isNew = session.isNew() ? "true" : "false";
+   response.setHeader("X-SessionIsNew", isNew);
 %>
 <h2>Server info : <%=application.getServerInfo()%>:<%=request.getServerPort()%></h2>
 

Modified: branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http/http-field/getAttribute.jsp
===================================================================
--- branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http/http-field/getAttribute.jsp	2006-08-18 16:13:50 UTC (rev 56073)
+++ branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http/http-field/getAttribute.jsp	2006-08-18 16:14:21 UTC (rev 56074)
@@ -7,6 +7,9 @@
 <%@ page import="org.jboss.test.cluster.web.aop.Student"%>
 
 <%
+   String isNew = session.isNew() ? "true" : "false";
+   response.setHeader("X-SessionIsNew", isNew);
+   
    Student ben = (Student)session.getAttribute("TEST_PERSON");
       String flag = ben != null ? "true" : "false";
       response.setHeader("X-SawTestHttpAttribute", flag);

Modified: branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http/http-scoped/getAttribute.jsp
===================================================================
--- branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http/http-scoped/getAttribute.jsp	2006-08-18 16:13:50 UTC (rev 56073)
+++ branches/JBoss_4_0_4_GA_JBAS-3526/testsuite/src/resources/cluster/http/http-scoped/getAttribute.jsp	2006-08-18 16:14:21 UTC (rev 56074)
@@ -3,8 +3,11 @@
 %>
 
 <% Person joe = ((Person)session.getAttribute("TEST_PERSON"));
-        String flag = joe != null ? "true" : "false";
-        response.setHeader("X-SawTestHttpAttribute", flag);
+   String flag = joe != null ? "true" : "false";
+   response.setHeader("X-SawTestHttpAttribute", flag);
+   
+   String isNew = session.isNew() ? "true" : "false";
+   response.setHeader("X-SessionIsNew", isNew);
 
 %>
 <%= ((Person)session.getAttribute("TEST_PERSON")).getName() %>




More information about the jboss-cvs-commits mailing list