Reply To: Intercept request

Splash Forums PrettyFaces Users Intercept request Reply To: Intercept request

#24809

Hi Christian

Thanks for your reply. I’m using page actions already – but what I need is to have a method called even before the page action, and called on all mappings.

My problem is that I have an url like this:

http://mydomain.com/agro/da/search/0210

This will call a page action to perform a search in my items for partnumbers having 0210 – so far so good. The only problem is that to perform this i need to know which context the user is running in – the /agro/da/ part of the url. But I don’t want to implement logic for interpreting this in all page actions – so I would like to have a method called before each page action, and this will be responsible for interpreting the context part of the url, and updating my user object with the knowledge needed for performing the search (or whatever the user has choosen to do).