标签:j2ee-ssh框架
1.导入Struts包
<filter>
<filter-name>Struts2</filter-name>
<filter-class>org.apache.struts2.dispater.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
2.配置struts-config.xml的配置文件
<struts-config>
<data-sources />
<form-beans />
<global-exceptions />
<global-forwards />
<action-mappings />
<message-resources parameter="com.myeclipse.struts.ApplicationResources" />
</struts-config>
本文出自 “8233902” 博客,请务必保留此出处http://8243902.blog.51cto.com/8233902/1698338
标签:j2ee-ssh框架
原文地址:http://8243902.blog.51cto.com/8233902/1698338