Tomcat的安装与测试
-
- 帖子: 60
- 注册时间: 2007-05-28 11:03
-
- 帖子: 21
- 注册时间: 2006-06-18 1:22
5. Enable the Invoker Servlet
The invoker servlet lets you run servlets without first making changes to your Web application's deployment descriptor (i.e., the WEB-INF/web.xml file). Instead, you just drop your servlet into WEB-INF/classes and use the URL http://host/servlet/ServletName (or http://host/webAppName/servlet/ServletName once you start using your own Web applications; see Section 2.11 of the book for details on Web apps). The invoker servlet is extremely convenient when you are learning and even when you are doing your initial development. You almost certainly want to enable it when learning, but you should disable it again before deploying any real applications.
根据以上的一小段话,invoker servlet 还是不开的好,要用servlet 老老实实写web.xml...
The invoker servlet lets you run servlets without first making changes to your Web application's deployment descriptor (i.e., the WEB-INF/web.xml file). Instead, you just drop your servlet into WEB-INF/classes and use the URL http://host/servlet/ServletName (or http://host/webAppName/servlet/ServletName once you start using your own Web applications; see Section 2.11 of the book for details on Web apps). The invoker servlet is extremely convenient when you are learning and even when you are doing your initial development. You almost certainly want to enable it when learning, but you should disable it again before deploying any real applications.
根据以上的一小段话,invoker servlet 还是不开的好,要用servlet 老老实实写web.xml...
-
- 帖子: 44
- 注册时间: 2007-09-08 11:46
- 来自: 杭州