struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antony Joseph" <ajosep...@lycos.com>
Subject RE: Request Processor validation Question
Date Mon, 14 Mar 2005 16:36:44 GMT
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" <spurcell@vertisinc.com>
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:ajosephmi@lycos.com]
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org



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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message