1. 超連接
在struts 中可以將一個(gè)超連接定義為ActionForward? 這個(gè)對象有兩個(gè)屬性:name和path。如:
<forward name="welcome" path="/path/index.html">
2.HTML表單
提供了一個(gè)ActionForm類 ,其實(shí)就是一個(gè)javaBean 其中有setter和getter方法。
在Struts-config.xml配置文件中要對表單設(shè)置,<form-bean>或者是<form-beans> 如
<form-beans>
? <form-bean name ="logonForm" type="com.yourcompany.struts.form.LogonForm">
……
</form-beans>
3.定制動(dòng)作
由Action類處理
4.Actionmapping
<action-mappings>
???<action?
??????path=""
??????type=""
??????name=""
??????score=""
??????validate=""
??????input="">
</action-mappings>
5.ActionServlet類
在struts 中可以將一個(gè)超連接定義為ActionForward? 這個(gè)對象有兩個(gè)屬性:name和path。如:
<forward name="welcome" path="/path/index.html">
2.HTML表單
提供了一個(gè)ActionForm類 ,其實(shí)就是一個(gè)javaBean 其中有setter和getter方法。
在Struts-config.xml配置文件中要對表單設(shè)置,<form-bean>或者是<form-beans> 如
<form-beans>
? <form-bean name ="logonForm" type="com.yourcompany.struts.form.LogonForm">
……
</form-beans>
3.定制動(dòng)作
由Action類處理
4.Actionmapping
<action-mappings>
???<action?
??????path=""
??????type=""
??????name=""
??????score=""
??????validate=""
??????input="">
</action-mappings>
5.ActionServlet類