1
0

web.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  5. <display-name>MWUI</display-name>
  6. <context-param>
  7. <param-name>contextConfigLocation</param-name>
  8. <param-value>/WEB-INF/ServiceContext.xml</param-value>
  9. </context-param>
  10. <listener>
  11. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  12. </listener>
  13. <jsp-config>
  14. <taglib>
  15. <taglib-uri>struts-bean.tld</taglib-uri>
  16. <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
  17. </taglib>
  18. <taglib>
  19. <taglib-uri>struts-html.tld</taglib-uri>
  20. <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
  21. </taglib>
  22. <taglib>
  23. <taglib-uri>struts-logic.tld</taglib-uri>
  24. <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
  25. </taglib>
  26. <taglib>
  27. <taglib-uri>struts-nested.tld</taglib-uri>
  28. <taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
  29. </taglib>
  30. <taglib>
  31. <taglib-uri>struts-tiles.tld</taglib-uri>
  32. <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
  33. </taglib>
  34. <taglib>
  35. <taglib-uri>taglibs-string-edit.tld</taglib-uri>
  36. <taglib-location>/WEB-INF/tld/taglibs-string-edit.tld</taglib-location>
  37. </taglib>
  38. </jsp-config>
  39. <servlet>
  40. <description>
  41. </description>
  42. <servlet-name>ActionServlet</servlet-name>
  43. <servlet-class>
  44. id.co.hanoman.shared.HanomanAction</servlet-class>
  45. <init-param>
  46. <description>
  47. </description>
  48. <param-name>application</param-name>
  49. <param-value>ApplicationResources</param-value>
  50. </init-param>
  51. <init-param>
  52. <description>
  53. </description>
  54. <param-name>config</param-name>
  55. <param-value>/WEB-INF/struts-config.xml</param-value>
  56. </init-param>
  57. <init-param>
  58. <description>
  59. </description>
  60. <param-name>debug</param-name>
  61. <param-value>3</param-value>
  62. </init-param>
  63. <init-param>
  64. <description>
  65. </description>
  66. <param-name>detail</param-name>
  67. <param-value>3</param-value>
  68. </init-param>
  69. <load-on-startup>1</load-on-startup>
  70. </servlet>
  71. <servlet-mapping>
  72. <servlet-name>ActionServlet</servlet-name>
  73. <url-pattern>*.do</url-pattern>
  74. </servlet-mapping>
  75. <!-- servlet COdex -->
  76. <servlet>
  77. <description>
  78. </description>
  79. <display-name>CodexServlet</display-name>
  80. <servlet-name>CodexServlet</servlet-name>
  81. <servlet-class>
  82. id.co.hanoman.shared.CodexServlet</servlet-class>
  83. <load-on-startup>2</load-on-startup>
  84. </servlet>
  85. <servlet-mapping>
  86. <servlet-name>CodexServlet</servlet-name>
  87. <url-pattern>/CodexServlet</url-pattern>
  88. </servlet-mapping>
  89. <session-config>
  90. <session-timeout>3</session-timeout>
  91. </session-config>
  92. <welcome-file-list>
  93. <welcome-file>login.jsp</welcome-file>
  94. <welcome-file>index.jsp</welcome-file>
  95. </welcome-file-list>
  96. <error-page>
  97. <exception-type>java.lang.Throwable</exception-type>
  98. <location>/error_general.jsp</location>
  99. </error-page>
  100. <security-constraint>
  101. <display-name>MWSecurityConstraint</display-name>
  102. <web-resource-collection>
  103. <web-resource-name>MWSecurityCollection</web-resource-name>
  104. <url-pattern>/images/*</url-pattern>
  105. <url-pattern>/css/*</url-pattern>
  106. <url-pattern>/icons/*</url-pattern>
  107. <http-method>GET</http-method>
  108. <http-method>PUT</http-method>
  109. <http-method>HEAD</http-method>
  110. <http-method>TRACE</http-method>
  111. <http-method>POST</http-method>
  112. <http-method>DELETE</http-method>
  113. <http-method>OPTIONS</http-method>
  114. </web-resource-collection>
  115. </security-constraint>
  116. <security-role>
  117. <role-name>MWSecurity</role-name>
  118. </security-role>
  119. <login-config>
  120. <auth-method>FORM</auth-method>
  121. <realm-name>LDAP</realm-name>
  122. <form-login-config>
  123. <form-login-page>/login.jsp</form-login-page>
  124. <form-error-page>/failure.jsp</form-error-page>
  125. </form-login-config>
  126. </login-config>
  127. </web-app>