Correction.  Default implementation uses any configured roles. Your 
implementation can override this and implement whatever logic you want.

----- Original Message -----
From: "Antony Joseph" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Subject: RE: Request Processor validation Question
Date: Mon, 14 Mar 2005 11:36:44 -0500

> 
> There is nothing special about processRoles(). It just returns true 
> by default.You can overide it and implement whatever logic you want 
> in it. It is not tied to any J2ee mechanism.
> 
> ----- Original Message -----
> From: "Scott Purcell" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Subject: RE: Request Processor validation Question
> Date: Mon, 14 Mar 2005 10:18:34 -0600
> 
> >
> > If I use the processRoles(), does that mean I have to use the 
> > J2EE authentication mechanism for web applications? Using the 
> > container and declare the applications declaratively?
> >
> > I am using a database with form-based authentication and just 
> > want to find out whether the user is logged in, and if so he can 
> > keep working, else if he is not logged in and is trying to access 
> > a page that requires he be logged in, then take him to the front 
> > door.
> >
> > Thanks,
> > Scott
> >
> > -----Original Message-----
> > From: Antony Joseph [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 14, 2005 9:56 AM
> > To: Struts Users Mailing List
> > Subject: Re: Request Processor validation Question
> >
> >
> > Hi Scott,
> > Check the javadocs for the RequestProcessor. Any method which has 
> > an ActionMapping as an argument can be used to figure out the 
> > action (ex: mapping.getPath()). If you plan to do authorization 
> > the method processRoles() is a good candidate to be overriden.
> >
> > ----- Original Message -----
> > From: "Scott Purcell"
> > To: user@struts.apache.org
> > Subject: Request Processor validation Question
> > Date: Mon, 14 Mar 2005 09:31:35 -0600
> >
> > >
> > > Hello, I have extended the RequestProcessor and I am looking 
> > for > a way to find out where the page is going to. The reason 
> > for this > is as follows. I am giving each user a UserObject when 
> > they hit > the site. Later on, after they log in, I set some 
> > flags to know > they are valid inside the application. I am just 
> > using a boolean > "isLoggedIn". Anyway I need a way to find out 
> > which Action they > are heading to and put some logic in my 
> > extended RequestProcessor > class, that could check which Action 
> > and send them to the login, > if an action they want to use is 
> > past the login page. If I know > the action and they are just 
> > logging in, I will not show them a > "session expired" flag. But 
> > if they are heading for an inside > page (a page they need to be 
> > logged in for), and the object says > "not logged in" then of 
> > course, I want to take them to the front > door and show a msg 
> > stating "session expired.". I have gone > through the 
> > RequestProcessor docs, but do not see anyway to get > the 
> > action.? Any ideas. Thanks, Scott
> >
> >
> >
> >
> >
> >
> > Antony Joseph
> > http://www.logicden.com
> > https://workeffort.dev.java.net
> > --
> > _______________________________________________
> > NEW! Lycos Dating Search. The only place to search multiple 
> > dating sites at once.
> > http://datingsearch.lycos.com
> >
> >
> > ---------------------------------------------------------------------
> > 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]
> 
> 
> 
> Antony Joseph
> http://www.logicden.com
> https://workeffort.dev.java.net
> 
> --
> _______________________________________________
> NEW! Lycos Dating Search. The only place to search multiple dating 
> sites at once.
> http://datingsearch.lycos.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



Antony Joseph
http://www.logicden.com
https://workeffort.dev.java.net

-- 
_______________________________________________
NEW! Lycos Dating Search. The only place to search multiple dating sites at 
once.
http://datingsearch.lycos.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to