在J2ee中,myWebApp目录是一个Web应用程序根目录,当在浏览器中输入http://localhost:8080/myWebApp/时,会自动打开该目录下的start.jsp文件。为了达到这个要求,需要在web.xml中添加如下代码()。
第1题:
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>
第2题:
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/>
第3题:
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>
第4题:
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
第5题:
假设在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
第6题:
A.Web应用的根目录
B.web-inf目录下
C.pictures目录下
D.在web应用根目录下新建一个目录
第7题:
A.Web应用的目录下
B.WEB-INF目录下
C.pictures目录下
D.在web应用根目录下新建一个目录
第8题:
A.一个classes目录,还有一个包含了html、serblet、jsp等文件的目录
B.一个包含公有资源的目录,还有一个似有的目录
C.一个web应用的根目录,和在根目录下的web-info目录
D.一个可以访问任何文件的目录,一个禁止下载其中资源的目录
第9题:
假设在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
第10题:
在J2EE中,一个web应用程序的目录由两部分组成()