1.struts2-codebehind-plugin-2.0.11.jar
2.Web.xml:设置ActionPackages
<filter>
<filter-name>struts2</filter-name>
<filter-class> org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
<init-param>
<param-name>actionPackages</param-name>
<param-value> org.springside.examples.miniweb.web</param-value>
</init-param>
</filter>
3.Sturts.xml:
<constant name="struts.codebehind.pathPrefix" value="/WEB-INF/jsp/" />
本文介绍如何在项目中配置 Struts2 的 CodeBehind 插件,包括添加必要的 JAR 包、在 Web.xml 中设置 ActionPackages 以及在 Struts.xml 中指定路径前缀。

323

被折叠的 条评论
为什么被折叠?



