[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-cvs-commits
Subject: [jboss-cvs] jbosstest/src/resources/cluster/http ...
From: Scott Stark <scott.stark () jboss ! com>
Date: 2005-04-30 16:56:16
Message-ID: E1DRvGK-0005ZH-Tq () committer01 ! frg ! pub ! inap ! atl ! jboss ! com
[Download RAW message or body]
User: starksm
Date: 05/04/30 12:56:16
Modified: src/resources/cluster/http Tag: Branch_4_0 getattribute.jsp
Log:
Use a custom X-SawTestHttpAttribute header which is set to true/false to convey \
whether there was a TEST_HTTP session attribute value.
Revision Changes Path
No revision
No revision
1.2.4.1 +7 -1 jbosstest/src/resources/cluster/http/getattribute.jsp
(In the diff below, changes in quantity of whitespace are not shown.)
Index: getattribute.jsp
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/resources/cluster/http/getattribute.jsp,v
retrieving revision 1.2
retrieving revision 1.2.4.1
diff -u -b -r1.2 -r1.2.4.1
--- getattribute.jsp 2 Aug 2004 19:14:20 -0000 1.2
+++ getattribute.jsp 30 Apr 2005 16:56:16 -0000 1.2.4.1
@@ -1 +1,7 @@
-<%=session.getAttribute("TEST_HTTP") %>
+<%
+ // Use a custom header to indicate if the session attribute was seen
+ String TEST_HTTP = (String) session.getAttribute("TEST_HTTP");
+ String flag = TEST_HTTP != null ? "true" : "false";
+ response.setHeader("X-SawTestHttpAttribute", flag);
+%>
+<%= TEST_HTTP %>
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic