网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
在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>


参考答案

更多 “ 在J2ee中,myWebApp目录是一个Web应用程序根目录,当在浏览器中输入http://localhost:8080/myWebApp/时,会自动打开该目录下的start.jsp文件。为了达到这个要求,需要在web.xml中添加如下代码()。 A.welcome-filestart.jsp/welcome-fileB.welcome-file-liststart.jsp/welcome-file-listC.welcome-listwelcome-filestart.jsp/welcome-file/welcome-listD.welcome-file-listwelcome-filestart.jsp/welcome-file/welcome-file-list ” 相关考题
考题 在J2EE中,一个web应用程序的目录由两部分组成() A.一个classes目录,还有一个包含了html、serblet、jsp等文件的目录B.一个包含公有资源的目录,还有一个似有的目录C.一个web应用的根目录,和在根目录下的web-info目录D.一个可以访问任何文件的目录,一个禁止下载其中资源的目录

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

考题 在J2EE服务器部署了一个web应用,为了防止客户看到某些资源,应该把这些资源放置到()目录下 A.Web应用的根目录B.web-inf目录下C.pictures目录下D.在web应用根目录下新建一个目录

考题 在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/

考题 在J2EE服务器中部署了一个Web应用,为了防止客户看到某些资源,应该吧这些资源放置到()目录下。 A.Web应用的目录下B.WEB-INF目录下C.pictures目录下D.在web应用根目录下新建一个目录

考题 假设在helloapp应用中有一个hello.jsp,它的文件路径如下: <CATALINA_HOME>/webapps/helloapp/hello/hello.jsp 在web.xml文件中没有对hello.jsp作任何配置,那么浏览器端访问hello.jsp的URL是什么?A.http://localhost:8080/hello.jspB.http://localhost:8080/helloapp.jspC.http://localhost:8080/helloapp/hello/hello.jspD.http://localhost:8080/hello

考题 3、tomcat不修改默认端口的情况下,访问hello这个web应用的login.html文件时,在浏览器地址栏写的url ()A.http://localhost/hell/loginB.http://localhost:8080/hello/login.htmlC.http://hello/login.jspD.http://localhost/hello/login.html

考题 作业要求: 1-在浏览器地址栏输入:http://127.0.0.1:8080/MyWebApp/hello?name=你的名字 2-浏览器显示:hello,你的名字! 作业上交信息: 1-servlet代码 2-web.xml中servlet配置代码

考题 新建一个index.jsp页面(位于test项目WebContent目录下的jsp文件夹),然后将test项目发布到Tomcat中并启动项目,请问在浏览器上输入下列哪个地址可以正常访问index.jsp页面()(在本机上并使用默认端口号)A.http://localhost/test/index.jspB.http://localhost:8080/test/WebContent/index.jspC.http://localhost:8080/test/WebContent/jsp/index.jspD.http://localhost:8080/test /index.jsp