我用的是struts框架
我写了个过滤器
想过滤struts 中的所有ActionForm类,这里不考滤用validate()做验证
问题是
过滤器对他不起作用
我想知道
是不是过滤器不能过滤ActionForm呀
若能过滤
能不能帮写一下<url-pattern>
<filter-mapping>
<filter-name>clearSession</filter-name>
<url-pattern</url-pattern>
</filter-mapping>
我的ActionForm包 相对路径为:com.struts.ActionForm
我写了个过滤器
想过滤struts 中的所有ActionForm类,这里不考滤用validate()做验证
问题是
过滤器对他不起作用
我想知道
是不是过滤器不能过滤ActionForm呀
若能过滤
能不能帮写一下<url-pattern>
<filter-mapping>
<filter-name>clearSession</filter-name>
<url-pattern</url-pattern>
</filter-mapping>
我的ActionForm包 相对路径为:com.struts.ActionForm
跟ActionForm没有关系,
ActionForm是struts里面的对象,过滤器管不到的