Hi,
kesslerdn said the following on 2005-09-15 13:51:> I have a method in the controller that modifies an object in the
> session and redirects to the page that the method was called from.
> This works great. However, when I leave the page that has this
> functionality I want to remove this object from the session.
>
> I have been trying to figure out a way to let a method know where a
> redirect came from. I have not been successful.
Check the request headers to see if you can find the Referer field. If
your browser sends it (which is not guaranteed), you should have what
you need.
Note that Referer is really spelled that way, even though it''s wrong.
> This may not be the correct approach. How do I create logic the is
> conditional based on the calling method?
The best way is to pass in a new parameter that says what you want to do.
Bye !
François