A.public.class.AddAction.implements.Action{...extends.Action
B.mapping.findForward("/ch01/result.jsp");findForward(“name”),new.ActionForward(“/ch01/result.jsp”)
C.form.method="get"action="add.do"
D.action.name="addAction"path="/add"type="y2ssh.sg.web.action.AddAction"Name指form的名字
您可能感興趣的試卷
你可能感興趣的試題
在使用struts框架構建應用系統時,建立一個類UserBean,其中有userName屬性以及相應的setter、getter方法。另外建立一個Action類,它的execute方法有如下片段:
假設success對應的jsp頁面為success.jsp,若要使success.jsp能夠輸出user對象中的屬性值,以下代碼片斷正確的是()
A.
B.
C.
D.
在使用struts框架構建應用系統時,會在配置文件中出現如下配置信息:
關于上述配置信息,以下描述中正確的是()
A.類com.test.LoginForm是org.apache.struts.action.ActionForm的派生類
B.缺省情況下,這段配置信息出現在struts-config.xml文件下,struts-config.xml文件與jsp、html等文件都位于web應用的根目錄下
C.如果把中間一行改為:form-beanname="LoginForm"type="com.test.LoginForm"scope="session"則該類在整個HTTP會話范圍內有效
D.該類中最為常用的是execute方法