更多"[单选题]struts2中,以下配置文件上传拦截器只允许上传bmp图片"的相关试题:
[判断题]struts2的拦截器只能在struts.txt配置文件中注册。( )
A.正确
B.错误
[多选题]以下属于struts2配置文件中的配置元素是( )
A.<package>
B.<action>
C.<form-beans>
D.<action-mappings>
[判断题]Struts2的核心配置文件是struts2.xml。( )
A.正确
B.错误
[判断题]Struts2的核心配置文件是struts.xml。( )
A.正确
B.错误
[填空题]开发Struts2项目时,需要在( )配置文件中手动配置Struts2的核心过滤器。
[判断题]开发Struts2项目时,需要在web.xml配置文件中手动配置Struts2的核心过滤器。( )
A.正确
B.错误
[单选题]于Struts2的以下配置内容应该在哪个配置文件中编写
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAdnExecuteFilter </filter-class> </filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</utl-pattern>
</filter-mapping>
A.struts-default.xml
B.truts.xml
C.web.xml
D.ter.xml
[多选题]关于struts2的配置文件描述正确的是( )
A.必须在WEB-INF目录下
B.名字必须为struts.xml
C.配置Action时,必须配置<package>
D.使用<forward>元素配置转发
[单选题]Struts2中默认的配置文件名称是( )
A.struts.xml
B.struts2.xml
C.struts-config.xml
D.xwork.xml
[多选题]在struts2中想去修改struts2的访问action的扩展名,可以在哪些配置文件中修改?( )
A.struts.xml
B.struts.properties
C.web.xml
D.struts-config.xml
[单选题]下列选项中是Struts2的核心配置文件的是( )
A.struts2.xml
B.web.xml
C.struts.xml
D.struts.properties
[判断题]fileUpload拦截器实现了文件上传的功能。( )
A.正确
B.错误
[判断题]拦截器栈是由多个拦截器链或者拦截器栈组成而成。( )
A.正确
B.错误
[判断题]拦截器栈不能作为默认拦截器。( )
A.正确
B.错误
[判断题]拦截器链组成的集合是拦截器栈。( )
A.正确
B.错误
[判断题]通过继承抽象拦截器类AbstractIntercepter可以自定义拦截器。( )
A.正确
B.错误
[填空题]通过继承抽象拦截器类( )可以自定义拦截器。
[判断题]struts2的默认拦截器栈,已经包括了fileUpload拦截器。( )
A.正确
B.错误