This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 and ACEGI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 and ACEGI" Watch "Struts 2 and ACEGI" New topic
Author

Struts 2 and ACEGI

Rama Yannam
Greenhorn

Joined: Oct 02, 2007
Posts: 7
I am trying to understand how we can integrate Struts 2 and Spring ACEGI security framework. Does anyone know of a good book that covers this topic ?

I am specifically interested in how would you wire your action classes and acegi configs together.

Rama
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

S2 and Acegi integration is really no different than the standard Acegi integration--are you having specific issues?

Dave
Rama Yannam
Greenhorn

Joined: Oct 02, 2007
Posts: 7
I am new to ACEGI and struts, both. I am looking for a simple example that uses struts and ACEGI together. How does your web.xml should look ?

Can we have both struts2 and spring filter definitions with same url-patterns ? see below:

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>

<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<filter>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
<init-param>
<param-name>targetClass</param-name>
<param-value>org.acegisecurity.util.FilterChainProxy</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

Thanks,
Rama
Rama Yannam
Greenhorn

Joined: Oct 02, 2007
Posts: 7
Does your book cover any details about ACEGI ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Spring is discussed primarily in regards to testing and testability; Acegi is not covered--that's a topic for a Spring book.

Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 and ACEGI
 
Similar Threads
Acegi Configuration
Struts 2 security
Spring Security or Acegi Security ?
looking for a tutotiral regarding security management
Good Security Framework?