单项选择题
假设在Struts 2的struts.xml中有如下拦截器配置:下列说法不正确的是()。
A.该拦截器执行时,不会调用Struts2中的默认拦截器栈defaultStackB.拦截器栈myStack的定义有误,应该使用< interceptor-stacks>标签C.< default-interceptor-ref>标签用来定义默认拦截器或拦截器栈的引用D.< interceptor-stack>标签中可以定义多个拦截器的引用
A.ActionContext是以解耦合方式访问Servlet APIB.ServletActionContext和ActionContext都有getSession()方法,都返回Map对象C.ActionContext类只封装部分Servlet API,有些功能需要原始的Servlet API才能实现,这种情况就需要使用ServletActionContext类D.Action可以实现特定的接口,由Struts 2框架向Action注入Servlet API对象
A.< constant name="struts.i18n.encoding"value="UTF-8">B.< constant name="struts.custom.i18.encoding"value="UTF-8">C.< constant name="struts.custom.i18.resources"value="UTF-8">D.< constant name="struts.ui.theme"value="UTF-8">