【单选题】假设在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
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
举一反三
- 对于名为helloweb的Web应用程序,<;url-pattern>;的定义为/helloServlet/hello/abc.jsp,那么测试页面abc.jsp用的URL为( ) A: http://localhost:8080/helloweb/helloServlet/hello/abc.jsp B: http://localhost:8080/helloweb/abc.jsp C: http://localhost:8080/helloweb/helloServlet/abc.jsp D: http://localhost:8080/helloweb/hello/abc.jsp
- 假设在helloapp应用中有一个HelloServlet类,它在web.xml文件中的配置如下: HelloServlet </servlet-name> org.javathinker.HelloServlet</servlet-class> </servlet> HelloServlet </servlet-name> /hello</url-pattern> </servlet-mapping> 那么在浏览器端访问HelloServlet的URL是
- 假设在helloapp应用中有一个HelloServlet类,它在web.xml文件中的配置如下: <servlet> <servlet-name> HelloServlet </servlet-name> <servlet-class>org.javathinker.HelloServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name> HelloServlet </servlet-name> <url-pattern>/hello</url-pattern> </servlet-mapping> 那么在浏览器端访问HelloServlet的URL是
- 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
- 假设在helloapp应用中有一个HelloServlet类...loServlet的URL是什么? (