我在struts.xml中定义一个拦截器,如下所示:
<interceptor name="ssoAuthenticationInterceptor" class="net.ysccc.sso.authentication.AuthenticationInterceptor">
<param name="casServerLoginUrl">http://localhost:8080/cas/login</param>
<param name="serverName">http://localhost:8080</param>
<param name="renew">false</param>
<param name="gateway">false</param>
</interceptor>
现在在拦截器类中我想得到param,有一种方法是在类中定义getter setter方法,但是我不想用这种方式,有人能告诉我该怎么做吗?
答案 0 :(得分:0)
对所有参数使用Getters和Setter,属性必须在Interceptor中公开。
casServerLoginUrl
serverName
renew
gateway