Saturday, February 12, 2011

How do I configure the configuration file..?

The configuration file used is our old web.xml, if we use some IDE it will be pretty simple to generate but the contents will be something like below:



<?xml version="e;1.0"e; encoding="e;UTF-8"e;?>
 
 <web-app version="e;2.4"e; xmlns="e;http://java.sun.com/xml/ns/j2ee"e; 
  xmlns:xsi="e;http://www.w3.org/2001/XMLSchema-instance"e; 
  xsi:schemaLocation="e;http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"e;>
    <context-param>
  <param-name>com.sun.faces.verifyObjects</param-name>
  <param-value>false</param-value>
    </context-param>

    <context-param>
  <param-name>com.sun.faces.validateXml</param-name>
  <param-value>true</param-value>
    </context-param>

    <context-param>
  <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  <param-value>client</param-value>
    </context-param>

    <servlet>
  <servlet-name>Faces Servlet</servlet-name>
  <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
  <servlet-name>Faces Servlet</servlet-name>
  <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>

    <session-config>
  <session-timeout>
     30
  </session-timeout>
    </session-config>

    <welcome-file-list>
      <welcome-file>
  index.jsp
      </welcome-file>
    </welcome-file-list>
 </web-app>

No comments:

Post a Comment