myeclipse中struts-config.xml的问题,不会配置,最好能说明清楚
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEstruts-configPUBLIC"-//ApacheSoftwareFou...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="" type=""/>
</form-beans>
<global-forwards>
<forward name="" path="" />
</global-forwards>
<action-mappings>
<action path=""
type=""
name=""
parameter="methode"
scope="request"
validate="false">
<forward name="success" path="" />
<forward name="failure" path="" />
</action>
<action path=""
type=""
name=""
parameter="methode"
scope="request"
validate="true"
input="">
<forward name="success" path="" />
<forward name="failure" path="" />
</action>
</action-mappings>
<message-resources parameter="" />
<message-resources key="" parameter="" />
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
</plug-in>
</struts-config> 展开
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="" type=""/>
</form-beans>
<global-forwards>
<forward name="" path="" />
</global-forwards>
<action-mappings>
<action path=""
type=""
name=""
parameter="methode"
scope="request"
validate="false">
<forward name="success" path="" />
<forward name="failure" path="" />
</action>
<action path=""
type=""
name=""
parameter="methode"
scope="request"
validate="true"
input="">
<forward name="success" path="" />
<forward name="failure" path="" />
</action>
</action-mappings>
<message-resources parameter="" />
<message-resources key="" parameter="" />
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
</plug-in>
</struts-config> 展开
2个回答
展开全部
更多追问追答
追问
struts2,通过myeclipse建的struts-config.xml的文件,新建后就是那些代码,但是不会用
追答
http://wenku.baidu.com/view/7d94860103d8ce2f00662324.html
慢慢学,不会用,是因为你没有学过
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询