Develop JSP using Eclipse

xiaoxiao2021-03-06  77

Develop JSP using Eclipse

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

J2SDK

1.4.1

_02

D: / j2sdk

1.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 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 you to modify the configuration 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: / J2SDK

1.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

Set the full path (including files) in the [JDK Tools.jar] of [Lomboz] (including files) [such as: D: / J2SDK "

1.4.1

_02 / lib / Tools.jar], control modification.

Select [Server Definitions] as shown

Select [Server Types] to select Apache Tomcat V

4.0.1

/4.0.2 Set your Tomcat directory, refer to the above picture, such as Application Server Directory as E: / Tomcat 4.0, ClassPath Varible Name is the Tomcat ClassPath Varible set to E: / Tomcat 4.0 points [Apply 】 Button, then view the [ClassPath] option page, if the setting is correct, 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.

Reference

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

New Post(0)