I am using Tomcat 6.0 on Windows Server 2003.  It seems that when my session 
expires I am redirected to the login page which I would expect.  However, my 
filter is not called when I am redirected to the login page.  When I used Jetty 
as my web server, the call was intercepted by the filter before the user was 
presented the login page.  Does anyone know why this is the case?  The 
following is the sections of my web.xml that contains the filter info.

    <filter>
        <filter-name>SessionTimeoutFilter</filter-name>
        
<filter-class>com.mycompany.ui.filters.SessionTimeoutFilter</filter-class>
        <init-param>
            <param-name>home</param-name>
            <param-value>/home.do</param-value>
        </init-param>
   </filter>

    <filter-mapping>
        <filter-name>SessionTimeoutFilter</filter-name>
        <servlet-name>action</servlet-name>
    </filter-mapping>

  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>com.mycompany.ui.web.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>0</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>0</param-value>
    </init-param>
    <init-param>
      <param-name>maxFileSize</param-name>
      <param-value>250M</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>


  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>com.mycompany.ui.web.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>0</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>0</param-value>
    </init-param>
    <init-param>
      <param-name>maxFileSize</param-name>
      <param-value>250M</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>

  <welcome-file-list>
    <welcome-file>/index.jsp</welcome-file>
    <welcome-file>/index.htm</welcome-file>
    <welcome-file>/index.html</welcome-file>
  </welcome-file-list>

    <login-config>
        <auth-method>FORM</auth-method>
        <realm-name>mycompany</realm-name>
        <form-login-config>
            <form-login-page>/login.jsp</form-login-page>
            <form-error-page>/loginError.do</form-error-page>
        </form-login-config>
    </login-config>

My index.jsp contains 1 line which redirects to home.do.

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to