Use eclipse to develop JSP

Source: Internet
Author: User
Tags apache tomcat

UseEclipseDevelopmentJSP

Eclipse is a Java application IDE, which is very convenient to use, but does not provide enough support for JSP development. Here we recommend an eclipse plugins to assist JSP development. This name is lomboz. It not only supports JSP syntax highlighting, but also supports code assist, which is comparable to JBuilder. The following describes how eclipse2.1 works with Tomcat to develop JSP.

Development Environment

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

  1. Note:
    • If you use eclipse2.0, please download 2.1. In 2.0, I tried not to configure lomboz many times ..
    • The above is the installation path of my computer, so that you can easily modify the following configuration
  2. Configuration Software

Download the software, install JDK, tomcat, and eclipse2.1 in sequence, and ensure that your Tomcat and eclipse2.1 can run independently.

Decompress lomboz.21.zip and copy the entire com. objectlearn. jdt. J2EE folder to eclipins of eclipse2.1.

Configure eclipse2.1

1. start eclipse2.1 and choose [Window] ---> [preference] ---> [Java] ---> [classpath variables] and select [new] To Set Name To jdk_tools path as your JDK tools. jar path. [Example: D:/j2sdk 1.4.1 _ 02/lib/tools. jar]

Same as above, the new name is tomcat, and the path is the tomcat installation directory. [E: /Tomcat 4.0] Go to [Window] ---> [customize perspective] ---> [WINDOW> show view] and select lomboz J2EE view. Save and exit the view and go to the toolbar of eclipse2.1, one more button


2. Choose WINDOW> preference> JAVA> new project and set

Configure lomboz.

Start eclipse2.1. Choose WINDOW> preference and choose lomboz from the menu, as shown in figure

In [lomboz] [JDK tools. jar], set the full path (including files) of tools. jar in your JDK [such as: D:/j2sdk 1.4.1 _ 02/lib/tools. jar], and modify it accordingly.

Select Server Definitions]

Select Apache Tomcat V in server types. 4.0.1 /4.0.2 set the Tomcat directory. For example, Set Application Server Directory to E:/Tomcat 4.0 and classpath Varible name to Tomcat classpath varble set to E: /Tomcat 4.0 click the Apply button, and then view the classpath option page. If it is set correctly, it should be shown in. If it is set incorrectly, server libraries will display an error mark.

Create a project

Procedure:

Choose lomboz J2EE wizards from the menu [new]-[project]-[lomboz J2EE project], and enter your project name in the next step,

Next step

Select modules to add a module

Enter the module name, for example, test.

Select targeted servers and select the configured [Apache Tomcat v 4.01/4.02]. After the configuration is added, the [interface may be different from the personal interface settings]

Click the hint described above to press to open a J2EE project outliner, open lomboz J2EE view, select the run server menu, start Tomcat, and enter HTTP in your browser: // localhost: 8080/test/index. JSP. The displayed page is index. jsp.

In fact, lomboz not only supports JSP, but also supports EJB development, deployment, testing, and other J2EE applications. Refer to lomboz tutorials.

References

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.