Gan*_*esh 4 eclipse struts2 java-ee
我想将struts框架添加到我的eclipse helios j2ee版本中.请告诉我这方面的指导.
提前致谢.
WEB_INF/lib应用程序的文件夹中:
配置Web应用程序,以便Struts框架通过将以下行添加到web.xml文件来处理所有页面请求:
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Run Code Online (Sandbox Code Playgroud)创建struts.xml配置文件.
你需要添加的另一个jar是 commons-lang3-xxjar
| 归档时间: |
|
| 查看次数: |
19105 次 |
| 最近记录: |