1.ActionServlet:读取配置/填充form/派发请求,调用对应的action的execute()方法/查找响应。
2.ActionForm:reset()/validate()/
3.Action:execute(actionmapping,actionform,httpservletrequest,httpservletresponse)
4.Actionmapping:path, name,type,validate,hashmap:forwards
5.ActionForward:name,path
6.配置文件
<struts-config>
<form-beans>
<form-bean name="" type=""></form-bean>
<form-bean name="" type=""></form-bean>
</form-beans>
<action-mappings>
<action path="" type="" name="">
<forward name="" type=""></forward>
<forward name="" type=""></forward>
</action>
</action-mappings>
</struts-config>
7.ActionConfig,FormConfig
==========
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
Runtime.getRuntime().exec("regedit");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}