1, the new MyEclipse work space
2. Select the path of the workspace
3. Build our web Project
4, enter the name of the Web project, we use j2ee1.4,finish must choose No, if you choose Y, MyEclipse will be able to use the jdk1.5 environment.
5, at this time our Web project is basically finished, the following picture, we all detailed introduction of its directory.
3. Configure the server
Even though our web project is finished, we need to deploy them to the server at this point, whether it's HTML or servlet,jsp. The server is also called the Web container, it is a so-called middleware, the Web container implements the Java pretext: servlet. After the Web container is started, it always listens for all requests submitted to the port it is monitoring (default: 8080) and responds to this.
We use Tomcat, of course you can also use the other (the configuration method is basically the same). No matter what server it is, it's the same thing that we need to configure IIS when we publish a Web project for. NET and publish the project.
Below we configure Tomcat:
1. Find window->preferences in the menu bar. Configure Tomcat to select the path after Tomcat decompression.
2. After apply, configure the JDK to add its installation path.
3, at this time our server is configured successfully, when we need to run the project is ready to deploy our project and start, we can use in the browser.
Finally, I wish you a successful configuration!
Building a Java Web project development Environment (i)