Announcement Announcement Module
Collapse
No announcement yet.
Does Acegi work with Struts as the web tier? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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.

      Comment


      • #4
        struts help

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

        Comment


        • #5
          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

          Comment

          Working...
          X