Results 1 to 5 of 5

Thread: Does Acegi work with Struts as the web tier?

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Posts
    2

    Default Does Acegi work with Struts as the web tier?

    Hi,

    I just found Acegi as a very good security framework.

    I am using Spring with Struts as the web tier, I'd like to know whether Acegi works under this environment, or I have to use Spring MVC web framework in order to take advantage of Acegi?

    Can anyone recommend a good security framework for Struts+Spring?

    Thanks!

  2. #2

    Default

    As long as you INJECT those security 'aspects' through Spring
    using Acegi it's all fine and dandy.
    So, use it with Struts, WebWork, JSF ...
    It doesn't really matter!
    See contacts or quickstart samples from acegi distribution.
    Best regards, Geo

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Gerard is right. Acegi offers two types of security interceptors:

    - A HTTP interceptor which operates at a Servlet filter level. So you can secure any request path (eg /foo/*) independently of the web framework.

    - A method invocation interceptor which operates at an AOP level via the Spring application context. Again, this is independent of the web framework.

    We also include a taglib which makes it easy to access the contents of the ContextHolder.

    I also know a number of Acegi Security users are using Struts.

  4. #4
    Join Date
    May 2007
    Posts
    2

    Default struts help

    any examples of how to integrate with struts all the samples use spring mvc

  5. #5
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    There is a good article here explaining how to integrate Spring and Struts. When you are using Acegi, you simply need to ensure you sure the actions e.g. /doSomething.do.
    http://www-128.ibm.com/developerwork...ary/j-sr2.html

Similar Threads

  1. Replies: 9
    Last Post: Apr 4th, 2007, 03:09 AM
  2. Replies: 4
    Last Post: Feb 19th, 2006, 07:56 PM
  3. Replies: 2
    Last Post: Dec 7th, 2005, 12:10 PM
  4. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  5. Acegi newbie and Struts integration
    By schrepfler in forum Security
    Replies: 1
    Last Post: Aug 7th, 2005, 07:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •