我对Servlets和Tomcat部署非常陌生。我正在遵循'HeadFirst Servlet和JSP‘一书来学习Servlet。我执行了以下步骤在tomcat上创建和部署servlet。1.创建servlet 2.创建web.xml Chapter1 Servlet Ch1Servlet Chapter1 Servlet /Serv1
但是,http://localhost:8080/会加载正确的页面。
我被这个问题困住了。我知道这是一个很简单的问题,但我在任何地方都找不到答案。请帮我把这个修好。非常感谢,安
发布于 2011-03-05 21:58:40
这是编写servlet的一种非常乏味的方法!获取一个IDE (如面向Java开发人员的Eclipse )并编写servlet。
按照这个目录结构为您的for应用程序。忽略struts-config.xml。

另外,这里有一些很好的链接,可以让您开始使用Eclipse。
http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/index.html
http://www.java-tips.org/java-tutorials/tutorials/introduction-to-java-servlets-with-eclipse.html
http://www.eclipse.org/webtools/community/tutorials/BuildJ2EEWebApp/BuildJ2EEWebApp.html
https://stackoverflow.com/questions/5207020
复制相似问题