howto implement a @before annotation ?

2009-02-09 Thread xianwinwin
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 @before public String activateProcess() {

Re: howto implement a @before annotation ?

2009-02-09 Thread Piero Sartini
On Monday 09 February 2009 16:43:09 xianwinwin wrote: 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. Write your own interceptor and check for your annotation. Something like this should

Re: howto implement a @before annotation ?

2009-02-09 Thread xianwinwin
YES! thank you so much this really helps! Piero Sartini-3 wrote: On Monday 09 February 2009 16:43:09 xianwinwin wrote: 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. Write