tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1037661 - /tomcat/trunk/webapps/manager/WEB-INF/jsp/sessionDetail.jsp
Date Mon, 22 Nov 2010 10:30:06 GMT
Author: markt
Date: Mon Nov 22 10:30:05 2010
New Revision: 1037661

URL: http://svn.apache.org/viewvc?rev=1037661&view=rev
Log:
Fix primary sessions not always treated as such by Manager app.

Modified:
    tomcat/trunk/webapps/manager/WEB-INF/jsp/sessionDetail.jsp

Modified: tomcat/trunk/webapps/manager/WEB-INF/jsp/sessionDetail.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/manager/WEB-INF/jsp/sessionDetail.jsp?rev=1037661&r1=1037660&r2=1037661&view=diff
==============================================================================
--- tomcat/trunk/webapps/manager/WEB-INF/jsp/sessionDetail.jsp (original)
+++ tomcat/trunk/webapps/manager/WEB-INF/jsp/sessionDetail.jsp Mon Nov 22 10:30:05 2010
@@ -95,7 +95,13 @@
   <div>
     <input type="hidden" name="sessionId" value="<%= currentSessionId %>" />
     <input type="hidden" name="action" value="sessionDetail" />
-    <input type="submit" value="Refresh" />
+    <%
+    if ("Primary".equals(request.getParameter("sessionType"))) {
+    %>
+      <input type="hidden" name="sessionType" value="Primary" />
+    <%
+    }
+    %>    <input type="submit" value="Refresh" />
   </div>
 </form>
 
@@ -138,9 +144,10 @@
                         <input type="hidden" name="sessionId" value="<%= currentSessionId
%>" />
                         <input type="hidden" name="attributeName" value="<%= attributeName
%>" />
                         <%
-                          if ("Primary".equals(request.getAttribute("sessionType"))) {
+                          if ("Primary".equals(request.getParameter("sessionType"))) {
                         %>
                           <input type="submit" value="Remove" />
+                          <input type="hidden" name="sessionType" value="Primary" />
                         <%
                           } else {
                             out.print("Primary sessions only");



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


Mime
View raw message