If you only want to know when an action is reached from another action, you 
can have the first action set an arbitrary request attribute before 
forwarding, and have the second action check for the existence of that 
attribute. Request attributes will live across forwards, but not across 
separate external requests.

--
Martin Cooper


At 10:20 AM 10/23/01, [EMAIL PROTECTED] wrote:
>In an Action, is there a way to determine if the request is coming from a 
>forward from another Action or from an "external" request?  I've thought 
>about storing in the session the last known request object and then 
>comparing against it every time any of my actions perform() get called to 
>see if the current request is the same as the last "known" request.  But 
>this feels clunky.
>Are there any other ways to know where the request is coming from?
>
>         Eric
>--
>Eric Rizzo, Software Engineer
>OpenNetwork Technologies
>http://www.opennetwork.com
>-----------------------------
>I embrace my personality flaws, for without them
>I might have no personality at all.


Reply via email to