Changeset 33973 for main/trunk
- Timestamp:
- 2020-02-25T14:01:18+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/WEB-INF/web.xml
r29687 r33973 41 41 <context-param> 42 42 <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> 44 44 <description> 45 45 The EMAIL address of the administrator to whom questions … … 74 74 --> 75 75 76 <!-- a very basic test servlet --> 76 77 <servlet> 77 78 <servlet-name>tester</servlet-name> … … 86 87 <servlet-class>org.greenstone.gsdl3.ClientSideServlet</servlet-class> 87 88 </servlet> 88 89 89 90 <!-- See servlets.xml --> 90 91 &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> 91 116 92 117 <!-- axis servlets --> … … 121 146 </servlet> 122 147 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>137 148 138 149 <servlet> … … 143 154 144 155 145 146 147 148 156 <!-- Define mappings that are used by the servlet container to 149 157 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. 160 159 161 160 You may define any number of servlet mappings, including zero. … … 163 162 servlet, if you wish to. 164 163 --> 165 <!--166 164 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 -->180 165 <servlet-mapping> 181 166 <servlet-name>oaiserver</servlet-name>
Note:
See TracChangeset
for help on using the changeset viewer.