日期:2014-05-20  浏览次数:20613 次

struts1.2配置拦截器,报错,求救!!!!!!!!!!
//interceptor-config.xml
<?xml version="1.0" encoding="UTF-8"?>

<interceptor-config> 
  <interceptor name ="displayInterceptor" type ="com.accp.filter.InterceptorQx" />  
  <action type ="/jobwant"> 
  <interceptor name ="displayInterceptor" /> 
  </action> 
  
//stuts-config.xml
  <!-- 招聘-发布职位 -->
  <action
  attribute="JobWantForm"
  name="JobWantForm"
  path="/jobwant"
  scope="request"
  parameter="method"
  type="com.accp.struts.action.JobWantAction">
  <set-property property="cancellable" value="true" />
  </action>
  </action-mappings>
   
  <controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor"></controller>
  <message-resources parameter="com.accp.struts.ApplicationResources" />
  <plug-in className ="net.sf.struts.saif.SAIFSpringPlugin" > 
  <set-property property ="interceptor-config" value ="/WEB-INF/interceptor-config.xml"/> 
  </plug-in>
</struts-config>
 

------解决方案--------------------
不兼容异常 要么导入了重复的包 要不包的版本之间不兼容