单选题
阅读下面代码片段:
C_if.jsp:
<body>
<c:if test="1==1" >
hello world
</c:if>
</body>
当在浏览器访问该c_if.jsp时会什么结果( )
1分
A、浏览器显示:hello world,控制台正常
B、浏览器正常,控制台显示:hello wrold
C、浏览器报错,控制台出现异常
D、浏览器空白,控制台有信息显示
单选题
下面选项中,关于DBUtils类中用于装载并注册JDBC驱动程序的方法是( )
1分
A、close()方法
B、closeQuietly()方法
C、commitAndCloseQuietly()方法
D、loadDriver()方法
单选题
要想在Tomcat服务器配置jsp文件,则需要在以下哪个目录中配置()
1分
A、Tomcat安装目录\ conf\server.xml
B、Tomcat安装目录\ conf\web.xml
C、Tomcat安装目录\ webapps\web.xml
D、Tomcat安装目录\ conf\context.xml
单选题
下列选项中,可以成功修改Tomcat端口号为80的是()
1分
A、<Connect port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
B、<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
C、<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
D、<Connect port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
单选题
下面JSP标签中,具有转发功能的是()
1分
A、<jsp:include>
B、<jsp:forward>
C、<jsp:param>
D、<jsp:redirect>
单选题
下列选项中,哪个是服务器向客户端发送Cookie的本质?( )
1分
A、在HTTP响应头字段中增加Set-Cookie响应头字段
B、在HTTP响应头字段中增加Cookie响应头字段
C、在HTTP请求头字段中增加Cookie响应头字段
D、在HTTP请求头字段中增加Set-Cookie响应头字段
单选题
下列选项中,哪些是Tomcat服务器中jsp配置文件的存放目录()
1分
A、Tomcat安装目录\ conf\server.xml
B、Tomcat安装目录\ conf\web.xml
C、Tomcat安装目录\ webapps\web.xml
D、Tomcat安装目录\ conf\context.xml
单选题
关于Filter链的执行顺序,是由web.xml文件中的哪个元素决定的( )
1分
A、<filter>元素顺序决定
B、<filter-mapping>元素顺序决定
C、<filter-class>元素顺序决定
D、由过滤器类名的顺序决定