1.缺少jar包,commons-lang3-3.2.jar

参考网址:https://blog.csdn.net/u013457382/article/details/50972401

 

2.struts.xml配置错误

1 <struts>
2     <package name="struts2" extends="struts-default" namespace="">
3         <action name="userModel" class="com.ahd.action.UserModelAction">
4             <result>/success.jsp</result>
5         </action>
6     </package>
7 </struts>

阴影部分为长出错地方

 

3.web.xml文件配置错误(少见)

1 <filter>
2         <filter-name>struts2</filter-name>
3         <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
4     </filter>
5     <filter-mapping>
6         <filter-name>struts2</filter-name>
7         <url-pattern>/*</url-pattern>
8     </filter-mapping>

 

相关文章:

  • 2021-12-23
  • 2021-08-26
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2021-12-29
  • 2021-10-02
  • 2022-12-23
猜你喜欢
  • 2021-11-06
  • 2021-11-09
  • 2021-11-18
  • 2021-08-24
相关资源
相似解决方案