[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-cvs-commits
Subject: [jboss-cvs] jbosstest/src/resources/cluster/http/http-jk ...
From: Brian Stansberry <brian.stansberry () jboss ! com>
Date: 2006-03-31 22:17:44
Message-ID: E1FPRw8-0007gP-Hc () committer01 ! frg ! pub ! inap ! atl ! jboss ! com
[Download RAW message or body]
User: bstansberry
Date: 06/03/31 17:17:44
Added: src/resources/cluster/http/http-jk Tag:
JBoss_4_0_3_SP1_JBAS-3037 accessSession.jsp
Log:
[JBAS-3037] Port tests for JBAS-3015 to 4.0.3.SP1
Revision Changes Path
No revision
No revision
1.2.2.2 +18 -0 jbosstest/src/resources/cluster/http/http-jk/accessSession.jsp
(In the diff below, changes in quantity of whitespace are not shown.)
Index: accessSession.jsp
===================================================================
RCS file: accessSession.jsp
diff -N accessSession.jsp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ accessSession.jsp 31 Mar 2006 22:17:44 -0000 1.2.2.2
@@ -0,0 +1,18 @@
+<%
+ // Use a custom header to pass back the session id
+ response.setHeader("X-TestJSessionID", session.getId());
+
+ int count = 1;
+ Integer attr = (Integer) session.getAttribute("Count");
+ if (attr != null)
+ {
+ count = attr.intValue();
+ count++;
+ }
+ session.setAttribute("Count", new Integer(count));
+ // Use a custom header to pass back the count
+ response.setHeader("X-TestRequestCount", Integer.toString(count));
+
+ // Last, encode a url to ensure that is working
+%>
+<%= response.encodeURL("accessSession.jsp") %>
\ No newline at end of file
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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