struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antony Joseph" <>
Subject Re: Request Processor validation Question
Date Mon, 14 Mar 2005 15:55:54 GMT
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" 
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
NEW! Lycos Dating Search. The only place to search multiple dating sites at once.

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

View raw message