Changeset 38839 for main/trunk


Ignore:
Timestamp:
2024-03-12T12:05:52+13:00 (3 months ago)
Author:
kjdon
Message:

moved oaiservlet specification out of web.xml and into servlets.xml

Location:
main/trunk/greenstone3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/resources/web/servlets.xml.svn

    r37750 r38839  
    143143</servlet-mapping>
    144144
     145<!-- the oai servlet. You can add multiple oai servlets by copying
     146     the description and changing site_name and servlet_url params.
     147     Remember to add the mapping here and the corresponding servlet_url
     148     into build.properties -->
     149<servlet>
     150    <servlet-name>oaiserver</servlet-name>
     151    <description>the default oai servlet</description>
     152    <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
     153    <init-param>
     154        <param-name>default_lang</param-name>
     155        <param-value>en</param-value>
     156    </init-param>
     157    <init-param>
     158        <param-name>site_name</param-name>
     159        <param-value>localsite</param-value>
     160    </init-param>
     161    <!-- this needs to correspond to the value in the url-pattern
     162         part of the mapping, below.-->
     163    <init-param>
     164        <param-name>servlet_url</param-name>
     165        <param-value>oaiserver</param-value>
     166    </init-param>
     167</servlet>
     168
     169<servlet-mapping>
     170    <servlet-name>oaiserver</servlet-name>
     171    <url-pattern>/oaiserver/*</url-pattern>
     172</servlet-mapping>
     173
    145174<servlet>
    146175    <servlet-name>halftone-library</servlet-name>
  • main/trunk/greenstone3/web/WEB-INF/web.xml

    r36986 r38839  
    9393    &flax-config;
    9494   
    95     <!-- the oai servlet. You can add multiple oai servlets by copying
    96          the description and changing site_name and servlet_url params.
    97          Remember to add the mapping here and the corresponding servlet_url
    98          into build.properties -->
    99     <servlet>
    100         <servlet-name>oaiserver</servlet-name>
    101         <description>the default oai servlet</description>
    102         <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
    103         <init-param>
    104             <param-name>default_lang</param-name>
    105             <param-value>en</param-value>
    106         </init-param>
    107         <init-param>
    108             <param-name>site_name</param-name>
    109             <param-value>localsite</param-value>
    110         </init-param>
    111         <!-- this needs to correspond to the value in the url-pattern
    112              part of the mapping, below.-->
    113         <init-param>
    114             <param-name>servlet_url</param-name>
    115             <param-value>oaiserver</param-value>
    116         </init-param>
    117     </servlet>
    118 
    119         <servlet-mapping>
    120         <servlet-name>oaiserver</servlet-name>
    121         <url-pattern>/oaiserver/*</url-pattern>
    122     </servlet-mapping>
    12395
    12496    <!-- axis servlets -->
Note: See TracChangeset for help on using the changeset viewer.