struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xianwinwin <>
Subject howto implement a @before annotation ?
Date Mon, 09 Feb 2009 15:43:09 GMT

Hi all,
here's a scenario:I have some methods that before executed, they should run
an interceptor --to verify if the user is authorized to do something.

I read that struts2 has a @before @after interceptors that could help here.

here's my though

public String activateProcess()
     //do something here

so in this case, since the method has a @before - it will execute the
@before's interceptor first and only then the method activateProcess
(assuming all is well with the interceptor)

how can I implement the @before???
Thanks for any pointers. 

View this message in context:
Sent from the Struts - User mailing list archive at

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

View raw message