I usually create an ActionFilter that maps to the same url-pattern as my Action class. You can then set a userForm or token in the session if it's null, and that way you'll know if they just logged in or not. Seems to work pretty well for me.
Here's an example: http://tinyurl.com/55an HTH, Matt > -----Original Message----- > From: MarwanSalam <[EMAIL PROTECTED]> > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 5:06 PM > To: [EMAIL PROTECTED] > Subject: j_security_check with LogonAction > > > Hi, > > I am trying to use j_security_check Servlet to authenticate users > from a login.jsp. However, if I do this, I will not be able to take > advantage of LogonAction class where I need to set certain session > and request attributes. If I submit the logon form to LogonAction, I > can forward the request from LogonAction to j_security_check but the > request object will stay there and I can not forward again using > mapping.findForward("success") to a different page since the response > is already commited at that point. > > Is there a way to work around this? > > Marwan > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]