关于在S+S+H环境下使用Acegi的问题!!!
有谁知道在struts下,需要在struts-config.xml里面还要定义些什么东西呢?
我按照要求,在web.xml里面定义了filter,在spring的配置里面也定义了/j_acegi_security_check的处理,但没在struts里面做任何事情,结果就是“无法找到该页”,哪位朋友能帮帮忙
------解决方案--------------------uppppppppppppppp
------解决方案--------------------struts-config.xml不需要定义什么。
web.xml
<context-param>
<param-name> contextConfigLocation </param-name>
<param-value> /WEB-INF/spring-context/applicationContext.xml,/WEB-INF/spring-context/applicationContext-security-acegi.xml </param-value>
</context-param>
<!--Acegi Filter Chain Proxy -->
<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>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener </listener-class>
</listener>
<listener>
<listener-class> org.springframework.web.util.Log4jConfigListener </listener-class>
</listener>
<listener>
<listener-class> org.acegisecurity.ui.session.HttpSessionEventPublisher </listener-class>
</listener>