springacegi中authz标签,无法获取登录用户的信息.......

long_18 2010-07-09
麻烦各位帮忙看下....
   我用的是springacegi2.0.5。登录验证成功后,在/secure/index.jsp上能够通过authz标签获取到用户信息。但是,是这个页面上有一个button,他指向一个action(struts2框架,它指向tableOperate.jsp)。问题就在这儿,当点击button,跳转到tableOperate.jsp后,在这个页面上通过authz标签则无法获取到用户的信息了....

这是我的配置文件的信息:
<http auto-config="true" path-type="ant" lowercase-comparisons="true"  access-denied-page="/acessDenied.jsp" >
<concurrent-session-control exception-if-maximum-exceeded="true" max-sessions="1"/>
<intercept-url pattern="/login.jsp*" filters="none" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
<intercept-url pattern="/secure/*" access="ROLE_BROWSER,ROLE_OPERATE,ROLE_ADMIN"/>
<intercept-url pattern="/secure/admin/*" access="ROLE_ADMIN"/>
<form-login login-page="/login.jsp" authentication-failure-url="/login.jsp?login_error=1" default-target-url="/secure/index.jsp"/>
        <logout logout-success-url="/secure/index.jsp" logout-url="/j_acegi_logout"/>
<concurrent-session-control max-sessions="1" /> 
</http>

<authentication-provider user-service-ref="userDetailsService">
</authentication-provider>

<b:bean id="userDetailsService" class=" org.springframework.security.userdetails.jdbc.JdbcDaoImpl">
<b:property name="usersByUsernameQuery">
<b:value>
SELECT username,password,enabled FROM Secureuser WHERE username = ?
</b:value>
</b:property>
<b:property name="authoritiesByUsernameQuery">
<b:value>
SELECT username,authentication FROM SECUREAUTH WHERE username = ?
</b:value>
</b:property>
<b:property name="dataSource" ref="dataSource"></b:property>
</b:bean>

麻烦大家帮忙看下,万分感谢......
long_18 2010-07-09
已解决......
Global site tag (gtag.js) - Google Analytics