把编译过的classes文件放到WEB-INF/classes

解决方案 »

  1.   

    <FORM action="/servlet/Hello" method=get>
      <Input Type=text name=number>
      <Input Type=submit value="提交">
    </FORM>
    改成
    <FORM action="/Hello" method=get>
      <Input Type=text name=number>
      <Input Type=submit value="提交">
    </FORM>
    把编译过的Hello.class文件放到WEB-INF/classes
      

  2.   

    还是不行啊,我在jdk目录下找不到servlet.jar文件,servlet.jar文件是从oracle目录下copy过来的,不知道是不是错在这啊,
    Error 404--Not Found 
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.