javaweb--struts框架--struts.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="itcast" namespace="/control/employee" extends="struts-default">
<action name="list" class="cn.itcast.action.HelloWorldAction" method="execute">
<result name="success">/WEB-INF/page/hello.jsp</result>
</action>
<action name="addUI">
<result>/WEB-INF/page/employeeAdd.jsp</result>
</action>
</package>
</struts>
//class不指定时,默认是actionsupport
//method不指定时,默认是execute
//不指定result中的name值,默认是SUCCESS