A. Struts 是一個(gè)基于JAVA EE的MVC
B. Struts2的框架配置文件是struts-configxml
C. Struts2的控制組建核心包括核心控制和業(yè)務(wù)控制器
D. 在Struts中解決中文亂碼可以通過(guò)修改struts。I18n。encoding的值為GBK來(lái)實(shí)現(xiàn)
A <s:text>
B <s:error>
C <s:faild>
D <s:fielderror>
A. Action
B. ActionForm
C. ActionServlet
D. DispatchAction
A. struts2控制器組件
B. struts2配置文件
C. FilterDispatcher
D. Action
A. <package>
B. <action>
C. <form-bean>
D. <action-mapping>
A. struts1要求Action類繼承其框架中的Action父類,struts2則不一定需要繼承,可以是POJO類
B. struts1的Action不是線程安全的,struts2的Action是線程安全的
C. struts1和struts2都使用ActionForm對(duì)象封裝用戶的請(qǐng)求數(shù)據(jù)
D. struts1使用OGNL表達(dá)式語(yǔ)言來(lái)支持頁(yè)面效果,struts2通過(guò)ValueStack技術(shù)使標(biāo)簽庫(kù)訪問(wèn)值
A. 每個(gè)Action對(duì)象實(shí)例擁有一個(gè)ValueStack對(duì)象
B. 每個(gè)Action對(duì)象實(shí)例擁有多個(gè)ValueStack對(duì)象
C. Action中封裝的需要傳入下一個(gè)頁(yè)面的值,這些值封裝在ValueStack對(duì)象中
D. ValueStack會(huì)在請(qǐng)求開(kāi)始時(shí)創(chuàng)建,請(qǐng)求結(jié)束時(shí)消亡
A. 必須在WEB-INF/classes目錄下
B. 名字必須為strutss.xml
C. 配置Action時(shí),必須配置包信息
D. 使用<forward>元素配置轉(zhuǎn)發(fā)
A. <const>
B. <constants>
C. <constant>
D. <constant-mapping>
A. struts2框架使用包來(lái)管理常量
B. struts2框架定義包時(shí)必須指定name屬性
C. struts2框架中配置包時(shí),必須繼承自struts-default包,否則會(huì)報(bào)錯(cuò)
D. struts2框架中使用包來(lái)管理Action
A. 使用ActionContext對(duì)象以解耦合的方式訪問(wèn)Servlet API
B. 使用ServletActionContext對(duì)象以解耦合的方式訪問(wèn)Servlet API
C. 使用ActionContext對(duì)象以耦合的方式訪問(wèn)Servlet API
D. 使用ActionContext對(duì)象以耦合的方式訪問(wèn)Servlet API
A. 普通的Action類可以實(shí)現(xiàn)
B. 繼承自Action接口的可以實(shí)現(xiàn)
C. 繼承自ActionSupport類可以實(shí)現(xiàn)
D. 繼承自ActionValidate類可以實(shí)現(xiàn)
A. Dispatcher
B. StrutsResultSupport
C. Support
D. Action
A. ${屬性名}
B. @{屬性名}
C. ${'屬性名'}
D. ${"屬性名"}
A. <s:text>
B. <s:message>
C. <s:textfile>
D. <s:resource>
A. 實(shí)現(xiàn)Interceptor接口
B. 實(shí)現(xiàn)AbstractionInceptor接口
C. 繼承Interceptor類
D. 繼承AbstractionInceptor類
A. <interceptor-ref>
B. <interceptor>
C. <intercep>
D. <defaull-interceptor-ref>
A. 取出符合選擇邏輯的第一個(gè)元素
B. 取出符合選擇邏輯的第=最后一個(gè)元素
C. 取出符合選擇邏輯的所有元素
D. 以上說(shuō)法都不對(duì)
A. <s:property>
B. <s:iterator>
C. <s:logic>
D. <s:foreach>
A. ActionContext是OGNL上下文環(huán)境
B. StackContext是OGNL上下文環(huán)境
C. ValueStack是OGNL根
D. ActionContext是OGNL根