单项选择题
web程序a中有一个index.html网页文件,现部署在tomcat上的名字是b,以下哪个url可以访问到index网页?()
A.http://localhost:8080/index.html
B.http://localhost:8080/a/index.html
C.http://localhost:8080/b/index.html
D.http://localhost:8080/a/b/index.html
点击查看答案&解析
相关考题
-
单项选择题
在web.xml中下面哪一个标签标识servlet的URL映射?()
A.< servlet-name>
B.< servlet-class>
C.< url-pattern>
D.< url-mapping> -
单项选择题
点击超链接后,自定义servlet重写哪个方法会出现405错误()。
A.public void service(ServletRequest req,ServletResponse resp)
B.public void service(HttpServletRequest req,HttpServletResponse resp)
C.public void doGet(HttpServletRequest req,HttpServletResponse resp)
D.public void doPost(HttpServletRequest req,HttpServletResponse resp) -
单项选择题
自定义servlet类需要()。
A.extends HttpServlet
B.extends GenericServlet
C.implements Servlet
D.以上都可以