在服务器运行时中添加tomcat服务器将完成此工作:
Project Properties-> Java Build Path-> Add Library -> Select "Server Runtime" from the list-> Next->Select "Apache Tomcat"-> Finish

在服务器运行时中添加tomcat服务器将完成此工作:
Project Properties-> Java Build Path-> Add Library -> Select "Server Runtime" from the list-> Next->Select "Apache Tomcat"-> Finish