You need to install the plugin. There is a free eclipse foundation called the web tool platform . It has all the development functionality you need.
You can get Java EE Edition eclipse with a preinstalled preinstallation.
To create and run the first servlet:
- New ... Project ... Dynamic web project.
- Right-click the project ... New servlet.
- Write the code in the
doGet() method. - Finding a server view in the Java EE perspective is usually one of the tabs below.
- Right-click and select the new server.
- Select Tomcat XX, and the wizard will prompt you to find the installation.
- Right-click the server you just created and select "Add and Remove ..." and add the created web project.
- Right-click your servlet and choose Run> Run On Server ...
That should do it for you. You can use ant to create here if that is what you want, but eclipse will actually build and automatically deploy the changes to the server. With Tomcat, you may have to restart it every time and again depending on the change.
William Oct. 15 '08 at 23:54 2008-10-15 23:54
source share