The correct web.xml should be like this: XML Version = "1.0" encoding = "ISO-8859-1"> HelloWorld servlet-name> < Servlet-Class> servlet_demo.helloworld servlet-class> servlet> HellowWw servlet-name> servlet_demo.hellowww servlet-coplass> servlet> HelloWorld servlet-name> / helloworld url-pattern> servlet-mapping> HellowWW servlet -Name> / hellowwwww url-pattern> servlet-mapping> web-app> and my web.xml file is this: XML Version = "1.0" encoding = " ISO-8859-1 "> HelloWorld servlet-name> servlet_demo.helloworld servlet-class>
hellowww servlet-name> servlet_demo.hellowww servlet-class> servlet> HelloWorld servlet-name> / HelloWorld url-pattern>
hellowww servlet-name> / hellowwww url-pattern> servlet-maping> web-app> will be good for a while, the result will be hellowww It's good to make HelloWorld and HellowWW for a while. This low-level error toss me for two days. Later I saw the example of Tomcat 5.5, I understood what happened. Lessons: To learn a technology system, you must read it. However, if you feel confused, don't forget to take a look at the example of your system.