A.使用動態(tài)Form首先要定義一個同名的Form.Bean,不需要添加任何屬性 B.在配置動態(tài)Form時type屬性指定為自己定義的Form.Bean的類名 C.通過myForm.getUserName從動態(tài)Form中獲得userName的值 D.動態(tài)Form中的屬性名要同頁面表單域的name屬性一致才能在表單提交時自動填充
A.實現(xiàn)DispatchAction.Bean需要實現(xiàn)org.apache.struts.actions.DispatchAction接口 B.DispatchAction.Bean中不需要定義execute方法 C.配置DispatchAction.Bean與配置普通Action.Bean沒有區(qū)別 D.可通過http://localhost:8080/app/da.do直接訪問DispatchAction
A. B. C. D.