struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xianwinwin <xianwin...@gmail.com>
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

@before 
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: http://www.nabble.com/howto-implement-a-%40before-annotation---tp21915451p21915451.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message