PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/zkcalendar3/demo/src/archive/WEB-INF/web.xml

http://zkcalendar.googlecode.com/
XML | 241 lines | 143 code | 11 blank | 87 comment | 0 complexity | f7784ed604af141ce2b8826387186559 MD5 | raw file
Possible License(s): GPL-2.0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- web.xml
  3. Purpose:
  4. Description:
  5. History:
  6. Wed Dec 29 12:13:00 2004, Created by tomyeh
  7. Copyright (C) 2004 Potix Corporation. All Rights Reserved.
  8. -->
  9. <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
  10. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  11. xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  12. <description><![CDATA[ZK Demo]]></description>
  13. <display-name>zkdemo</display-name>
  14. <!--
  15. <icon>
  16. <small-icon></small-icon>
  17. <large-icon></large-icon>
  18. </icon>
  19. -->
  20. <!-- Spring ApplicationContext -->
  21. <!--
  22. <context-param>
  23. <param-name>contextConfigLocation</param-name>
  24. <param-value>/WEB-INF/spring-config.xml</param-value>
  25. </context-param>
  26. <listener>
  27. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  28. </listener>
  29. -->
  30. <!-- //// -->
  31. <!-- ZK -->
  32. <listener>
  33. <description>ZK listener for session cleanup</description>
  34. <listener-class>org.zkoss.zk.ui.http.HttpSessionListener</listener-class>
  35. </listener>
  36. <servlet>
  37. <description>ZK loader for ZUML pages</description>
  38. <servlet-name>zkLoader</servlet-name>
  39. <servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class>
  40. <!-- Must. Specifies URI of the update engine (DHtmlUpdateServlet).
  41. It must be the same as <url-pattern> for the update engine.
  42. -->
  43. <init-param>
  44. <param-name>update-uri</param-name>
  45. <param-value>/zkau</param-value>
  46. </init-param>
  47. <!-- Optional. Specifies whether to compress the output
  48. of the ZK loader. It speeds up the transmission over slow Internet.
  49. However, if you configure a filter to post-processing the
  50. output, you might have to disable it.
  51. Default: true
  52. <init-param>
  53. <param-name>compress</param-name>
  54. <param-value>true</param-value>
  55. </init-param>
  56. -->
  57. <!-- Optional. Specifies the default log level: OFF, ERROR, WARNING,
  58. INFO, DEBUG and FINER. If not specified, the system default is used.
  59. <init-param>
  60. <param-name>log-level</param-name>
  61. <param-value>OFF</param-value>
  62. </init-param>
  63. -->
  64. <load-on-startup>1</load-on-startup><!-- Must -->
  65. </servlet>
  66. <servlet-mapping>
  67. <servlet-name>zkLoader</servlet-name>
  68. <url-pattern>*.zul</url-pattern>
  69. </servlet-mapping>
  70. <servlet-mapping>
  71. <servlet-name>zkLoader</servlet-name>
  72. <url-pattern>*.zhtml</url-pattern>
  73. </servlet-mapping>
  74. <servlet-mapping>
  75. <servlet-name>zkLoader</servlet-name>
  76. <url-pattern>*.svg</url-pattern>
  77. </servlet-mapping>
  78. <servlet-mapping>
  79. <servlet-name>zkLoader</servlet-name>
  80. <url-pattern>*.xml2html</url-pattern>
  81. </servlet-mapping>
  82. <!-- Optional. Uncomment it if you want to use richlets.
  83. -->
  84. <servlet-mapping>
  85. <servlet-name>zkLoader</servlet-name>
  86. <url-pattern>/zk/*</url-pattern>
  87. </servlet-mapping>
  88. <servlet>
  89. <description>The asynchronous update engine for ZK</description>
  90. <servlet-name>auEngine</servlet-name>
  91. <servlet-class>org.zkoss.zk.au.http.DHtmlUpdateServlet</servlet-class>
  92. <!-- [Optional] Specifies the AU processor for particular prefix.
  93. <init-param>
  94. <param-name>processor0</param-name>
  95. <param-value>/upload=com.my.MyUploader</param-value>
  96. </init-param>
  97. -->
  98. </servlet>
  99. <servlet-mapping>
  100. <servlet-name>auEngine</servlet-name>
  101. <url-pattern>/zkau/*</url-pattern>
  102. </servlet-mapping>
  103. <!-- Uncomment if you want to use the ZK filter to post process the HTML output
  104. generated by other technology, such as JSP and velocity.
  105. <filter>
  106. <filter-name>zkFilter</filter-name>
  107. <filter-class>org.zkoss.zk.ui.http.DHtmlLayoutFilter</filter-class>
  108. <init-param>
  109. <param-name>extension</param-name>
  110. <param-value>html</param-value>
  111. </init-param>
  112. <init-param>
  113. <param-name>compress</param-name>
  114. <param-value>true</param-value>
  115. </init-param>
  116. </filter>
  117. <filter-mapping>
  118. <filter-name>zkFilter</filter-name>
  119. <url-pattern>/test/filter.dsp</url-pattern>
  120. </filter-mapping>
  121. <filter-mapping>
  122. <filter-name>zkFilter</filter-name>
  123. <url-pattern>/test/filter2.dsp</url-pattern>
  124. </filter-mapping>
  125. -->
  126. <!-- ///////////// -->
  127. <!-- DSP (optional) -->
  128. <!-- Uncomment if you want to use Potix DSP in your Website
  129. -->
  130. <servlet>
  131. <servlet-name>dspLoader</servlet-name>
  132. <servlet-class>org.zkoss.web.servlet.dsp.InterpreterServlet</servlet-class>
  133. <init-param>
  134. <param-name>class-resource</param-name>
  135. <param-value>true</param-value>
  136. </init-param>
  137. </servlet>
  138. <servlet-mapping>
  139. <servlet-name>dspLoader</servlet-name>
  140. <url-pattern>*.dsp</url-pattern>
  141. </servlet-mapping>
  142. <!-- /////////// -->
  143. <!-- Miscellaneous -->
  144. <session-config>
  145. <session-timeout>60</session-timeout>
  146. </session-config>
  147. <!-- MIME mapping -->
  148. <mime-mapping>
  149. <extension>doc</extension>
  150. <mime-type>application/vnd.ms-word</mime-type>
  151. </mime-mapping>
  152. <mime-mapping>
  153. <extension>gif</extension>
  154. <mime-type>image/gif</mime-type>
  155. </mime-mapping>
  156. <mime-mapping>
  157. <extension>htm</extension>
  158. <mime-type>text/html</mime-type>
  159. </mime-mapping>
  160. <mime-mapping>
  161. <extension>html</extension>
  162. <mime-type>text/html</mime-type>
  163. </mime-mapping>
  164. <mime-mapping>
  165. <extension>jnlp</extension>
  166. <mime-type>application/x-java-jnlp-file</mime-type>
  167. </mime-mapping>
  168. <mime-mapping>
  169. <extension>jpeg</extension>
  170. <mime-type>image/jpeg</mime-type>
  171. </mime-mapping>
  172. <mime-mapping>
  173. <extension>jpg</extension>
  174. <mime-type>image/jpeg</mime-type>
  175. </mime-mapping>
  176. <mime-mapping>
  177. <extension>js</extension>
  178. <mime-type>application/x-javascript</mime-type>
  179. </mime-mapping>
  180. <mime-mapping>
  181. <extension>pdf</extension>
  182. <mime-type>application/pdf</mime-type>
  183. </mime-mapping>
  184. <mime-mapping>
  185. <extension>png</extension>
  186. <mime-type>image/png</mime-type>
  187. </mime-mapping>
  188. <mime-mapping>
  189. <extension>rar</extension>
  190. <mime-type>application/x-rar-compressed</mime-type>
  191. </mime-mapping>
  192. <mime-mapping>
  193. <extension>txt</extension>
  194. <mime-type>text/plain</mime-type>
  195. </mime-mapping>
  196. <mime-mapping>
  197. <extension>xls</extension>
  198. <mime-type>application/vnd.ms-excel</mime-type>
  199. </mime-mapping>
  200. <mime-mapping>
  201. <extension>xml</extension>
  202. <mime-type>text/xml</mime-type>
  203. </mime-mapping>
  204. <mime-mapping>
  205. <extension>xul</extension>
  206. <mime-type>application/vnd.mozilla.xul-xml</mime-type>
  207. </mime-mapping>
  208. <mime-mapping>
  209. <extension>zhtml</extension>
  210. <mime-type>text/html</mime-type>
  211. </mime-mapping>
  212. <mime-mapping>
  213. <extension>zip</extension>
  214. <mime-type>application/x-zip</mime-type>
  215. </mime-mapping>
  216. <mime-mapping>
  217. <extension>zul</extension>
  218. <mime-type>text/html</mime-type>
  219. </mime-mapping>
  220. <welcome-file-list>
  221. <welcome-file>index.zul</welcome-file>
  222. <welcome-file>index.zhtml</welcome-file>
  223. <welcome-file>index.html</welcome-file>
  224. <welcome-file>index.htm</welcome-file>
  225. </welcome-file-list>
  226. </web-app>