在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,文件路径为C:/Tomcat/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/helloapp/hello


正确答案:C

第2题:

假设在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

第3题:

在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

第4题:

假设在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

第5题:

当在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

第6题:

假设在helloapp应用中有一个hello.jsp,它的文件路径如下:%JA VA_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

第7题:

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

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

正确答案:D

第8题:

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

A.<jsp:includepage=http://localhost:/8080/my.jsp/>

B.<%@includefile=http://localhost:/8080/my.jsp/>

C.<jsp:includefile=http://localhost:/8080/my.jsp/>

D.<%@includepage=http://localhost:/8080/my.jsp/>


参考答案:A, B

第9题:

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


正确答案:错误

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

正确答案:D

更多相关问题