针对GET方式RESTful风格的请求http://localhost:8080/chapter14/user/1,后台方法接收参数的路径映射写法可行的是。
举一反三
- 【单选题】假设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
- 以下哪种格式是正确的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
- 下面选项中,能够正确访问下面代码中方法是() A: http://localhost:8080/chapter12/hello/firstController B: http://localhost:8080/chapter12/first/firstController C: http://localhost:8080/chapter12/first/first D: http://localhost:8080/chapter12/hello/first
- 运行访问javaweb项目的路径可以是() A: http://localhost:8080/myweb/ B: http://localhost:8080/myweb/index.jsp C: http://www.baidu.com/myweb/ D: http://www.taobao.com/myweb/
- 你已部署了名为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