移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

计算机考试 | Java认证考试

题库
练习
考试
资讯

模式切换

0 0 0
我的错题 我的收藏 学习笔记

章节目录

单选题 You are building a Front Controller using a JSP page and you need to determine if the user’s session hasNOT been created yet and perform some special processing for this case. Which scriptlet code snippet willperform this test?()

A

<% if ( request.getSession(false) == null ) {// special processing} %>

B

<% if ( request.getHttpSession(false) == null ) {// special processing} %>

C

<% if ( requestObject.getSession(false) == null ) { // special processing} %>

D

<% if ( requestObject.getHttpSession(false) == null ) { // special processing} %>

单选题 You need to create a JavaBean object that is used only within the current JSP page. It must NOT beaccessible to any other page including those that this page might import. Which JSP standard action canaccomplish this goal?()

A

<jsp:useBean id=’pageBean’ type=’com.example.MyBean’ />

B

<jsp:useBean id=’pageBean’ class=’com.example.MyBean’ />

C

<jsp:makeBean id=’pageBean’ type=’com.example.MyBean’ />

D

<jsp:makeBean id=’pageBean’ class=’com.example.MyBean’ />

首页 上一页 1 2 3 4 5 下一页 尾页 /

到第