aspose file tools*
The moose likes Struts and the fly likes Declarative security in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Declarative security in Struts2" Watch "Declarative security in Struts2" New topic
Author

Declarative security in Struts2

MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188
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?


I am slow but sure
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8907
    
    8

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188
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

Joined: Oct 29, 2001
Posts: 8907
    
    8

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Declarative security in Struts2