Posted on 2007-03-11 13:24
chenweicai 閱讀(71)
評論(0) 編輯 收藏
1. 超連接
在struts 中可以將一個超連接定義為ActionForward? 這個對象有兩個屬性:name和path。如:
<forward name="welcome" path="/path/index.html">
2.HTML表單
提供了一個ActionForm類 ,其實就是一個javaBean 其中有setter和getter方法。
在Struts-config.xml配置文件中要對表單設置,<form-bean>或者是<form-beans> 如
<form-beans>
? <form-bean name ="logonForm" type="com.yourcompany.struts.form.LogonForm">
……
</form-beans>
3.定制動作
由Action類處理
4.Actionmapping
<action-mappings>
???<action?
??????path=""
??????type=""
??????name=""
??????score=""
??????validate=""
??????input="">
</action-mappings>
5.ActionServlet類