在J2EE中,对于以下的include指令和include动作,书写正确的是() A、<jsp:include page=http://localhost:/8080/my.jsp/> B、<%@ include file=http://localhost:/8080/my.jsp/>C、<jsp:include file=http://localhost:/8080/my.jsp/> D、<%@ include page=http://localhost:/8080/my.jsp/>

题目

在J2EE中,对于以下的include指令和include动作,书写正确的是() 

  • A、<jsp:include page=http://localhost:/8080/my.jsp/> 
  • B、<%@ include file=http://localhost:/8080/my.jsp/>
  • C、<jsp:include file=http://localhost:/8080/my.jsp/> 
  • D、<%@ include page=http://localhost:/8080/my.jsp/>

相似考题
更多“在J2EE中,对于以下的include指令和include动作,书写正确的是() A、jsp:include page=http://localhost:/8080/my.jsp/ B、%@ include file=http://localhost:/8080/my.jsp/C、jsp:include file=http://localhost:/8080/my.jsp/ D、%@ include page=http://localhost:/8080/my.jsp/”相关问题
  • 第1题:

    假设在helloapp应用中有一个hello.jsp,它的文件路径如下:%JAVA_HOME%/webapps/helloapp/hello/hello.jsp,那么在浏览器端访问hello.jsp的URL为()。

    A、http://localhost:8080/hello.jsp

    B、http://localhost:8080/helloapp/hello.jsp

    C、http://localhost:8080/helloapp/hello/hello.jsp

    D、http://localhost:8080/webapps/helloapp/hello/dello.jsp


    参考答案:C

  • 第2题:

    当在JSP文件中要使用到Vector对象时,应在JSP文件中加入以下哪个语句?()

    • A、〈jsp:include file=”java.util.*” /〉
    • B、〈jsp:include page=”java.util.*” /〉
    • C、〈%@ page import=”java.util.*” %〉
    • D、〈%@ page include=”java.util.*” %〉

    正确答案:C

  • 第3题:

    假设在helloapp应用中有一个hello.jsp,它的文件路径如下:TOMCAT_HOME%/webapps/helloapp/hello/hello.jsp那么在浏览器端访问hello.jsp的URL是什么?()

    • A、http://localhost:8080/hello.jsp
    • B、http://localhost:8080/helloapp/hello.jsp
    • C、http://localhost:8080/helloapp/hello/hello.jsp

    正确答案: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题:

    在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

  • 第6题:

    Which JSP standard action can be used to import content from a resource called foo.jsp?()

    • A、<jsp:import file=’foo.jsp’ />
    • B、<jsp:import page=’foo.jsp’ />
    • C、<jsp:include page=’foo.jsp’ />
    • D、<jsp:include file=’foo.jsp’ />

    正确答案:C

  • 第7题:

    ()可在JSP页面出现该指令的位置处,静态插入一个文件。

    • A、page指令标签
    • B、page指令的import属性
    • C、include指令标签
    • D、include动作标签

    正确答案:C

  • 第8题:

    单选题
    当在JSP文件中要使用到Vector对象时,应在JSP文件中加入以下哪个语句?()
    A

    〈jsp:include file=”java.util.*” /〉

    B

    〈jsp:include page=”java.util.*” /〉

    C

    〈%@ page import=”java.util.*” %〉

    D

    〈%@ page include=”java.util.*” %〉


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

  • 第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-file><welcome-file> start.jsp</welcome-file> </welcome.-file> 

    D

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


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

  • 第10题:

    单选题
    下列语句正确的有()
    A

    <%@ include file=”head.jsp”%> 

    B

    <% String url=”head.jsp”;%><%@ include file=”url”%> 

    C

    <%@ include file=”head.jsp”?name=”lovo”%> 

    D

    <%String companyName=”lovo”;%>%@include file”head.jsp”?name=‟companyName”% 


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

  • 第11题:

    单选题
    在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
    解析: 暂无解析

  • 第12题:

    单选题
    假设在helloapp应用中有一个hello.jsp,它的文件路径如下:TOMCAT_HOME%/webapps/helloapp/hello/hello.jsp那么在浏览器端访问hello.jsp的URL是什么?()
    A

    http://localhost:8080/hello.jsp

    B

    http://localhost:8080/helloapp/hello.jsp

    C

    http://localhost:8080/helloapp/hello/hello.jsp


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

  • 第13题:

    在当前页面中包含a.htm的正确语句是() 

    • A、 <%@ include=”a.htm”%>
    • B、 <jsp:include file=”a.htm”/> 
    • C、 <%@ include page=”a.htm”%> 
    • D、 <%@ include file=”a.htm”%> 

    正确答案:D

  • 第14题:

    JSP中包括2种指令:page指令和include指令。


    正确答案:错误

  • 第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题:

    下列语句正确的有()

    • A、<%@ include file=”head.jsp”%> 
    • B、<% String url=”head.jsp”;%><%@ include file=”url”%> 
    • C、<%@ include file=”head.jsp”?name=”lovo”%> 
    • D、<%String companyName=”lovo”;%>%@include file”head.jsp”?name=‟companyName”% 

    正确答案:B

  • 第17题:

    Every page of your web site must include a common set of navigation menus at the top of the page. Thismenu is static HTML and changes frequently,so you have decided to use JSP’s static import mechanism. Which JSP code snippet accomplishes this goal?()

    • A、<%@ import file=’/common/menu.html’ %>
    • B、<%@ page import=’/common/menu.html’ %>
    • C、<%@ import page=’/common/menu.html’ %>
    • D、<%@ include file=’/common/menu.html’ %>
    • E、<%@ page include=’/common/menu.html’ %>

    正确答案:D

  • 第18题:

    AMS客户端下载到PC上,路径正确的是

    • A、~http://ams_ip:8080/ams-client
    • B、http://localhost:8080/ams_download
    • C、http://ams_ip:8080/ams_download
    • D、http://localhost:8080/ams-client

    正确答案:A

  • 第19题:

    JSP的编译指令标记通常是指()。

    • A、Page指令、Include指令和Taglib指令
    • B、Page指令、Include指令和Plugin指令
    • C、Forward指令、Include指令和Taglib指令
    • D、Page指令、Param指令和Taglib指令

    正确答案:A

  • 第20题:

    单选题
    在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
    解析: 暂无解析

  • 第21题:

    单选题
    在当前页面中包含a.htm的正确语句是()
    A

     <%@ include=”a.htm”%>

    B

     <jsp:include file=”a.htm”/> 

    C

     <%@ include page=”a.htm”%> 

    D

     <%@ include file=”a.htm”%> 


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

  • 第22题:

    单选题
    Which JSP standard action can be used to import content from a resource called foo.jsp?()
    A

    <jsp:import file=’foo.jsp’ />

    B

    <jsp:import page=’foo.jsp’ />

    C

    <jsp:include page=’foo.jsp’ />

    D

    <jsp:include file=’foo.jsp’ />


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

  • 第23题:

    多选题
    在J2EE中,对于以下的include指令和include动作,书写正确的是()
    A

    <jsp:include page=http://localhost:/8080/my.jsp/>

    B

    <%@ include file=http://localhost:/8080/my.jsp/>

    C

    <jsp:include file=http://localhost:/8080/my.jsp/>

    D

    <%@ include page=http://localhost:/8080/my.jsp/>


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