struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohan Radhakrishnan <>
Subject Login filter
Date Tue, 24 Dec 2002 08:39:03 GMT
    I wanted to clear a doubt about this. Do I remove the conventional login
check from my LoginAction to the filter ? That seems to be the right way to
use a filter.

     1. Check for the user container( username,password object ) in the
     2. Call the isNew() method of the session.

     The first method might be like this.

     	  session = req.getSession( true );
	  if( session.getAttribute( WebConstants.USER_KEY ) == null ){
	  } else{
		chain.doFilter( req, response );

     What about the second method ? I need to restrict the login action from
being filtered itself. Any advice is appreciated.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message