As an IDE for Java applications, Eclipse is very convenient to use, but its support for JSP development is not enough. Here I recommend an eclipse plugin to assist in JSP development. This name is lomboz. It not only supports JSP syntax highlighting, but also has Code Assist function, which is comparable to Jbuilder. The following is a brief introduction to the process of developing Jsp using eclipse2.1 combined with Tomcat.
name | installation path | download website |
j2sdk1.4.1_02 | D:j2sdk1.4.1_02 | http://java.sun.com |
eclipse2.1 | D:eclipse2.1 | http://www.eclipse.org/ |
Tomcat 4.0 | E: Tomcat 4.0 | http://java.apache.org/ |
lomboz.21 | D:eclipse2.1plugins | http://www.objectlearn.com/Note |
After downloading each software, install JDK, Tomcat, and eclipse2.1 in order, first ensure that your tomcat and eclipse2.1 can run independently.
Unzip lomboz.21.zip and copy the entire com.objectlearn.jdt.j2ee folder to the plugins of eclipse2.1.
Configure eclipse2.1
1. Start eclipse2.1, enter the menu [window]--->[Preference]--->[Java]--->[Classpath variables] and select [New] to create a path named JDK_TOOLS. Path is the path to your JDK's Tools.jar. .[For example: D:/j2sdk1.4.1_02/lib/tools.jar]
Same as above, the new name is TOMCAT, and the path is the Tomcat installation directory. [For example: E:/Tomcat 4.0] Enter [window] --->[Customize Perspective]--->[Window>Show View] Select Lomboz J2EE View. After saving and exiting, in the toolbar of your eclipse2.1, as shown in the figure, there will be one more button.
2. Enter [window]-[Preference]-[Java]-[new Project], as shown in the figure
Configure lomboz.
Start eclipse2.1, menu [window]-[Preference] and select [Lomboz] as shown below
Set the full path (including files) of tools.jar in your JDK in [JDK Tools.jar] of [LomBoz] [for example: D:j2sdk1.4.1_02libtools.jar], and then modify it accordingly .
Select [Server Definitions] as shown in the figure
Select Apache Tomcat v4.0.1/4.0.2 in [Server types] and set your Tomcat directory. Refer to the above figure for settings. For example, the Application Server Directory is E:/Tomcat 4.0, and the ClassPath Variable name is the one set above. TOMCAT Classpath Variable is E:/Tomcat 4.0. Click the [Apply] button, and then check the [ClassPath] option page. If the setting is correct, it should be as shown in the figure below. If the setting is wrong, Server Libraries will display an error mark.
Operation process
:Menu [new] - [Project], select [Lomboz J2EE Wizards] - [Lomboz J2EE Project], enter your project name in the next step, as shown in the figure
Next
select [Web Modules] to add Module as shown in the figure
Enter the Module name [for example: test]
, select Targeted Servers, select the configured [Apache Tomcat v 4.01/4.02], add it, and complete, as shown in the figure [The interface may vary depending on personal interface settings]
Click the button introduced above with a hint of Press to open a J2EE project Outliner, open Lomboz J2EE View, as shown in the figure, select the Run Server menu, start Tomcat, and enter http://localhost:8080/ in your browser Take a look at test/index.jsp. The page displayed is index.jsp.
It's that simple. In fact, Lomboz not only supports Jsp, but also supports EJB development, deployment and testing and other J2EE applications. You can refer to LOMBOZ Tutorials for use.