按照你的SERVLET定义,访问他应该是:
http://localhost:7001/hello

解决方案 »

  1.   

    用http://localhost:7001/test/hello可以访问吗?
    应该是http://localhost:7001/hello
      

  2.   

    我发布的目录名是test
    我的问题实际是我用注册的地址可以访问servlet(http://localhost:7001/test/hello),
    但用默认的servlet发布目录就不能访问(http://localhost:7001/test/servlet/HelloWorld)
      

  3.   

    如果那样的话就改WEB。XML文件
    <servlet-mapping>
      <servlet-name>Hello</servlet-name> 
      <url-pattern>/SERVLET/hello</url-pattern>
     </servlet-mapping>