Develop JSP using Eclipse

zhaozj2021-02-12  124

content:

Development environment

Establish a project

Reference

About author

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

1, software

Name Installation Path Download Site

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.1/plugins http://www.objectlearn.com/

note:

· If you use eclipse 2.0, please download 2.1, I have not configured Lomboz many times in 2.0.

· The above is my computer installation path, which is convenient for you to modify the configuration behind.

2, configure the software

Download the software, install JDK, Tomcat, Eclipse2.1, first guarantee that 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]

Also, new Name is Tomcat, Path is the Tomcat installation directory. [Such as: E: / Tomcat 4.0] Enter [Window] ---> [Customize Perspective] ---> [Window> show View] Select Lomboz J2EE VIEW Save Exit After that, in your eclipse2.1 toolbar, as shown in the picture, one button

2. Enter [Window] - [Preference] - [Java] - [New Project], as shown

Configure Lomboz.

Start Eclipse2.1, menu [Window] - [preference] Select [Lomboz] as shown below

In [JDK Tools.jar] in [Lomboz] sets your full path (including files) in your JDK (including file) [such as: D: /J2SDK1.4.1_02/lib/tools.jar], the control modification .

Select [Server Definitions] as shown

Select [Server Types] to select Apache Tomcat V4.0.1 / 4.0.2 Set your Tomcat directory, refer to the above graph setting, such as the Application Server Directory E: / Tomcat 4.0, ClassPath Varible Name is set above Tomcat classpath varible is the E: / Tomcat 4.0 point [Apply] button, then view the [ClassPath] option page, if set correctly, it should be as shown below, if the setting error, Server Libraries displays the 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

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-7084.html

New Post(0)