Eclipse main plugin Lomboz introduction (4)

xiaoxiao2021-03-06  44

Chapter 4 Creates your first J2EE project

Http://www.objectlearn.com/support/docs/index.jsp creates your first J2EE project.

In this section, you will create your first Java J2EE project.

1. In the main interface of the Eclipse, select "Project" in the new wizard down.

2. Expand "Java" and "Lomboz J2EE WIZARDS" in the directory structure, select "Lomboz J2EE Project", then click "Next".

Enter "Myj2eeproject" in the project name input box, then click "Next". Then appear "Java Settings" page, make sure the SRC (Source) tab specifically indicates that the 'src' folder is being used as the Source directory as the project, and the default output folder is 'bin'.

Then click "Next".

3, click "Web Modules" tab

4. Click the "Add" button to add a new web module, enter the "MyWeb" Module name.

5. Click "Targeted Serverse" tab

6, here you will see a list of server definitions, which have been configured in the previous Lomboz configuration phase.

Each module can correspond to multiple servers, you can choose a server you have defined as the target, then click the "Add" button. You can add multiple servers definitions, but you must determine one of the default servers.

If the hook is selected, "Update ClassPth and Deployment Properties for DEFAULT Server" is selected, and Lomboz will update the appropriate project tool for the default server.

You can add a server with the "Add / Remove" button or change the settings of the default server via the "Make Default" button.

7. Click the "Finish" button, pop up the prompt box Question Project is associated with the Java perspective? Choose

8, in the package resource manager, expand the 'Myj2eeproject' project, and pay attention to the 'MyWeb' folder in the 'Myj2Eeproject' project. You can observe two default JSP files, one is an index.jsp file, responsible for displaying the Welcome page; one is an error.jsp file, responsible for processing the default error page. And you can see the web.xml file, which is responsible for adding a configuration and creation script.

At the same time, two XML files are also included in the web-INF folder, build.xml is an ANT script file used to compile and deploy tasks; targets.xml is the content containing the target application server.

转载请注明原文地址:https://www.9cbs.com/read-79246.html

New Post(0)