You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2010/11/22 11:30:06 UTC
svn commit: r1037661 -
/tomcat/trunk/webapps/manager/WEB-INF/jsp/sessionDetail.jsp
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