Changeset 33973 for main


Ignore:
Timestamp:
2020-02-25T14:01:18+13:00 (4 years ago)
Author:
kjdon
Message:

tidied up the file a bit. added new servlet_url param to oaiserver - used in naming of OAIConfig.xml files. so you can have more than one oai servlet, eg operating on different sites

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/WEB-INF/web.xml

    r29687 r33973  
    4141    <context-param>
    4242        <param-name>webmaster</param-name>
    43         <param-value>greenstone[email protected].waikato.ac.nz</param-value>
     43        <param-value>greenstone-users@list.waikato.ac.nz</param-value>
    4444        <description>
    4545            The EMAIL address of the administrator to whom questions
     
    7474    -->
    7575
     76    <!-- a very basic test servlet -->
    7677    <servlet>
    7778        <servlet-name>tester</servlet-name>
     
    8687        <servlet-class>org.greenstone.gsdl3.ClientSideServlet</servlet-class>
    8788    </servlet>
    88  
     89
    8990    <!-- See servlets.xml -->
    9091    &servlets-config;
     92
     93    <!-- the oai servlet. You can add multiple oai servlets by copying
     94         the description and changing site_name and servlet_url params.
     95         Remember to add the mapping here and the corresponding servlet_url
     96         into build.properties -->
     97    <servlet>
     98        <servlet-name>oaiserver</servlet-name>
     99        <description>the default oai servlet</description>
     100        <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
     101        <init-param>
     102            <param-name>default_lang</param-name>
     103            <param-value>en</param-value>
     104        </init-param>
     105        <init-param>
     106            <param-name>site_name</param-name>
     107            <param-value>localsite</param-value>
     108        </init-param>
     109        <!-- this needs to correspond to the value in the url-pattern
     110             part of the mapping, below.-->
     111        <init-param>
     112            <param-name>servlet_url</param-name>
     113            <param-value>oaiserver</param-value>
     114        </init-param>
     115    </servlet>
    91116
    92117    <!-- axis servlets -->
     
    121146    </servlet>
    122147   
    123     <servlet>
    124         <servlet-name>oaiserver</servlet-name>
    125         <description>an oai servlet</description>
    126         <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
    127         <init-param>
    128             <param-name>default_lang</param-name>
    129             <param-value>en</param-value>
    130         </init-param>
    131         <init-param>
    132             <param-name>site_name</param-name>
    133             <!-- More than one site name can be specified using the comma separation style: localsite1,localsite2 -->
    134             <param-value>localsite</param-value>
    135         </init-param>
    136     </servlet>
    137148   
    138149    <servlet>
     
    143154
    144155
    145 
    146 
    147  
    148156    <!-- Define mappings that are used by the servlet container to
    149157         translate a particular request URI (context-relative) to a
    150          particular servlet.  The examples below correspond to the
    151          servlet descriptions above.  Thus, a request URI like:
    152 
    153            http://localhost:8080/{contextpath}/graph
    154 
    155          will be mapped to the "graph" servlet, while a request like:
    156 
    157            http://localhost:8080/{contextpath}/saveCustomer.do
    158 
    159          will be mapped to the "controller" servlet.
     158         particular servlet. 
    160159
    161160         You may define any number of servlet mappings, including zero.
     
    163162         servlet, if you wish to.
    164163    -->
    165     <!--
    166164   
    167     <servlet-mapping>
    168       <servlet-name>controller</servlet-name>
    169       <url-pattern>*.do</url-pattern>
    170     </servlet-mapping>
    171 
    172     <servlet-mapping>
    173       <servlet-name>graph</servlet-name>
    174       <url-pattern>/graph</url-pattern>
    175     </servlet-mapping>
    176     -->
    177    
    178 
    179 <!--There is no need for this mapping, I think -->
    180165    <servlet-mapping>
    181166        <servlet-name>oaiserver</servlet-name>
Note: See TracChangeset for help on using the changeset viewer.