单选题 在Filter过滤器的生命周期方法中,每当传递请求或响应时,web容器会调用()方法

A、 init()
B、 service()
C、 doFilter()
D、 destroy()
下载APP答题
由4l***ls提供 分享 举报 纠错

相关试题

单选题 在设计Web项目的目录结构时,一般把JSP和HTML文件放在()下。

A、src目录
B、文档根目录或其子文件下
C、META-INF目录
D、WEB-INF目录

单选题 以下哪种情况是出现500报错的原因?()

A、jsp页面出现语法错误导致无法编译
B、表单中的action地址与处理该表单的servlet映射地址不一致
C、用户访问的url地址不对或不存在
D、web应用工程中的Servlet映射地址有冲突导致tomcat启动失败

单选题 JSP内置对象request的()方法能够获取一个表单参数的值:

A、getQueryString()
B、getPathInfo()
C、getParameter()
D、getAttribute()

单选题 当一个servlet第一次被访问时,以下哪个方法先执行()

A、destroy()
B、doGet()
C、service()
D、init()

单选题 Which of the following options executes an isomorphic sql statement?()

A、CallableStatement
B、Statement
C、PreparedStatement
D、Prepared

单选题 The JSP file is compiled to a()file by the JSP engine the first time it is run.

A、Servlet
B、Class
C、HTML
D、XML

单选题 如何定义密码域()

A、type="text"
B、type="password"
C、type="checkbox"
D、type="radio"

单选题 request.getRequestDispatcher().forward(request,response)

A、流转
B、转发
C、重定向
D、导航