Changeset 447

Show
Ignore:
Timestamp:
05/04/06 13:23:01
Author:
johnsa
Message:

Overhaul of struts-config to add documentation and to make the file easier to read.

Addition of basic user preferences form. More to come on this.

Files:

Legend:

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

    r444 r447  
    7878  <xsl:variable name="subscriptions-initAdd" select="/bedework/urlPrefixes/subscriptions/initAdd/a/@href"/> 
    7979  <xsl:variable name="subscriptions-subscribe" select="/bedework/urlPrefixes/subscriptions/subscribe/a/@href"/> 
     80  <!-- preferences --> 
     81  <xsl:variable name="prefs-fetchForUpdate" select="/bedework/urlPrefixes/prefs/fetchForUpdate/a/@href"/> 
     82  <xsl:variable name="prefs-update" select="/bedework/urlPrefixes/prefs/update/a/@href"/> 
    8083 
    8184  <!-- URL of the web application - includes web context 
     
    173176                      <xsl:apply-templates select="/bedework/freebusy"/> 
    174177                    </xsl:when> 
     178                    <xsl:when test="/bedework/page='modPrefs'"> 
     179                      <!-- show an arbitrary page --> 
     180                      <xsl:apply-templates select="/bedework/prefs"/> 
     181                    </xsl:when> 
    175182                    <xsl:when test="/bedework/page='other'"> 
    176183                      <!-- show an arbitrary page --> 
     
    351358    <ul id="sideBarMenu"> 
    352359      <li><a href="{$manageLocations}">Manage Locations</a></li> 
    353       <li>Preferences</li> 
     360      <li><a href="{$prefs-fetchForUpdate}">Preferences</a></li> 
    354361    </ul> 
    355362  </xsl:template> 
     
    33733380  </xsl:template> 
    33743381 
     3382  <!--==== PREFERENCES ====--> 
     3383  <xsl:template match="prefs"> 
     3384    <h2>Manage Preferences</h2> 
     3385    <form name="userPrefsForm" method="post" action="{$prefs-update}"> 
     3386      <table class="common"> 
     3387        <tr> 
     3388          <td class="fieldname"> 
     3389            User: 
     3390          </td> 
     3391          <td> 
     3392            <xsl:value-of select="/bedework/prefs/user"/> 
     3393            <xsl:variable name="user" select="/bedework/prefs/user"/> 
     3394            <input type="hidden" name="user" value="{$user}"/> 
     3395          </td> 
     3396        </tr> 
     3397        <tr> 
     3398          <td class="fieldname"> 
     3399            Email: 
     3400          </td> 
     3401          <td> 
     3402            <xsl:variable name="email" select="/bedework/prefs/email"/> 
     3403            <input type="text" name="email" value="{$email}" size="40"/> 
     3404          </td> 
     3405        </tr> 
     3406        <tr> 
     3407          <td class="fieldname"> 
     3408            Preferred view: 
     3409          </td> 
     3410          <td> 
     3411            <xsl:variable name="preferredView" select="/bedework/prefs/preferredView"/> 
     3412            <input type="text" name="preferredView" value="{$preferredView}" size="40"/> 
     3413          </td> 
     3414        </tr> 
     3415        <tr> 
     3416          <td class="fieldname"> 
     3417            Preferred view period: 
     3418          </td> 
     3419          <td> 
     3420            <xsl:variable name="preferredViewPeriod" select="/bedework/prefs/preferredViewPeriod"/> 
     3421            <select name="viewPeriod"> 
     3422              <!-- picking the selected item could be done with javascript. for 
     3423                   now, this will do.  --> 
     3424              <xsl:choose> 
     3425                <xsl:when test="$preferredViewPeriod = 'dayView'"> 
     3426                  <option value="dayView" selected="selected">day</option> 
     3427                </xsl:when> 
     3428                <xsl:otherwise> 
     3429                  <option value="dayView">day</option> 
     3430                </xsl:otherwise> 
     3431              </xsl:choose> 
     3432              <xsl:choose> 
     3433                <xsl:when test="$preferredViewPeriod = 'todayView'"> 
     3434                  <option value="todayView" selected="selected">today</option> 
     3435                </xsl:when> 
     3436                <xsl:otherwise> 
     3437                  <option value="todayView">today</option> 
     3438                </xsl:otherwise> 
     3439              </xsl:choose> 
     3440              <xsl:choose> 
     3441                <xsl:when test="$preferredViewPeriod = 'weekView'"> 
     3442                  <option value="weekView" selected="selected">week</option> 
     3443                </xsl:when> 
     3444                <xsl:otherwise> 
     3445                  <option value="weekView">week</option> 
     3446                </xsl:otherwise> 
     3447              </xsl:choose> 
     3448              <xsl:choose> 
     3449                <xsl:when test="$preferredViewPeriod = 'monthView'"> 
     3450                  <option value="monthView" selected="selected">month</option> 
     3451                </xsl:when> 
     3452                <xsl:otherwise> 
     3453                  <option value="monthView">month</option> 
     3454                </xsl:otherwise> 
     3455              </xsl:choose> 
     3456              <xsl:choose> 
     3457                <xsl:when test="$preferredViewPeriod = 'yearView'"> 
     3458                  <option value="yearView" selected="selected">year</option> 
     3459                </xsl:when> 
     3460                <xsl:otherwise> 
     3461                  <option value="yearView">year</option> 
     3462                </xsl:otherwise> 
     3463              </xsl:choose> 
     3464            </select> 
     3465          </td> 
     3466        </tr> 
     3467        <tr> 
     3468          <td class="fieldname"> 
     3469            Skin name: 
     3470          </td> 
     3471          <td> 
     3472            <xsl:variable name="skinName" select="/bedework/prefs/skinName"/> 
     3473            <input type="text" name="skin" value="{$skinName}" size="40"/> 
     3474          </td> 
     3475        </tr> 
     3476        <tr> 
     3477          <td class="fieldname"> 
     3478            Skin style: 
     3479          </td> 
     3480          <td> 
     3481            <xsl:variable name="skinStyle" select="/bedework/prefs/skinStyle"/> 
     3482            <input type="text" name="skinStyle" value="{$skinStyle}" size="40"/> 
     3483          </td> 
     3484        </tr> 
     3485      </table> 
     3486      <br /> 
     3487 
     3488      <input type="submit" name="modPrefs" value="Update"/> 
     3489      <input type="reset" value="Reset"/> 
     3490      <input type="submit" name="cancelled" value="Cancel"/> 
     3491    </form> 
     3492  </xsl:template> 
     3493 
     3494 
    33753495  <!--==== SIDE CALENDAR MENU ====--> 
    33763496  <xsl:template match="calendar" mode="sideList"> 
  • trunk/calendar3/webclient/war/WEB-INF/struts-config.xml

    r441 r447  
    11<?xml version="1.0" encoding="ISO-8859-1" ?> 
    2  
    32<!DOCTYPE struts-config PUBLIC 
    43          "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" 
     
    65 
    76  <!-- ==================================================================== 
    8      This is a the Struts configuration for the uwcal client. 
     7     This is a the Struts configuration for the Bedework web client. 
    98     ====================================================================== --> 
     9 
     10   <!-- 
     11     The action-mappings below are divided into "normal" actions (suffixed 
     12     with ".do") and render actions (suffixed with ".rdo").  All normal actions 
     13     (which are typically used to change the application's state) redirect 
     14     to a render action that returns a jsp page for display.  Render actions 
     15     do not change state. 
     16 
     17     The action-mappings are grouped together by function; all render 
     18     actions use the type="org.bedework.webclient.BwRenderAction" class. 
     19     The division between normal and render actions is required, among other 
     20     things, to allow Bedework to run in a portal. All render actions 
     21     are marked with the comment "renderUrl" so that they may be 
     22     mechanically picked out of this file and built up for portal configuration. 
     23     By convention, most render actions are named "show[Name]". 
     24 
     25     Note that nearly all global forwards map to a render action that produce 
     26     a jsp page for display. 
     27 
     28     All action URLs used in any client are produced in header.jsp to take 
     29     advantage of appropriate encoding or extensions required by the container 
     30     and/or portal.  These "urlPrefixes" are then pulled into the xslt 
     31     for use in constructing links into the application.  Look at the top of 
     32     header.jsp and the default.xsl files within any client for examples.  Use 
     33     the url-prefix variables in the xslt rather than calling these paths directly. 
     34     --> 
    1035 
    1136<struts-config> 
     
    2853    <forward name="showMsgErr" path="/showMsgErr.rdo"/> 
    2954 
    30     <!-- Forward for a new session from some bookmarked link? --> 
     55    <!-- Forward for a new session from some bookmarked link; used by 
     56         org.bedework.webclient.BwRenderAction when a refresh is needed --> 
    3157    <forward name="gotomain" path="/docs/main.jsp" /> 
    3258 
     59    <!-- set up state and get going. --> 
    3360    <forward name="initial" path="/setup.do"/> 
    3461 
     62    <!-- global redirects used by many actions --> 
    3563    <forward name="doNothing" path="/showMain.rdo" redirect="true" /> 
    3664    <forward name="error" path="/showMain.rdo" redirect="true" /> 
     
    4270  <action-mappings> 
    4371 
    44     <!-- =============================================================== 
    45          Render actions - these should be referenced by the rdo suffix to 
    46          invoke the xslt filter 
    47          =============================================================== --> 
    48  
    49          <!-- 
    50     <action    path="/showMain" 
    51                name="calForm" 
    52                scope="session" 
    53                validate="false" 
    54                include="/docs/main.jsp"/> 
    55 --> 
    56     <action    path="/showMain" 
    57                type="org.bedework.webclient.BwRenderAction" 
    58                name="calForm" 
    59                scope="session" 
    60                validate="false"> 
    61       <forward name="success" path="/docs/main.jsp"/> 
    62     </action> 
    63  
    64     <action    path="/showPublicCals" 
    65                type="org.bedework.webclient.BwRenderAction" 
    66                name="calForm" 
    67                scope="session" 
    68                validate="false"> 
    69       <forward name="success" path="/docs/calendar/calendarList.jsp" /> 
    70     </action> 
    71  
    72     <action    path="/showCals" 
    73                type="org.bedework.webclient.BwRenderAction" 
    74                name="calForm" 
    75                scope="session" 
    76                validate="false"> 
    77       <forward name="success" path="/docs/calendar/emitCalendars.jsp" /> 
    78     </action> 
    79  
    80     <action    path="/showEventMore" 
    81                type="org.bedework.webclient.BwRenderAction" 
    82                name="calForm" 
    83                scope="session" 
    84                validate="false"> 
    85       <forward name="success" path="/docs/event/eventMore.jsp" /> 
    86     </action> 
    87  
    88    <action    path="/showAddEvent" 
    89                type="org.bedework.webclient.BwRenderAction" 
    90                name="calForm" 
    91                scope="session" 
    92                validate="false"> 
    93       <forward name="success" path="/docs/event/addEvent.jsp" /> 
    94     </action> 
    95  
    96     <action    path="/showEditEvent" 
    97                type="org.bedework.webclient.BwRenderAction" 
    98                name="calForm" 
    99                scope="session" 
    100                validate="false"> 
    101       <forward name="success" path="/docs/event/editEvent.jsp" /> 
    102     </action> 
    103  
    104     <action    path="/event/showAddEventRef" 
    105                type="org.bedework.webclient.BwRenderAction" 
    106                name="calForm" 
    107                scope="session" 
    108                validate="false"> 
    109       <forward name="success" path="/docs/event/addEventRef.jsp" /> 
    110     </action> 
    111  
    112     <action    path="/event/showCalsForEvent" 
    113                type="org.bedework.webclient.BwRenderAction" 
    114                name="calForm" 
    115                scope="session" 
    116                validate="false"> 
    117       <forward name="success" path="/docs/event/selectCalForEvent.jsp"/> 
    118     </action> 
    119  
    120     <action    path="/showExportData" 
    121                type="org.bedework.webclient.BwRenderAction" 
    122                name="calForm" 
    123                scope="session" 
    124                validate="false"> 
    125       <forward name="success" path="/docs/exportData.jsp" /> 
    126     </action> 
    127  
    128     <action    path="/showManageLocations" 
    129                type="org.bedework.webclient.BwRenderAction" 
    130                name="calForm" 
    131                scope="session" 
    132                validate="false"> 
    133       <forward name="success" path="/docs/location/manageLocations.jsp" /> 
    134     </action> 
    135  
    136     <action    path="/showEditLocation" 
    137                type="org.bedework.webclient.BwRenderAction" 
    138                name="calForm" 
    139                scope="session" 
    140                validate="false"> 
    141       <forward name="success" path="/docs/location/editLocation.jsp" /> 
    142     </action> 
    143  
    144     <action    path="/showEmailOptions" 
    145                type="org.bedework.webclient.BwRenderAction" 
    146                name="calForm" 
    147                scope="session" 
    148                validate="false"> 
    149       <forward name="success" path="/docs/emailOptions.jsp" /> 
    150     </action> 
    151  
    152     <action    path="/showAlarmOptions" 
    153                type="org.bedework.webclient.BwRenderAction" 
    154                name="calForm" 
    155                scope="session" 
    156                validate="false"> 
    157       <forward name="success" path="/docs/alarmOptions.jsp" /> 
    158     </action> 
    159  
    160     <action    path="/initUpload" 
    161                type="org.bedework.webclient.BwRenderAction" 
    162                name="calForm" 
    163                scope="session" 
    164                validate="false"> 
    165       <forward name="success" path="/docs/upload.jsp" /> 
    166     </action> 
    167  
     72  <!-- =============================================================== 
     73                      Fundamental Actions 
     74   =============================================================== --> 
     75 
     76    <!-- ........... PUBLIC and PERSONAL clients ...... --> 
     77 
     78    <!-- renderUrl --> 
    16879    <action    path="/initialise" 
    16980               type="org.bedework.webclient.BwRenderAction" 
     
    17586    </action> 
    17687 
    177     <action    path="/showMsgErr" 
    178                type="org.bedework.webclient.BwRenderAction" 
    179                name="calForm" 
    180                scope="session" 
    181                validate="false"> 
    182       <forward name="success" path="/docs/showMsgErr.jsp"/> 
    183     </action> 
    184  
    185     <!-- =============================================================== 
    186          These actions do not render - these should be referenced by the do 
    187          suffix and should redirect to a render action. 
    188          =============================================================== --> 
     88    <!-- renderUrl --> 
     89    <action    path="/showMain" 
     90               type="org.bedework.webclient.BwRenderAction" 
     91               name="calForm" 
     92               scope="session" 
     93               validate="false"> 
     94      <forward name="success" path="/docs/main.jsp"/> 
     95    </action> 
    18996 
    19097    <action    path="/setup" 
     
    212119    </action> 
    213120 
     121    <!-- renderUrl --> 
     122    <action    path="/showMsgErr" 
     123               type="org.bedework.webclient.BwRenderAction" 
     124               name="calForm" 
     125               scope="session" 
     126               validate="false"> 
     127      <forward name="success" path="/docs/showMsgErr.jsp"/> 
     128    </action> 
     129 
     130    <!-- renderUrl --> 
     131    <action    path="/showPage" 
     132               type="org.bedework.webclient.BwAction" 
     133               name="calForm" 
     134               scope="session" 
     135               validate="false"> 
     136      <forward name="success" path="/docs/showPage.jsp" /> 
     137    </action> 
     138 
     139  <!-- =============================================================== 
     140                        Events 
     141       =============================================================== --> 
     142 
     143    <!-- ........... PUBLIC and PERSONAL clients ...... --> 
     144 
     145    <!-- renderUrl --> 
     146    <action    path="/showEventMore" 
     147               type="org.bedework.webclient.BwRenderAction" 
     148               name="calForm" 
     149               scope="session" 
     150               validate="false"> 
     151      <forward name="success" path="/docs/event/eventMore.jsp" /> 
     152    </action> 
     153 
    214154    <action    path="/eventView" 
    215155               type="org.bedework.webclient.BwEventAction" 
     
    218158               validate="false"> 
    219159      <forward name="success" path="/showEventMore.rdo" redirect="true" /> 
     160    </action> 
     161 
     162    <!-- ........... PERSONAL client only ...... --> 
     163 
     164    <!-- === Adding Events === --> 
     165    <!-- renderUrl --> 
     166    <action    path="/showAddEvent" 
     167               type="org.bedework.webclient.BwRenderAction" 
     168               name="calForm" 
     169               scope="session" 
     170               validate="false"> 
     171      <forward name="success" path="/docs/event/addEvent.jsp" /> 
     172    </action> 
     173 
     174    <!-- The following 2 actions are used for adding events from an "add event" page 
     175         (a la Demo, Rensselaer); on error, we return to the 
     176         addEvent.jsp page. --> 
     177    <action    path="/initEvent" 
     178               type="org.bedework.webclient.BwInitEventAction" 
     179               name="calForm" 
     180               scope="session" 
     181               validate="false"> 
     182      <forward name="success" path="/showAddEvent.rdo" redirect="true" /> 
     183    </action> 
     184 
     185    <action    path="/addEventUsingPage" 
     186               type="org.bedework.webclient.BwAddEventAction" 
     187               name="calForm" 
     188               scope="session" 
     189               validate="false"> 
     190      <forward name="error" path="/showAddEvent.rdo" redirect="true" /> 
     191      <forward name="doNothing" path="/showAddEvent.rdo" redirect="true" /> 
    220192    </action> 
    221193 
     
    230202    </action> 
    231203 
    232     <!-- The following 2 actions are used for adding events from an "add event" page 
    233          (a la Demo, Rensselaer); on error, we return to the 
    234          addEvent.jsp page. --> 
    235     <action    path="/initEvent" 
    236                type="org.bedework.webclient.BwInitEventAction" 
    237                name="calForm" 
    238                scope="session" 
    239                validate="false"> 
    240       <forward name="success" path="/showAddEvent.rdo" redirect="true" /> 
    241     </action> 
    242  
    243     <action    path="/addEventUsingPage" 
    244                type="org.bedework.webclient.BwAddEventAction" 
    245                name="calForm" 
    246                scope="session" 
    247                validate="false"> 
    248       <forward name="error" path="/showAddEvent.rdo" redirect="true" /> 
    249       <forward name="doNothing" path="/showAddEvent.rdo" redirect="true" /> 
     204    <!-- === Modifying Events === --> 
     205    <!-- renderUrl --> 
     206    <action    path="/showEditEvent" 
     207               type="org.bedework.webclient.BwRenderAction" 
     208               name="calForm" 
     209               scope="session" 
     210               validate="false"> 
     211      <forward name="success" path="/docs/event/editEvent.jsp" /> 
    250212    </action> 
    251213 
     
    256218               validate="false"> 
    257219      <forward name="edit" path="/showEditEvent.rdo" redirect="true" /> 
    258     </action> 
    259  
    260     <action    path="/delEvent" 
    261                type="org.bedework.webclient.BwDelEventAction" 
    262                name="calForm" 
    263                scope="session" 
    264                validate="false"> 
    265     </action> 
    266  
    267     <action    path="/addEventRef" 
    268                type="org.bedework.webclient.BwEventAction" 
    269                name="calForm" 
    270                scope="session" 
    271                validate="false"> 
    272       <forward name="success" path="/event/showAddEventRef.rdo" redirect="true" /> 
    273     </action> 
    274  
    275     <action    path="/event/addEventRefComplete" 
    276                type="org.bedework.webclient.BwAddEventRefAction" 
    277                name="calForm" 
    278                scope="session" 
    279                validate="false"> 
    280       <forward name="duplicate" path="/showMain.rdo" redirect="true" /> 
    281     </action> 
    282  
    283     <action    path="/event/selectCalForEvent" 
    284                type="org.bedework.webclient.BwAction" 
    285                name="calForm" 
    286                scope="session" 
    287                validate="false"> 
    288       <forward name="success" path="/event/showCalsForEvent.rdo" redirect="true" /> 
    289220    </action> 
    290221 
     
    300231    </action> 
    301232 
     233    <!-- === Selecting calendars while adding and modifying Events === --> 
     234    <!-- renderUrl --> 
     235    <action    path="/event/showCalsForEvent" 
     236               type="org.bedework.webclient.BwRenderAction" 
     237               name="calForm" 
     238               scope="session" 
     239               validate="false"> 
     240      <forward name="success" path="/docs/event/selectCalForEvent.jsp"/> 
     241    </action> 
     242 
     243    <action    path="/event/selectCalForEvent" 
     244               type="org.bedework.webclient.BwAction" 
     245               name="calForm" 
     246               scope="session" 
     247               validate="false"> 
     248      <forward name="success" path="/event/showCalsForEvent.rdo" redirect="true" /> 
     249    </action> 
     250 
     251    <!-- === Adding Event References === --> 
     252    <!-- renderUrl --> 
     253    <action    path="/event/showAddEventRef" 
     254               type="org.bedework.webclient.BwRenderAction" 
     255               name="calForm" 
     256               scope="session" 
     257               validate="false"> 
     258      <forward name="success" path="/docs/event/addEventRef.jsp" /> 
     259    </action> 
     260 
     261    <action    path="/addEventRef" 
     262               type="org.bedework.webclient.BwEventAction" 
     263               name="calForm" 
     264               scope="session" 
     265               validate="false"> 
     266      <forward name="success" path="/event/showAddEventRef.rdo" redirect="true" /> 
     267    </action> 
     268 
     269    <action    path="/event/addEventRefComplete" 
     270               type="org.bedework.webclient.BwAddEventRefAction" 
     271               name="calForm" 
     272               scope="session" 
     273               validate="false"> 
     274      <forward name="duplicate" path="/showMain.rdo" redirect="true" /> 
     275    </action> 
     276 
     277    <!-- === Deleting Events === --> 
     278    <action    path="/delEvent" 
     279               type="org.bedework.webclient.BwDelEventAction" 
     280               name="calForm" 
     281               scope="session" 
     282               validate="false"> 
     283    </action> 
     284 
     285  <!-- =============================================================== 
     286                    Export (download) and Import 
     287       =============================================================== --> 
     288 
     289    <!-- ........... PUBLIC and PERSONAL clients ...... --> 
     290 
     291    <!-- renderUrl --> 
     292    <action    path="/showExportData" 
     293               type="org.bedework.webclient.BwRenderAction" 
     294               name="calForm" 
     295               scope="session" 
     296               validate="false"> 
     297      <forward name="success" path="/docs/exportData.jsp" /> 
     298    </action> 
     299 
     300    <action    path="/export" 
     301               type="org.bedework.webcommon.misc.ExportAction" 
     302               name="calForm" 
     303               scope="session" 
     304               validate="false"> 
     305      <forward name="success" path="/showExportData.rdo" redirect="true" /> 
     306    </action> 
     307 
     308    <!-- ........... PERSONAL client only ...... --> 
     309 
     310    <!-- renderUrl --> 
     311    <action    path="/initUpload" 
     312               type="org.bedework.webclient.BwRenderAction" 
     313               name="calForm" 
     314               scope="session" 
     315               validate="false"> 
     316      <forward name="success" path="/docs/upload.jsp" /> 
     317    </action> 
     318 
    302319    <action    path="/upload" 
    303320               type="org.bedework.webcommon.misc.UploadAction" 
     
    308325    </action> 
    309326 
    310     <action    path="/export" 
    311                type="org.bedework.webcommon.misc.ExportAction" 
    312                name="calForm" 
    313                scope="session" 
    314                validate="false"> 
    315       <forward name="success" path="/showExportData.rdo" redirect="true" /> 
    316     </action> 
    317  
    318     <action    path="/showPage" 
    319                type="org.bedework.webclient.BwAction" 
    320                name="calForm" 
    321                scope="session" 
    322                validate="false"> 
    323       <forward name="success" path="/docs/showPage.jsp" /> 
     327  <!-- =============================================================== 
     328                        Locations 
     329       =============================================================== --> 
     330 
     331    <!-- ........... PERSONAL client only ...... --> 
     332 
     333    <!-- renderUrl --> 
     334    <action    path="/showManageLocations" 
     335               type="org.bedework.webclient.BwRenderAction" 
     336               name="calForm" 
     337               scope="session" 
     338               validate="false"> 
     339      <forward name="success" path="/docs/location/manageLocations.jsp" /> 
     340    </action> 
     341 
     342    <!-- renderUrl --> 
     343    <action    path="/showEditLocation" 
     344               type="org.bedework.webclient.BwRenderAction" 
     345               name="calForm" 
     346               scope="session" 
     347               validate="false"> 
     348      <forward name="success" path="/docs/location/editLocation.jsp" /> 
    324349    </action> 
    325350 
     
    362387         =============================================================== --> 
    363388 
     389    <!-- ........... PERSONAL client only ...... --> 
     390 
     391    <!-- renderUrl --> 
    364392    <action    path="/freeBusy/showFreeBusy" 
    365393               type="org.bedework.webclient.BwRenderAction" 
     
    392420 
    393421    <!-- =============================================================== 
    394                          Calendar Action
     422                         Calendar
    395423         =============================================================== --> 
    396424 
    397     <!-- ........... public and personal for viewing and selecting ...... --> 
     425    <!-- ........... PUBLIC and PERSONAL clients ...... --> 
     426 
     427    <!-- renderUrl --> 
     428    <action    path="/showPublicCals" 
     429               type="org.bedework.webclient.BwRenderAction" 
     430               name="calForm" 
     431               scope="session" 
     432               validate="false"> 
     433      <forward name="success" path="/docs/calendar/calendarList.jsp" /> 
     434    </action> 
    398435 
    399436    <action    path="/fetchPublicCalendars" 
     
    405442    </action> 
    406443 
     444    <!-- renderUrl --> 
     445    <action    path="/showCals" 
     446               type="org.bedework.webclient.BwRenderAction" 
     447               name="calForm" 
     448               scope="session" 
     449               validate="false"> 
     450      <forward name="success" path="/docs/calendar/emitCalendars.jsp" /> 
     451    </action> 
     452 
    407453    <action    path="/fetchCalendars" 
    408454               type="org.bedework.webclient.BwAction" 
     
    413459    </action> 
    414460 
    415     <!-- ........... personal only for modifying calendars .............. --> 
    416  
     461    <!-- ........... PERSONAL client only  .............. --> 
     462 
     463    <!-- renderUrl --> 
    417464    <action    path="/calendar/showCalendar" 
    418465               type="org.bedework.webclient.BwRenderAction" 
     
    423470    </action> 
    424471 
    425     <action    path="/calendar/showReferenced" 
    426                type="org.bedework.webclient.BwRenderAction" 
    427                name="calForm" 
    428                scope="session" 
    429                validate="false"> 
    430       <forward name="success" path="/docs/calendar/referenced.jsp"/> 
    431     </action> 
    432  
     472    <action    path="/calendar/fetchForDisplay" 
     473               type="org.bedework.webcommon.calendars.FetchCalendarAction" 
     474               name="calForm" 
     475               scope="session" 
     476               validate="false"> 
     477      <forward name="notFound" path="/admin/showMain.rdo" redirect="true" /> 
     478      <forward name="continue" path="/calendar/showCalendar.rdo" redirect="true" /> 
     479    </action> 
     480 
     481    <!-- === Adding and Modifying Calendars === --> 
     482    <!-- renderUrl --> 
    433483    <action    path="/calendar/showModForm" 
    434484               type="org.bedework.webclient.BwRenderAction" 
     
    439489    </action> 
    440490 
    441     <action    path="/calendar/showDescriptionList" 
    442                type="org.bedework.webclient.BwRenderAction" 
    443                name="calForm" 
    444                scope="session" 
    445                validate="false"> 
    446       <forward name="success" path="/docs/calendar/calendarDescriptions.jsp"/> 
    447     </action> 
    448  
     491    <action    path="/calendar/initAdd" 
     492               type="org.bedework.webcommon.calendars.InitAddCalendarAction" 
     493               name="calForm" 
     494               scope="session" 
     495               validate="false"> 
     496      <forward name="continue" path="/calendar/showModForm.rdo" redirect="true" /> 
     497    </action> 
     498 
     499    <!-- renderUrl --> 
    449500    <action    path="/calendar/showUpdateList" 
    450501               type="org.bedework.webclient.BwRenderAction" 
     
    455506    </action> 
    456507 
     508    <action    path="/calendar/fetchForUpdate" 
     509               type="org.bedework.webcommon.calendars.FetchCalendarAction" 
     510               name="calForm" 
     511               scope="session" 
     512               validate="false"> 
     513      <forward name="notFound" path="/admin/showUpdateList.rdo" redirect="true" /> 
     514      <forward name="continue" path="/calendar/showModForm.rdo" redirect="true" /> 
     515    </action> 
     516 
     517    <action    path="/calendar/update" 
     518               type="org.bedework.webcommon.calendars.UpdateCalendarAction" 
     519               name="calForm" 
     520               scope="session" 
     521               validate="false"> 
     522      <forward name="continue" path="/calendar/showUpdateList.rdo" redirect="true" /> 
     523      <forward name="cancelled" path="/calendar/showUpdateList.rdo" redirect="true" /> 
     524      <forward name="retry" path="/calendar/showModForm.rdo" redirect="true" /> 
     525      <forward name="delete" path="/calendar/showDeleteConfirm.rdo" redirect="true" /> 
     526    </action> 
     527 
     528    <action    path="/calendar/setAccess" 
     529               type="org.bedework.webcommon.access.AccessAction" 
     530               name="calForm" 
     531               scope="session" 
     532               validate="false"> 
     533      <forward name="success" path="/calendar/showModForm.rdo" redirect="true" /> 
     534      <forward name="error" path="/calendar/showModForm.rdo" redirect="true" /> 
     535      <forward name="notFound" path="/calendar/showModForm.rdo" redirect="true" /> 
     536      <forward name="doNothing" path="/calendar/showModForm.rdo" redirect="true" /> 
     537    </action> 
     538 
     539    <!-- === deleting calendars === --> 
     540    <!-- renderUrl --> 
    457541    <action    path="/calendar/showDeleteConfirm" 
    458542               type="org.bedework.webclient.BwRenderAction" 
     
    464548    </action> 
    465549 
    466     <action    path="/calendar/initAdd" 
    467                type="org.bedework.webcommon.calendars.InitAddCalendarAction" 
    468                name="calForm" 
    469                scope="session" 
    470                validate="false"> 
    471       <forward name="continue" path="/calendar/showModForm.rdo" redirect="true" /> 
     550    <!-- renderUrl --> 
     551    <action    path="/calendar/showReferenced" 
     552               type="org.bedework.webclient.BwRenderAction" 
     553               name="calForm" 
     554               scope="session" 
     555               validate="false"> 
     556      <forward name="success" path="/docs/calendar/referenced.jsp"/> 
    472557    </action> 
    473558 
     
    483568    </action> 
    484569 
    485     <action    path="/calendar/fetchForDisplay" 
    486                type="org.bedework.webcommon.calendars.FetchCalendarAction" 
    487                name="calForm" 
    488                scope="session" 
    489                validate="false"> 
    490       <forward name="notFound" path="/admin/showMain.rdo" redirect="true" /> 
    491       <forward name="continue" path="/calendar/showCalendar.rdo" redirect="true" /> 
    492     </action> 
    493  
    494     <action    path="/calendar/fetchForUpdate" 
    495                type="org.bedework.webcommon.calendars.FetchCalendarAction" 
    496                name="calForm" 
    497                scope="session" 
    498                validate="false"> 
    499       <forward name="notFound" path="/admin/showUpdateList.rdo" redirect="true" /> 
    500       <forward name="continue" path="/calendar/showModForm.rdo" redirect="true" /> 
    501     </action> 
    502  
    503     <action    path="/calendar/update" 
    504                type="org.bedework.webcommon.calendars.UpdateCalendarAction" 
    505                name="calForm" 
    506                scope="session" 
    507                validate="false"> 
    508       <forward name="continue" path="/calendar/showUpdateList.rdo" redirect="true" /> 
    509       <forward name="cancelled" path="/calendar/showUpdateList.rdo" redirect="true" /> 
    510       <forward name="retry" path="/calendar/showModForm.rdo" redirect="true" /> 
    511       <forward name="delete" path="/calendar/showDeleteConfirm.rdo" redirect="true" /> 
    512     </action> 
    513  
    514     <action    path="/calendar/setAccess" 
    515                type="org.bedework.webcommon.access.AccessAction" 
    516                name="calForm" 
    517                scope="session" 
    518                validate="false"> 
    519       <forward name="success" path="/calendar/showModForm.rdo" redirect="true" /> 
    520       <forward name="error" path="/calendar/showModForm.rdo" redirect="true" /> 
    521       <forward name="notFound" path="/calendar/showModForm.rdo" redirect="true" /> 
    522       <forward name="doNothing" path="/calendar/showModForm.rdo" redirect="true" /> 
    523     </action> 
    524     <!-- ....................... system stats .......................... --> 
    525  
    526     <action    path="/showStats" 
    527                type="org.bedework.webclient.BwRenderAction" 
    528                name="calForm" 
    529                scope="session" 
    530                validate="false"> 
    531       <forward name="success" path="/docs/showSysStats.jsp" /> 
    532     </action> 
    533  
    534     <action    path="/stats" 
    535                type="org.bedework.webcommon.misc.StatisticsAction" 
    536                name="calForm" 
    537                scope="session" 
    538                validate="false"> 
    539       <forward name="continue"  path="/showStats.rdo" redirect="true" /> 
    540       <forward name="success"  path="/showStats.rdo" redirect="true" /> 
    541     </action> 
    542  
    543     <!-- ....................... mailing events ........................ --> 
    544  
    545     <action    path="/initMailEvent" 
    546                type="org.bedework.webclient.BwEventAction" 
    547                name="calForm" 
    548                scope="session" 
    549                validate="false"> 
    550       <forward name="notFound" path="/showMain.rdo" redirect="true" /> 
    551       <forward name="success" path="/showEmailOptions.rdo" redirect="true" /> 
    552     </action> 
    553  
    554     <action    path="/mailEvent" 
    555                type="org.bedework.webclient.BwMailEventAction" 
    556                name="calForm" 
    557                scope="session" 
    558                validate="false"> 
    559       <forward name="noEvent" path="/showMain.rdo" redirect="true" /> 
    560       <forward name="retry" path="/showEmailOptions.rdo" redirect="true" /> 
    561       <forward name="success" path="/showMain.rdo" redirect="true" /> 
    562     </action> 
    563  
    564     <!-- ....................... event alarms .......................... --> 
    565  
    566     <action    path="/initEventAlarm" 
    567                type="org.bedework.webclient.BwEventAction" 
    568                name="calForm" 
    569                scope="session" 
    570                validate="false"> 
    571       <forward name="notFound" path="/showMain.rdo" redirect="true" /> 
    572       <forward name="success" path="/showAlarmOptions.rdo" redirect="true" /> 
    573     </action> 
    574  
    575     <action    path="/setAlarm" 
    576                type="org.bedework.webclient.BwSetAlarmAction" 
    577                name="calForm" 
    578                scope="session" 
    579                validate="false"> 
    580       <forward name="noEvent" path="/showMain.rdo" redirect="true" /> 
    581       <forward name="retry" path="/showAlarmOptions.rdo" redirect="true" /> 
    582       <forward name="success" path="/showMain.rdo" redirect="true" /> 
    583     </action> 
    584  
    585     <!-- ..................... subscriptions .......................... --> 
    586  
     570    <!-- === display a page of descriptions for public calendars (not currently used) === --> 
     571    <!-- renderUrl --> 
     572    <action    path="/calendar/showDescriptionList" 
     573               type="org.bedework.webclient.BwRenderAction" 
     574               name="calForm" 
     575               scope="session" 
     576               validate="false"> 
     577      <forward name="success" path="/docs/calendar/calendarDescriptions.jsp"/> 
     578    </action> 
     579 
     580    <!-- =============================================================== 
     581                       Subscriptions 
     582         =============================================================== --> 
     583 
     584     <!-- renderUrl --> 
    587585     <action    path="/subs/showSubs" 
    588586               type="org.bedework.webclient.BwRenderAction" 
     
    591589               validate="false"> 
    592590      <forward name="success" path="/docs/subs/subscriptions.jsp"/> 
    593     </action> 
    594  
    595     <action    path="/subs/showModForm" 
    596                type="org.bedework.webclient.BwRenderAction" 
    597                name="calForm" 
    598                scope="session" 
    599                validate="false"> 
    600       <forward name="success" path="/docs/subs/modSubscription.jsp"/> 
    601591    </action> 
    602592 
     
    609599    </action> 
    610600 
    611     <action    path="/subs/fetchForUpdate" 
    612                type="org.bedework.webcommon.subs.FetchSubscriptionAction
    613                name="calForm
    614                scope="session
    615                validate="false"> 
    616       <forward name="notFound" path="/admin/showMain.rdo" redirect="true" /
    617       <forward name="continue" path="/subs/showModForm.rdo" redirect="true" /> 
     601    <!-- renderUrl --> 
     602    <action    path="/subs/showModForm
     603               type="org.bedework.webclient.BwRenderAction
     604               name="calForm
     605               scope="session" 
     606               validate="false"
     607      <forward name="success" path="/docs/subs/modSubscription.jsp"/> 
    618608    </action> 
    619609 
     
    628618    </action> 
    629619 
     620    <action    path="/subs/fetchForUpdate" 
     621               type="org.bedework.webcommon.subs.FetchSubscriptionAction" 
     622               name="calForm" 
     623               scope="session" 
     624               validate="false"> 
     625      <forward name="notFound" path="/admin/showMain.rdo" redirect="true" /> 
     626      <forward name="continue" path="/subs/showModForm.rdo" redirect="true" /> 
     627    </action> 
    630628 
    631629    <action    path="/subs/subscribe" 
     
    648646    </action> 
    649647 
    650     <!-- ......................... views .............................. --> 
     648    <!-- =============================================================== 
     649                        Views 
     650         =============================================================== --> 
    651651 
    652652    <action    path="/addView" 
     
    663663               validate="false"> 
    664664    </action> 
     665 
     666    <!-- =============================================================== 
     667                     User Preferences (also see email and alarms) 
     668         =============================================================== --> 
     669 
     670    <!-- ........... PERSONAL client only ...... --> 
     671 
     672    <!-- renderUrl --> 
     673    <action    path="/prefs/showModForm" 
     674               type="org.bedework.webclient.BwRenderAction" 
     675               name="calForm" 
     676               scope="session" 
     677               validate="false"> 
     678      <forward name="success" path="/docs/prefs/modPrefs.jsp"/> 
     679    </action> 
     680 
     681    <action    path="/prefs/fetchForUpdate" 
     682               type="org.bedework.webcommon.pref.FetchPrefsAction" 
     683               name="calForm" 
     684               scope="session" 
     685               validate="false"> 
     686      <forward name="notFound" path="/admin/showMain.rdo" redirect="true" /> 
     687      <forward name="success" path="/prefs/showModForm.rdo" redirect="true" /> 
     688    </action> 
     689 
     690    <action    path="/prefs/update" 
     691               type="org.bedework.webcommon.pref.UpdatePrefsAction" 
     692               name="peForm" 
     693               scope="session" 
     694               validate="false"> 
     695      <forward name="cancelled" path="/admin/showMain.rdo" redirect="true" /> 
     696      <forward name="retry" path="/prefs/showModForm.rdo" /> 
     697      <forward name="success" path="/admin/showMain.rdo" redirect="true" /> 
     698    </action> 
     699 
     700    <!-- =============================================================== 
     701                     Mailing Events 
     702         =============================================================== --> 
     703 
     704    <!-- renderUrl --> 
     705    <action    path="/showEmailOptions" 
     706               type="org.bedework.webclient.BwRenderAction" 
     707               name="calForm" 
     708               scope="session" 
     709               validate="false"> 
     710      <forward name="success" path="/docs/emailOptions.jsp" /> 
     711    </action> 
     712 
     713    <action    path="/initMailEvent" 
     714               type="org.bedework.webclient.BwEventAction" 
     715               name="calForm" 
     716               scope="session" 
     717               validate="false"> 
     718      <forward name="notFound" path="/showMain.rdo" redirect="true" /> 
     719      <forward name="success" path="/showEmailOptions.rdo" redirect="true" /> 
     720    </action> 
     721 
     722    <action    path="/mailEvent" 
     723               type="org.bedework.webclient.BwMailEventAction" 
     724               name="calForm" 
     725               scope="session" 
     726               validate="false"> 
     727      <forward name="noEvent" path="/showMain.rdo" redirect="true" /> 
     728      <forward name="retry" path="/showEmailOptions.rdo" redirect="true" /> 
     729      <forward name="success" path="/showMain.rdo" redirect="true" /> 
     730    </action> 
     731 
     732    <!-- =============================================================== 
     733                     Event Alarms 
     734         =============================================================== --> 
     735 
     736    <!-- renderUrl --> 
     737    <action    path="/showAlarmOptions" 
     738               type="org.bedework.webclient.BwRenderAction" 
     739               name="calForm" 
     740               scope="session" 
     741               validate="false"> 
     742      <forward name="success" path="/docs/alarmOptions.jsp" /> 
     743    </action> 
     744 
     745    <action    path="/initEventAlarm" 
     746               type="org.bedework.webclient.BwEventAction" 
     747               name="calForm" 
     748               scope="session" 
     749               validate="false"> 
     750      <forward name="notFound" path="/showMain.rdo" redirect="true" /> 
     751      <forward name="success" path="/showAlarmOptions.rdo" redirect="true" /> 
     752    </action> 
     753 
     754    <action    path="/setAlarm" 
     755               type="org.bedework.webclient.BwSetAlarmAction" 
     756               name="calForm" 
     757               scope="session" 
     758               validate="false"> 
     759      <forward name="noEvent" path="/showMain.rdo" redirect="true" /> 
     760      <forward name="retry" path="/showAlarmOptions.rdo" redirect="true" /> 
     761      <forward name="success" path="/showMain.rdo" redirect="true" /> 
     762    </action> 
     763 
     764    <!-- =============================================================== 
     765                     System Statistics 
     766     =============================================================== --> 
     767 
     768    <!-- renderUrl --> 
     769    <action    path="/showStats" 
     770               type="org.bedework.webclient.BwRenderAction" 
     771               name="calForm" 
     772               scope="session" 
     773               validate="false"> 
     774      <forward name="success" path="/docs/showSysStats.jsp" /> 
     775    </action> 
     776 
     777    <action    path="/stats" 
     778               type="org.bedework.webcommon.misc.StatisticsAction" 
     779               name="calForm" 
     780               scope="session" 
     781               validate="false"> 
     782      <forward name="continue"  path="/showStats.rdo" redirect="true" /> 
     783      <forward name="success"  path="/showStats.rdo" redirect="true" /> 
     784    </action> 
    665785  </action-mappings> 
     786 
    666787<!--               unknown="true" --> 
    667788 
  • trunk/calendar3/webclient/war/docs/calendar/calendarDescriptions.jsp

    r319 r447  
    77<page>calendarDescriptions</page> 
    88 
    9 <%@include file="/docs/calendar/emitCalendars.jsp"%> 
     9<%@include file="/docs/calendar/emitPublicCalendars.jsp"%> 
    1010 
    1111<%@include file="/docs/footer.jsp"%> 
  • trunk/calendar3/webclient/war/docs/header.jsp

    r440 r447  
    171171      <editLocation><genurl:rewrite action="editLoc.do"/></editLocation> 
    172172      <delLocation><genurl:rewrite action="delLocation.do"/></delLocation> 
     173 
     174      <prefs> 
     175        <fetchForUpdate><genurl:link page="/prefs/fetchForUpdate.do?b=de"/></fetchForUpdate> 
     176        <update><genurl:link page="/prefs/update.do?b=de"/></update> 
     177      </prefs> 
    173178 
    174179      <initEventAlarm><genurl:rewrite action="initEventAlarm.do"/></initEventAlarm> 
  • trunk/calendar3/webclient/war/docs/prefs/modPrefs.jsp

    r359 r447  
    1111<prefs> 
    1212  <user><bean:write name="userPrefs" property="owner.account"/></user> 
     13  <email><bean:write name="userPrefs" property="email"/></email> 
     14  <!-- default calendar into which events will be placed --> 
     15  <defaultCalendar><bean:write name="userPrefs" property="defaultCalendar"/></defaultCalendar> 
     16  <!-- name of default view (collection of subscriptions) that will appear upon login --> 
    1317  <preferredView><bean:write name="userPrefs" property="preferredView"/></preferredView> 
     18  <!-- default period that will appear upon login (day, week, month, year, today) --> 
    1419  <preferredViewPeriod><bean:write name="userPrefs" property="preferredViewPeriod"/></preferredViewPeriod> 
     20  <!-- skinName is XSL skin name; skinStyle is intended for CSS stylesheet name --> 
    1521  <skinName><bean:write name="userPrefs" property="skinName"/></skinName> 
    1622  <skinStyle><bean:write name="userPrefs" property="skinStyle"/></skinStyle> 
     23  <!-- string of chars representing the days --> 
     24  <workDays><bean:write name="userPrefs" property="workDays"/></workDays> 
     25  <!-- start and end in minutes: e.g. 14:30 is 870 and 17:30 is 1050 --> 
     26  <workdayStart><bean:write name="userPrefs" property="workdayStart"/></workdayStart> 
     27  <workdayEnd><bean:write name="userPrefs" property="workdayEnd"/></workdayEnd> 
     28  <!-- pref end type = date or duration --> 
     29  <preferredEndType><bean:write name="userPrefs" property="preferredEndType"/></preferredEndType> 
     30  <!-- user mode: 0 = basicMode, 1 = simpleMode, 2 = advancedMode --> 
     31  <userMode><bean:write name="userPrefs" property="userMode"/></userMode> 
    1732</prefs> 
    1833