Eclipse, Lomboz and Tomcat Web Project Settings

zhaozj2021-02-16  86

The previous piece has been installed in Eclispe, Lomoz and Tomcat (that article here: Eclipse 3 Lomboz 3 Tomcat 5 Development Website), now we start a web project, but also a problem. Setting is not right, no debugging, just like the use of Notepad, this is also very critical.

Before you start, pay attention to the Lomboz mentioned, select Lomboz in the new file and menu (see Lomboz), or you can't find New Lomboz J2EE Project to start a Web Project.

Select New Lomboz J2EE Project in the New Lomboz J2EE Project, add your Project name, about the address, I usually do not need to be default, so the program is not mixed with Eclipse. The second step is not to change, directly to the third step Create J2EE Module, press the Add? Button, put your web module name, this is actually the future directory name. Added the prompt that the above will tell you that you must set up a server, go to the Targeted Server panel, select Apache Tomcat 5.x, press the Add button to add him to the list. Press the finish button again. This step is the key! ! ! Otherwise, you can't debug. Right click on the project, select Properties in the pop-up menu, select Java Build Path in the list on the left side of the setup dialog, and three places on the right should be changed:

First select Allow Output Folders for Source Folders (picking him). Change the Web-INF / CLASSES under Project, which is just built. Everyone should know that this is the place where Tomcat is released. Expand the J2SRC directory, select Output Folder, press the EDIT button on the right. Change Output Folder into itself.

?

After such settings, you can debug your bean and JSP files. Even Visual Studio .NET can't step track of ASPX operations, we can write JSP single step. Very interesting development environment.

The next is JSP debugging: Eclipse, Lomboz and Tomcat JSP debugging

Then, the article about Eclipse, Lomboz and Tomcat series is whose origin, transaction, or reference, please indicate.

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

New Post(0)