单选题Given that login.getName() returns a java.lang.String value and given the JSP code:  Welcome Which is equivalent?()A <%> Welcome <% out.print(login.getName()); %> BWelcome <% writer.print(login.getName()); %> CWelcome <% response.out.print(login.getNam

题目
单选题
Given that login.getName() returns a java.lang.String value and given the JSP code:  Welcome Which is equivalent?()
A

<%> Welcome <% out.print(login.getName()); %> 

B

 Welcome <% writer.print(login.getName()); %> 

C

 Welcome <% response.out.print(login.getName()); %>

D

 Welcome <% response.writer.print(login.getName()); %> 

E

 Welcome <% response.getOutputStream().write(login.getName()); %>


相似考题
更多“单选题Given that login.getName() returns a java.lang.String value and given the JSP code:  Welcome Which is equivalent?()A % Welcome % out.print(login.getName()); % B  Welcome % writer.print(login.getName()); % C  Welcome % response.out.print(login.getName()”相关问题
  • 第1题:

    在C:\Pic文件夹中有一个图形文件,名为Welcome. gif。为了将该图形装入窗体 Form1,应使用的语句为 ( )

    A.Forml. Caption="WELCOME. gif"

    B.Forml. Picture=C:\Pic\Welcome. gif

    C.Forml. Picture="C:\Pic\Welcome. gif"

    D.Forml. Picture=LoadPieture("C:\Pic\Welcome. gif")


    正确答案:D
    解析:加载图形文件的格式为; [对象名.]Picture=LoadPicture(“图形文件标识”)故题中把图形装入窗体应使用的语句为选项D。

  • 第2题:

    若有char ch[10],则下列字符串数组的赋值中不正确的是( )。

    A.ch="welcome";

    B.ch[0]='w';

    C.strcpy(ch,"welcome");

    D.char ch1[]="welcome";strcpy(ch,ch1);


    正确答案:A
    解析:ch是数组名,代表该数组的地址,是常量,不是变量,不能给其赋值。

  • 第3题:

    欢迎你再到我们船上来。()

    • A、You are welcome to look around our ship..
    • B、You are welcome to have a look our ship.
    • C、You are welcome to come on board our ship again.
    • D、You are welcome to visit our ship.

    正确答案:C

  • 第4题:

    在J2ee中,myWebApp目录是一个Web应用程序根目录,当在浏览器中输入http://localhost:8080/myWebApp/时,会自动打开该目录下的start.jsp文件。为了达到这个要求,需要在web.xml中添加如下代码()。

    • A、<welcome-file>start.jsp</welcome-file> 
    • B、<welcome-file-list>start.jsp</welcome-file-list> 
    • C、<welcome-list>  <welcome-file>start.jsp</welcome-file> </welcome-list> 
    • D、<welcome-file-list> <welcome-file>start.jsp</welcome-file>   </welcome-file-list>

    正确答案:D

  • 第5题:

    假定login.getName() 返回类型为java.lang.String ,给定JSP代码: Welcome <%= login.getName() %>以下那个选项与此语句的功能相同?()

    • A、 Welocome <% out.print(login.getName());%>         
    • B、 Welocome <% Writer.print(login.getName());%> 
    • C、 Welocome <% response.out.print(login.getName());%> 
    • D、 Welocome <%r esponse.writer.print(login.getName());%> <%r>
       

    正确答案:A

  • 第6题:

    You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?() <title>

    • A、<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>
    • B、<jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>
    • C、<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>
    • D、<jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>

    正确答案:A

  • 第7题:

    单选题
    You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?()
    A

    <jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>

    B

    <jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>

    C

    <jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>

    D

    <jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>


    正确答案: A
    解析: 暂无解析

  • 第8题:

    单选题
    management has asked bob to post an introductory welcome page when notes users first open the video application in which one of the following places should bob put the welcome message?()
    A

     in a document named welcome 

    B

     in the  database about doc 

    C

     in the  database using doc 

    D

     in the first page in the database design


    正确答案: B
    解析: 暂无解析

  • 第9题:

    单选题
    在J2EE 中,myWebApp目录是一个Web应用程序根目录,当在浏览器中输入http://localhost:8080/myWebApp/时,会自动打开 该目录下的start.jsp文件。为了达到这个要求,需要在web.xml中添加如下代码()。
    A

    <welcome-file>start.jsp</welcome-file> 

    B

    <welcome-file-list>start.jsp<welcome-file-list> 

    C

    <welcome-list><welcome-file>start.jsp</welcome-file></welcome-list> 

    D

    <welcome-file-list><welcome-file>start.jsp</welcome-file></welcome-file-list>


    正确答案: C
    解析: 暂无解析

  • 第10题:

    单选题
    在j2ee中,mywebapp目录是一个web应用程序根目录,当在浏览器中输入http://localhost:8080/mywebapp/时,会自动打开该目录下的start.jsp文家。为了达到这个要求,需要在web.xml中添加如下代码()
    A

    <welcome-file>start.jsp</welcome.-file> 

    B

    <welcome-file-list> start.jsp </welcome.-file-list> 

    C

    <welcome-file><welcome-file> start.jsp</welcome-file> </welcome.-file> 

    D

    <welcome-file-list><welcome-file> start.jsp </welcome.-file></welcome-file-list>


    正确答案: D
    解析: 暂无解析

  • 第11题:

    多选题
    Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()
    A

    Java code

    B

    Template text

    C

    Scripting code

    D

    Standard action

    E

    Expression language


    正确答案: A,E
    解析: 暂无解析

  • 第12题:

    单选题
    Your web application views all have the same header, which includes the  tag in the  elementof the rendered HTML. You have decided to remove this redundant HTML code from your JSPs and put itinto a single JSP called /WEB-INF/jsp/header.jsp. However, the title of each page is unique, so you havedecided to use a variable called pageTitle to parameterize this in the header JSP, like this: 10.${param.pageTitle} Which JSP code snippet should you use in your main view JSPs to insert the header and pass thepageTitle variable?()
    A

    <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:insert>

    B

    <jsp:include page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>

    C

    <jsp:include file=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>

    D

    <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:insert>

    E

    <jsp:include page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:include>


    正确答案: A
    解析: 暂无解析

  • 第13题:

    在C:\Pic文件中有一个图形文件,名为WelcomE.gif。为了将该图形装入名为Form1的窗体,应使用的语句为______。

    A.Form1.Caption = "WELCOME.gif"

    B.Form1.Caption = C:\Pic\WelcomE.gif"

    C.Form1.Caption = "C:\Pic\WelcomE.gif"

    D.Form1.Caption = LoadPicture("C:\Pic\WelcomE.gif")


    正确答案:D

  • 第14题:

    Given that login.getName() returns a java.lang.String value and given the JSP code:  Welcome <%= login.getName() %>Which is equivalent?()

    • A、<%> Welcome <% out.print(login.getName()); %> 
    • B、 Welcome <% writer.print(login.getName()); %> 
    • C、 Welcome <% response.out.print(login.getName()); %>
    • D、 Welcome <% response.writer.print(login.getName()); %> 
    • E、 Welcome <% response.getOutputStream().write(login.getName()); %>

    正确答案:A

  • 第15题:

    在J2EE 中,myWebApp目录是一个Web应用程序根目录,当在浏览器中输入http://localhost:8080/myWebApp/时,会自动打开 该目录下的start.jsp文件。为了达到这个要求,需要在web.xml中添加如下代码()。

    • A、<welcome-file>start.jsp</welcome-file> 
    • B、<welcome-file-list>start.jsp<welcome-file-list> 
    • C、<welcome-list><welcome-file>start.jsp</welcome-file></welcome-list> 
    • D、<welcome-file-list><welcome-file>start.jsp</welcome-file></welcome-file-list>

    正确答案:D

  • 第16题:

    在j2ee中,mywebapp目录是一个web应用程序根目录,当在浏览器中输入http://localhost:8080/mywebapp/时,会自动打开该目录下的start.jsp文家。为了达到这个要求,需要在web.xml中添加如下代码() 

    • A、<welcome-file>start.jsp</welcome.-file> 
    • B、<welcome-file-list> start.jsp </welcome.-file-list> 
    • C、<welcome-file><welcome-file> start.jsp</welcome-file> </welcome.-file> 
    • D、<welcome-file-list><welcome-file> start.jsp </welcome.-file></welcome-file-list>

    正确答案:D

  • 第17题:

    management has asked bob to post an introductory welcome page when notes users first open the video application in which one of the following places should bob put the welcome message?()

    • A、 in a document named welcome 
    • B、 in the  database about doc 
    • C、 in the  database using doc 
    • D、 in the first page in the database design

    正确答案:B

  • 第18题:

    Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()

    • A、Java code
    • B、Template text
    • C、Scripting code
    • D、Standard action
    • E、Expression language

    正确答案:B,D,E

  • 第19题:

    多选题
    Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()
    A

    Java code

    B

    Template text

    C

    Scripting code

    D

    Standard action

    E

    Expression language


    正确答案: A,D
    解析: 暂无解析

  • 第20题:

    单选题
    欢迎你再到我们船上来。()
    A

    You are welcome to look around our ship..

    B

    You are welcome to have a look our ship.

    C

    You are welcome to come on board our ship again.

    D

    You are welcome to visit our ship.


    正确答案: B
    解析: 暂无解析

  • 第21题:

    单选题
    将当前浏览的标题为“welcome”的页面保存时(采用默认文件名)()
    A

    可以得到一个index.htm页面和index文件夹

    B

    可以得到一个welcome.htm页面和welcome.files文件夹

    C

    可以得到一个index.htm页面和welcome.files文件夹

    D

    可以得到一个welcome.htm页面和index.files文件夹


    正确答案: B
    解析: 暂无解析

  • 第22题:

    单选题
    在J2ee中,myWebApp目录是一个Web应用程序根目录,当在浏览器中输入http://localhost:8080/myWebApp/时,会自动打开该目录下的start.jsp文件。为了达到这个要求,需要在web.xml中添加如下代码()。
    A

    <welcome-file>start.jsp</welcome-file> 

    B

    <welcome-file-list>start.jsp</welcome-file-list> 

    C

    <welcome-list>  <welcome-file>start.jsp</welcome-file> </welcome-list> 

    D

    <welcome-file-list> <welcome-file>start.jsp</welcome-file>   </welcome-file-list>


    正确答案: B
    解析: 暂无解析

  • 第23题:

    单选题
    假定login.getName() 返回类型为java.lang.String ,给定JSP代码: Welcome 以下那个选项与此语句的功能相同?()
    A

     Welocome <% out.print(login.getName());%>         

    B

     Welocome <% Writer.print(login.getName());%> 

    C

     Welocome <% response.out.print(login.getName());%> 

    D

     Welocome <%r esponse.writer.print(login.getName());%> <%r>

     


    正确答案: A
    解析: 暂无解析