• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Declarative security in Struts2

 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Joe Ess
Bartender
Posts: 9318
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MaheshS Kumbhar wrote:So can we have declarative security in struts2 like we have in Servlets.


Struts is built on top of servlets and can use exactly the same declarative security mechanism.
 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any struts way to deal with declarative security or isnt there any way other than what we use in servlets?
 
Joe Ess
Bartender
Posts: 9318
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic