Changeset 196

Show
Ignore:
Timestamp:
02/24/06 11:04:51
Author:
johnsa
Message:

added stats support to public client

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl

    r154 r196  
    5959  <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/> 
    6060  <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/> 
     61  <xsl:variable name="stats" select="/bedework/urlPrefixes/stats"/> 
    6162 
    6263  <!-- Other generally useful global variables --> 
     
    106107            <!-- show an event --> 
    107108            <xsl:apply-templates select="/bedework/event"/> 
     109          </xsl:when> 
     110          <xsl:when test="/bedework/page='showSysStats'"> 
     111            <!-- show system stats --> 
     112            <xsl:apply-templates select="/bedework/sysStats"/> 
    108113          </xsl:when> 
    109114          <xsl:when test="/bedework/page='calendars'"> 
     
    10111016  </xsl:template> 
    10121017 
     1018  <!--+++++++++++++++ System Stats ++++++++++++++++++++--> 
     1019 
     1020  <xsl:template match="sysStats" mode="showSysStats"> 
     1021    <h2>System Statistics</h2> 
     1022 
     1023    <p> 
     1024      Stats collection: 
     1025    </p> 
     1026    <ul> 
     1027      <li> 
     1028        <a href="{$stats}&amp;enable=yes">enable</a> | 
     1029        <a href="{$stats}&amp;disable=yes">disable</a> 
     1030      </li> 
     1031      <li><a href="{$stats}&amp;fetch=yes">fetch statistics</a></li> 
     1032      <li><a href="{$stats}&amp;dump=yes">dump stats to log</a></li> 
     1033    </ul> 
     1034    <table id="statsTable" cellpadding="0"> 
     1035      <xsl:for-each select="*"> 
     1036        <xsl:choose> 
     1037          <xsl:when test="name(.) = 'header'"> 
     1038            <tr> 
     1039              <th colspan="2"> 
     1040                <xsl:value-of select="."/> 
     1041              </th> 
     1042            </tr> 
     1043          </xsl:when> 
     1044          <xsl:otherwise> 
     1045            <tr> 
     1046              <td class="label"> 
     1047                <xsl:value-of select="label"/> 
     1048              </td> 
     1049              <td class="value"> 
     1050                <xsl:value-of select="value"/> 
     1051              </td> 
     1052            </tr> 
     1053          </xsl:otherwise> 
     1054        </xsl:choose> 
     1055      </xsl:for-each> 
     1056    </table> 
     1057  </xsl:template> 
     1058 
    10131059  <!--==== FOOTER ====--> 
    10141060 
  • trunk/calendar3/webadmin/war/docs/system/showSysStats.jsp

    r191 r196  
    11<%@ taglib uri='struts-bean' prefix='bean' %> 
    22<%@ taglib uri='struts-logic' prefix='logic' %> 
     3<%@ taglib uri='struts-genurl' prefix='genurl' %> 
    34<%@ taglib uri='struts-html' prefix='html' %> 
    4 <%@ taglib uri='struts-genurl' prefix='genurl' %> 
    55<html:xhtml/> 
    66 
  • trunk/calendar3/webclient/war/WEB-INF/struts-config.xml

    r176 r196  
    308308    </action> 
    309309 
     310    <action    path="/manageLocations" 
     311               type="org.bedework.webclient.BwAction" 
     312               name="calForm" 
     313               scope="session" 
     314               validate="false"> 
     315      <forward name="success" path="/showManageLocations.rdo" redirect="true" /> 
     316    </action> 
     317 
     318    <action    path="/addLocation" 
     319               type="org.bedework.webclient.BwAddLocationAction" 
     320               name="calForm" 
     321               scope="session" 
     322               validate="false"> 
     323      <forward name="success" path="/showManageLocations.rdo" redirect="true" /> 
     324    </action> 
     325 
     326    <action    path="/editLoc" 
     327               type="org.bedework.webclient.BwEditLocationAction" 
     328               name="calForm" 
     329               scope="session" 
     330               validate="false"> 
     331      <forward name="edit" path="/showEditLocation.rdo" redirect="true" /> 
     332      <forward name="success" path="/showManageLocations.rdo" redirect="true" /> 
     333    </action> 
     334 
     335    <action    path="/delLocation" 
     336               type="org.bedework.webclient.BwDelLocationAction" 
     337               name="calForm" 
     338               scope="session" 
     339               validate="false"> 
     340      <forward name="referenced" path="/showManageLocations.rdo" redirect="true" /> 
     341      <forward name="success" path="/showManageLocations.rdo" redirect="true" /> 
     342    </action> 
     343 
     344    <!-- ....................... system stats .......................... --> 
     345 
     346    <action    path="/showStats" 
     347               type="org.bedework.webclient.BwRenderAction" 
     348               name="calForm" 
     349               scope="session" 
     350               validate="false"> 
     351      <forward name="success" path="/docs/showSysStats.jsp" /> 
     352    </action> 
     353 
    310354    <action    path="/stats" 
    311355               type="org.bedework.webcommon.misc.StatisticsAction" 
     
    313357               scope="session" 
    314358               validate="false"> 
    315     </action> 
    316  
    317     <action    path="/manageLocations" 
    318                type="org.bedework.webclient.BwAction" 
    319                name="calForm" 
    320                scope="session" 
    321                validate="false"> 
    322       <forward name="success" path="/showManageLocations.rdo" redirect="true" /> 
    323     </action> 
    324  
    325     <action    path="/addLocation" 
    326                type="org.bedework.webclient.BwAddLocationAction" 
    327                name="calForm" 
    328                scope="session" 
    329                validate="false"> 
    330       <forward name="success" path="/showManageLocations.rdo" redirect="true" /> 
    331     </action> 
    332  
    333     <action    path="/editLoc" 
    334                type="org.bedework.webclient.BwEditLocationAction" 
    335                name="calForm" 
    336                scope="session" 
    337                validate="false"> 
    338       <forward name="edit" path="/showEditLocation.rdo" redirect="true" /> 
    339       <forward name="success" path="/showManageLocations.rdo" redirect="true" /> 
    340     </action> 
    341  
    342     <action    path="/delLocation" 
    343                type="org.bedework.webclient.BwDelLocationAction" 
    344                name="calForm" 
    345                scope="session" 
    346                validate="false"> 
    347       <forward name="referenced" path="/showManageLocations.rdo" redirect="true" /> 
    348       <forward name="success" path="/showManageLocations.rdo" redirect="true" /> 
     359      <forward name="continue"  path="/showStats.rdo" redirect="true" /> 
     360      <forward name="success"  path="/showStats.rdo" redirect="true" /> 
    349361    </action> 
    350362 
  • trunk/calendar3/webclient/war/docs/header.jsp

    r131 r196  
    142142    <addEventRef><genurl:rewrite action="addEventRef.do"/></addEventRef> 
    143143    <upload><genurl:rewrite action="upload.do"/></upload> 
     144    <stats><genurl:rewrite action="stats.do?be=d"/></stats> 
    144145  </urlPrefixes><%-- 
    145146        actionUrlPrefixes are used to generate appropriately encoded urls for