First, use Eclipse
1, new Tomcat Project Project
Double-click $ {eclipse_home} / eclipse.exe file, Eclipse will start: The work interface is shown below. The left is the window is the project project already exists.
Create a new Tomcat Project (cannot use the edit JSP plugin function) or open an existing Project. For example, we build a project cinnph2. The steps are as follows:
1. Open the File menu, choose New / Project to see the figure below.
2. After selecting tomcat_project, click Next button, see the figure below:
Give the project a name, don't use Use default, click the Browse button, find a folder on your own hard disk to store the project, I suggest you choose CVS working path $ {cvs_home} / cinnamon / pH2 / Implementation / Coding / WebContent as an engineering path. Then click the Next button to see the figure below:
Click on the content in the Context Name and click the finish button to end the creation project section.
2. Establish Lomboz J2EE Project Project
Operation process:
Menu [new] - [Project] Select [Lomboz J2EE Wizards] - [Lomboz J2EE Project], enter your project name next step, as shown
Next step
Select [Web Modules] Add MODULE as shown
Enter the MODULE name [such as: test]
Select Targeted Servers, select Configured [Apache Tomcat V 4.01 / 4.02], after adding, complete, as shown [interface may be different from the individual interface settings]
The Hint described above is the button of the Press To Open A J2EE Project Outliner, open Lomboz J2EE View, as shown, select the Run Server menu, start Tomcat, enter http: // localhost: 8080 / Test / index.jsp looks. The displayed page is index.jsp.
It is as simple, in fact, Lomboz not only supports JSP, but also supports other J2EE applications such as EJB development, deployment and testing. It can be used with Lomboz Tutorials.
3, manage Tomcat Project Project
It is relatively poor in JSP, you need to set an external editor to edit JSP. It develops a Java class or more simple, I will not explain it. Here I need to mention how the skills you need to debug a Tomcat Project Project. Overall, its debugging is very powerful, and the speed is quite fast.
Connect the project and Tomcat.
1. Select the project node in Package Explorer to open the right mums. As shown below: Select Tomcat Project to select Update Context In Server.xml in the Better menu.
2. Select Add Tomcat Libaries to Project Builed Path equivalent to the Spring menu.
Debugging project:
1. Startup debug: Select Tomcat's Start icon in the toolbar, which will automatically switch to the Debug view. Please select the Debug window.
2, please set breakpoints in the place you need.
Use CVS:
I don't recommend using built-in CVS in Eclipse so you can operate less. Every time you use WinCVS for a while, you will use WinCVS to make version control.
Configure a third party's editor:
An arbitrary third party editor can be specified for different files. Configure UltraEdit as an example of JSP as an example. Open the preference in the Window menu of Eclipse, see the following figure, then select File Associations in Workbench, select the Add button next to File Types, join the * .jsp. Then see the figure below by clicking the Add button next to Assocailted Editors: Join in Utraledit.
Add existing Java source code to project:
1. Select the Project Node in Package Explorer Select Properties from the Right-click menu, as shown below, select Java Build Path
2, click the Add Folder button to pop up the following picture:
3, click Create New Folder to see the figure below: Open the Advanced option, hook the link to folder in the file system, click Browse to find the path to the existing source code.
Special Instructions:
1. You cannot stop Debug through the Tomcat's STOP icon on the toolbar in Eclipse, you need to select Debug's nodes in the debug window, and select Terminate's related menus from the Right-click menu. See below.
2, other skills can access the Eclipse's online help documentation.
3, this manual is only for development projects for web applications with Tomcat.
4, if you don't access http: // localhost: 8080 / login.jsp, you need to manually configure server.xml file: Open $ {tomcat_home} /conf/server.xml file. Found the following:
->
Release the two ends and become the following content to re-debug:
5. If you don't access the servlet in your system, check the $ {tomcat_home} /conf/web.xml file and find the following:
servlet-maping>
->
Release the two ends and turn it to the following.
servlet-maping>
6, other problems can be supported to this email address, XXXXXXXXX @ Jutone.com.