I think you should be able to write an interceptor to do this. Take a look at [1] and [2] for some information about how it works and how to write custom interceptors. All the information you need to access should be available in the invocation context. You should also take a look at the PortletActionContext class.
Nils-H [1] - http://struts.apache.org/2.x/docs/interceptors.html [2] - http://struts.apache.org/2.x/docs/writing-interceptors.html On Fri, Aug 15, 2008 at 11:50 AM, Torsten Krah <[EMAIL PROTECTED]> wrote: > Am Freitag, 15. August 2008 08:11:42 schrieb Nils-Helge Garli Hegvik: >> I guess that depends on what you're trying to achieve. Interceptors >> are typically used for before/after functionality. > > I want to intercept the dispatching of the "Render" and "Action" phase of the > portlet, to inject SecurityContext of Spring Security, like its done with > spring portlet mvc framework (there are HandlerAdapters which do that). > > Is this possible using interceptors? > How do i know if its a doAction or doRender request from interceptors point of > view ? And how do i know if its "before" or "after"? > Afaik see interceptor does not know this as ActionProxy Chain does call them > which is invoked from Jsr168Dispatcher, am i right? > If this is the case, i don't know "where" i am and can't do this with > interceptors. > > If its not possible, what would be the "best" way to do so? > > Torsten > > -- > Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge. > Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html > > Really, I'm not out to destroy Microsoft. That will just be a > completely unintentional side effect." > -- Linus Torvalds > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]