将某Web应用文件夹“app1”复制到采用默认端口的Tomcat安装目录下的webapps文件夹中,要在本机访问该Web应用,使用的URL地址是()。
A: http://localhost:8080/app1/
B: http://localhost/app1/
C: http://localhost:8081/app1/
D: http://localhost:8080/webapps/
A: http://localhost:8080/app1/
B: http://localhost/app1/
C: http://localhost:8081/app1/
D: http://localhost:8080/webapps/
举一反三
- tomcat中访问helloapp应用的login.html文件时,在浏览器地址栏应写的url为 A: http://localhost:8080/helloapp/; B: http://localhost:8080/helloapp/login; C: http://localhost:8080/login.html; D: http://localhost:8080/helloapp/login.html
- 以下哪种格式是正确的URL( )。 A: http://localhost/8080/news/index.jsp B: http://localhost:8080/news/index.jsp C: http:localhost://8080/news/index.jsp D: http://localhost/8080:news/index.jsp
- 【单选题】假设web运行时根目录url为:http://localhost:8080/jsp2019,下面配置信息表示将ch10包中的RegisterServlet类映射后的url路径为() register ch10.RegisterServlet register /register/reg A. http://localhost:8080/jsp2019/reg.jsp B. http://localhost:8080/jsp2019/reg C. http://localhost:8080/jsp2019/register/reg D. http://localhost:8080/jsp2019/register/reg.jsp
- 你已部署了名为PTS的Web网站,在根目录下有login.jsp的页面。以下( )是访问页面的正确的方法。 A: http://localhost:8080/servlet/login.jsp B: http://localhost:8080/login.jsp C: http://localhost:8080/PTS/servlet/login.jsp D: http://localhost:8080/PTS/login.jsp
- 【单选题】假设在helloapp应用工程中有一个HelloServlet类,它在web.xml文件中的配置如下: HelloServlet org.java.thinker.HelloServlet HelloServlet /hello 那么在浏览器端访问HelloServlet的URL是什么? () A. http://localhost:8080/HelloServlet B. http://localhost:8080/helloapp/HelloServlet C. http://localhost:8080/helloapp/org/javathinker/hello D. http://localhost:8080/helloapp/hello