在J2EE中,在my.jsp中使用标记扩展,下列选项正确的是()A、%@ taglib URL=”/hello”  prefix=”examples”% B、%@ taglib URI=”/hello”  prefix=”examples”% C、%@ taglib url=”/hello”  prefix=”examples”% D、%@ taglib uri=”/hello”  prefix=”examples”%

题目

在J2EE中,在my.jsp中使用标记扩展,下列选项正确的是()

  • A、<%@ taglib URL=”/hello”  prefix=”examples”%> 
  • B、<%@ taglib URI=”/hello”  prefix=”examples”%> 
  • C、<%@ taglib url=”/hello”  prefix=”examples”%> 
  • D、<%@ taglib uri=”/hello”  prefix=”examples”%>
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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

第2题:

以下选项中,哪一项不是JSP指令()。

A、page

B、import

C、include

D、taglib


参考答案:B

第3题:

在J2EE中,在my.jsp中使用标记扩展,下列选项正确的是()

A.<%@taglibURL=”/hello”prefix=”examples”%>

B.<%@taglibURI=”/hello”prefix=”examples”%>

C.<%@tagliburl=”/hello”prefix=”examples”%>

D.<%@tagliburi=”/hello”prefix=”examples”%>


参考答案:D

第4题:

A JSP page contains a taglib directive whose uri attribute has the value dbtags. Which XML element withinthe web application deployment descriptor defines the associated TLD?()

  • A、<tld><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location></tld>
  • B、<taglib><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location>. </taglib>
  • C、<tld>. <tld-uri>dbtags</tld-uri>. <tld-location>/WEB-INF/tlds/dbtags.tld</tld-location> . </tld>
  • D、<taglib><taglib-uri>dbtags</taglib-uri><taglib-location>/WEB-INF/tlds/dbtags.tld. </taglib-location>. </taglib>

正确答案:D

第5题:

下列选项中,()是正确的表达式。 

  • A、<% String s = “hello world ” ;%>  
  • B、<% = “hello world ” ;%> 
  • C、<% = “hello world ” %>  
  • D、<% ! “hello world ” %>

正确答案:C

第6题:

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

第7题:

AJSPpagecontainsataglibdirectivewhoseuriattributehasthevaluedbtags.WhichXMLelementwithinthewebapplicationdeploymentdescriptordefinestheassociatedTLD?()

A.<tld><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location></tld>

B.<taglib><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location>.</taglib>

C.<tld>.<tld-uri>dbtags</tld-uri>.<tld-location>/WEB-INF/tlds/dbtags.tld</tld-location>.</tld>

D.<taglib><taglib-uri>dbtags</taglib-uri><taglib-location>/WEB-INF/tlds/dbtags.tld.</taglib-location>.</taglib>


参考答案:D

第8题:

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

第9题:

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

第10题:

在linux系统中,要向当前所有登录用户发布消息:Hello!,应使用()命令。

  • A、wall "Hello!"
  • B、write "Hello!"
  • C、talk "Hello!"
  • D、mesg "Hello!"

正确答案:A

更多相关问题