Beginners Classic: How to use Eclipse development JSP

Source: Internet
Author: User
Tags add exit in interface window tomcat apache tomcat
Js| learning Eclipse As a Java application IDE, easy to use, but for JSP development support is not enough, here to recommend an eclipse of the plugins to assist JSP development. This name is called Lomboz, not only support JSP syntax highlighting, but also the code assist function, can be comparable with JBuilder. The following is a brief introduction to eclipse2.1 's process of developing JSP with Tomcat.

Development environment

Software

Name Installation path Download Web 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/


Attention:

If you use eclipse2.0, then please download 2.1, in 2.0 I tried many times did not configure a good lomboz.

The above is my Computer installation path, convenient for everyone to control the configuration of the following changes

Configuring software

Download the software, then install Jdk,tomcat, eclipse2.1, first of all, to ensure that your Tomcat and eclipse2.1 can run independently.

Unzip the Lomboz.21.zip and copy the Com.objectlearn.jdt.j2ee folder to the eclipse2.1 plugins.

Configure eclipse2.1

1, Start eclipse2.1, enter menu "window"---> "preference"---> "Java"---> "Classpath variables" select "New" to establish name as Jdk_tools Path is the route for your JDK's tools.jar. [such as: D:/j2sdk1.4.1_02/lib/tools.jar]

Ditto, new name is Tomcat,path for Tomcat installation directory. [such as: E:/tomcat 4.0] enter "window"---> "Customize Perspective"---> "window>show view" Select Lomboz Java view Save exit in your eclipse2.1 toolbar, one More button

2, enter "window"-"preference"-"Java"-"new Project", such as diagram settings


Configure Lomboz.

Start eclipse2.1, Menu "window"-"preference" select "Lomboz" as shown below



In the "Lomboz" JDK Tools.jar Set your JDK Tools.jar complete path (including file) [such as: D:\j2sdk1.4.1_02\lib\tools.jar], the control can be modified. Select "Server definitions" as shown



Select "Server Types" to select the Apache tomcat v4.0.1/4.0.2 to set your Tomcat directory, as set out in the diagram above, such as application Server directory for E:/tomcat 4.0,classpath varible name for the Tomcat ClassPath varible for the E:/tomcat 4 point "Apply" button, and then view the "ClassPath" option page, if set correctly, It should be shown in the following figure, and if set incorrectly, Server libraries will display an error mark.


Establish engineering

Operation Process:

Menu "New"-"project" select "Lomboz java Wizards"-"Lomboz Java project", next enter your project name, as shown in the picture



Next

Select Web Modules to add the module as shown in the figure


Enter a module name [such as: test]

Select Targeted Servers, select the configured "Apache Tomcat v 4.01/4.02", add, Finish, as shown [the interface may differ from the individual interface settings]



Point above the hint for press to open a Java Project Outliner button, open lomboz Java View, as shown in the picture, select Run Server menu, start Tomcat, in your browser input http://l Ocalhost:8080/test/index.jsp look. The page displayed is index.jsp.


So simple, in fact, Lomboz not only support JSP, but also support the development of EJB, deployment and testing, such as other Java applications. Can be used in reference to Lomboz tutorials.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.