External content is used to make the session available like the following:
 session = (HttpSession)context.getExternalContext().getSession(false);

I have added all extensions in web.xml, copied from myfaces site. My web.xml
is pasted below.
My Tomahawk version is tomahawk-1.1.11 I guess it is compatible with JSF
1.1, correct me if I am wrong.

Web.xml

<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee";>
    <description>Empty web.xml file for Web Application</description>
    <filter>  
        <filter-name>extensionsFilter</filter-name>  
        <filter-class>
org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>  
        <init-param>  
            <description>Set the size limit for uploaded files. Format: 10 -
10 bytes 10k - 10  
                KB 10m - 10 MB 1g - 1 GB  
            </description>  
            <param-name>uploadMaxFileSize</param-name>  
            <param-value>100m</param-value>  
        </init-param>  
        <init-param>               
            <description>Set the threshold size - files below this limit are
stored in  
                memory, files above this limit are stored on disk. Format:
10 - 10 bytes 10k -  
                10 KB 10m - 10 MB 1g - 1 GB  
            </description>  
            <param-name>uploadThresholdSize</param-name>  
            <param-value>100k</param-value>  
        </init-param>  
    </filter>       
    <filter-mapping>  
        <filter-name>extensionsFilter</filter-name>  
        <url-pattern>*.jsf</url-pattern>  
    </filter-mapping>       
    <filter-mapping>  
        <filter-name>extensionsFilter</filter-name>  
        <url-pattern>/faces/*</url-pattern>  
    </filter-mapping>       
    <filter-mapping>  
            <filter-name>extensionsFilter</filter-name>  
            <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>  
    </filter-mapping>  
    <context-param>
        <param-name>org.apache.myfaces.redirectTracker.POLICY</param-name>
       
<param-value>org.apache.myfaces.custom.redirectTracker.policy.FullRedirectTrackPolicy</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>
        <servlet-name>Login</servlet-name>
        <servlet-class>vms_proj.Login</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Login</servlet-name>
        <url-pattern>/login</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
        <extension>html</extension>
        <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <jsp-config/>
</web-app>


-- 
View this message in context: 
http://old.nabble.com/tomahawk-t%3AsaveState-and-HTTPSession-tp33465710p33466274.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to