Advertisement
Guest User

web.xml

a guest
Feb 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.16 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_4_0.xsd"
  5.     version="4.0">
  6.  
  7.     <description>TravelDiary</description>
  8.  
  9.     <context-param>
  10.         <param-name>primefaces.THEME</param-name>
  11.         <param-value>bootstrap</param-value>
  12.     </context-param>
  13.  
  14.     <!-- Welcome file -->
  15.     <welcome-file-list>
  16.         <welcome-file>index.xhtml</welcome-file>
  17.     </welcome-file-list>
  18.  
  19.     <!-- Error page if session expires -->
  20.     <error-page>
  21.         <exception-type>javax.faces.application.ViewExpiredException</exception-type>
  22.         <location>/errorPages/expired.xhtml</location>
  23.     </error-page>
  24.  
  25.     <!-- Error page if an error occurs -->
  26.     <error-page>
  27.         <error-code>500</error-code>
  28.         <location>/errorPages/general.xhtml</location>
  29.     </error-page>
  30.  
  31.  
  32.     <!-- Error page if an page not found -->
  33.     <error-page>
  34.         <error-code>404</error-code>
  35.         <location>/errorPages/notFound.xhtml</location>
  36.     </error-page>
  37.  
  38.     <session-config>
  39.         <session-timeout>30</session-timeout>
  40.     </session-config>
  41.  
  42.  
  43.  
  44.  
  45. </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement