I want to implement security(Authentication/Authorization) in my struts2 application. So can we have declarative security in struts2 like we have in Servlets.
We used to have following declarative security mechanism in servlets
Is there anything similar to this, that can be used in configuring authentication/authorization in struts2 applications?
The "Struts way" is to take advantage of existing API's rather than reinvent the wheel. Are you looking for alternatives to declarative security? Struts can work with Acegi or other security frameworks just fine.