1 download and install tomcat address: http://tomcat.apache.org/download-60.cgi windows32-bit system download: apache-tomcat-6.0.35-windows-x86.zip extract to the specified directory can be, without installation. 2 download and install eclipse address: http://www.eclipse.org/downloads/
Download eclipse-jee-indigo-sr1-win32.zip and unzip it to the specified directory without installation. 3. To download the tomcat plug-in, you can search tomcatpluginv321.zip, download it, decompress it, and put it in the plugins directory of the eclipse installation directory. Start eclipse and you will see the buttons shown.
4. Configure tomcat window --> Preferences --> Tomcat to set the tomcat version and installation directory.
After setting, you can directly start or close the tomcat service in eclipse.
5. Configure the Server runtime environments window --> Preferences --> Server --> Runtime Environments. The configuration is simple. Click the add button and select add. For example
6. Create a Web application
Create a Dynamic Web Project and create an index. jsp file in the WebContent directory of the created Project. As shown in
7. Publish a Web application right-click the project and choose Run As --> Run on Server. Click finish to complete the release.
Click finish to complete the release. After the release, the released project is automatically opened in Eclipse. The whole process of web application publishing through Eclipse and Tomcat is described above.