aspose file tools*
The moose likes Struts and the fly likes Form based authentication - problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Form based authentication - problem" Watch "Form based authentication - problem" New topic
Author

Form based authentication - problem

Lakshmi Narayana puvvada
Greenhorn

Joined: Jul 20, 2005
Posts: 3
Hi,

I am using form based authentication in my application, by default i am getting login page when session got expired. i have my own filter to validate weather session got expired or not.....

The problem is like this , i am getting the login page once session expired. i need a solution or control before expiring the session,
I need to redirect the different page instead of login page.

i am using "j_security_check" for login action.
and my web.xml is like this.

<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/jsp/login.jsp</form-login-page>
<form-error-page>/jsp/flogin.jsp</form-error-page>
</form-login-config>
</login-config>

My own filter.....

<filter>
<filter-name>SessionTimeOutFilter</filter-name>
<filter-class>
com.ihml.common.SessionTimeoutFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>SessionTimeOutFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>SessionTimeOutFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
 
jQuery in Action, 2nd edition
 
subject: Form based authentication - problem