Advertisement
chrisasl

web.xml

Sep 6th, 2014
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
  5. version="3.1">
  6. <servlet>
  7. <servlet-name>Faces Servlet</servlet-name>
  8. <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  9. <load-on-startup>1</load-on-startup>
  10. </servlet>
  11. <servlet-mapping>
  12. <servlet-name>Faces Servlet</servlet-name>
  13. <url-pattern>*.xhtml</url-pattern>
  14. </servlet-mapping>
  15. <!-- Filter for admin dir -->
  16. <filter>
  17. <filter-name>AdminDirVisitorDeniedFilter</filter-name>
  18. <filter-class>com.sample.security.AdminDirVisitorDeniedFilter</filter-class>
  19. </filter>
  20. <filter-mapping>
  21. <filter-name>AdminDirVisitorDeniedFilter</filter-name>
  22. <url-pattern>/admin/*</url-pattern>
  23. </filter-mapping>
  24. <filter>
  25. <filter-name>AdminDirNotAdminDeniedFilter</filter-name>
  26. <filter-class>com.sample.security.AdminDirNotAdminDeniedFilter</filter-class>
  27. </filter>
  28. <filter-mapping>
  29. <filter-name>AdminDirNotAdminDeniedFilter</filter-name>
  30. <url-pattern>/admin/*</url-pattern>
  31. </filter-mapping>
  32. <!-- Debugging output -->
  33. <context-param>
  34. <param-name>javax.faces.PROJECT_STAGE</param-name>
  35. <param-value>Development</param-value>
  36. </context-param>
  37. <!-- Interval compiler checks for changes at xhtml files
  38. No need to redeploy to see changes to facelets -->
  39. <context-param>
  40. <param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
  41. <param-value>1</param-value>
  42. </context-param>
  43. <session-config>
  44. <session-timeout>30</session-timeout>
  45. <!-- Removing jsession id being publicly appended at url -->
  46. <tracking-mode>COOKIE</tracking-mode>
  47. </session-config>
  48. <!-- Setting primefaces' theme to be Bootstrap -->
  49. <context-param>
  50. <param-name>primefaces.THEME</param-name>
  51. <param-value>bootstrap</param-value>
  52. </context-param>
  53. <!-- Setting facelets for handling exceptions -->
  54. <error-page>
  55. <exception-type>javax.faces.application.ViewExpiredException</exception-type>
  56. <location>/not-yet.xhtml</location>
  57. <!-- The "not-yet" appears red" and I am getting cannot resolve symbol "not-yet" -->
  58. </error-page>
  59. </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement