Develop JSP using Eclipse

xiaoxiao2021-03-06  50

Eclipse as a Java application IDE, which is very convenient, but it is not enough for JSP development support, and it is recommended to assist you to assist JSP development. This name is Lomboz, which not only supports JSP syntax highlighting, and the Code Assist function can be compared with JBuilder. The following is a brief introduction to the process of Eclipse2.1 combined with Tomcat development JSP.

Development environment

software

Name Installation Path Download Website J2SDK1.4.1_02d: /j2sdk1.4.1_02http: //java.sun.comEclipse2.1d: /eclipse2.1http://www.eclipse.org/tomcat 4.0e: / tomcat 4.0http: // Java.apache.org/lomboz.21d:/eclipse2.1/pluginshtp://www.objectLearn.com/ Note:

If you use eclipse2.0, please download 2.1, at 2.0 I try to configure Lomboz many times many times. The above is my computer installation path, which is convenient for the rear configuration to modify the configuration software to download the software. After installing JDK, Tomcat, Eclipse2.1, first guarantee your Tomcat and Eclipse2.1 can run independently. After extracting Lomboz.21.zip, copy the com.objectLearn.jdt.j2ee entire folder to the plugins of Eclipse2.1. Configure Eclipse2.1 1. Start Eclipse2.1, enter the menu [Window] ---> [preference] ---> [java] ---> [classpath variables] Select [New] to create Name to jdk_tools path for your JDK Tools.jar path [Such as: D: /J2SDK1.4.1_02/lib/tools.jar] In the same time, new Name is Tomcat, Path is Tomcat installation directory. [Such as: E: / Tomcat 4.0] Enter [Window] ---> [Customize Perspective】 ---> [Window> show view] Select Lomboz J2EE View Save After your Eclipse2.1 toolbar, as shown in Figure 2. Enter [WINDOW] - [Preference] - [Java] - [New Project], arrange the Lomboz. Start Eclipse2.1, menu [window] - [preference] Select [Lomboz] in [Lomboz] [JDK] Tools.jar】 Set the full path of Tools.jar in your JDK (including files) [such as: D: /J2SDK1.4.1_02/lib/tools.jar], the control modification can be modified. Select [Server Definitions] Select Apache Tomcat V4.0.1 / 4.0.2 to set your Tomcat in [Server Types] to set your Tomcat, such as Application Server Directory E: / Tomcat 4.0, ClassPath Varible Name is the Tomcat ClassPath varised Tomcat ClassPath Varible for the E: / Tomcat 4.0 point [Apply] button, then view the [ClassPath] option page, if the setting is correct, then it should be shown below, if the setting error, Server Libraries will display Error tag.

Establish a project

Operation process:

Menu [new] - [Project] Select [Lomboz J2EE Wizards] - [Lomboz J2EE Project], enter your project name next step, as shown in the 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.

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

New Post(0)