Configuration of the JSP development environment in eclipse

Source: Internet
Author: User
Tags apache tomcat

1. Java Environment

Self-Baidu configuration

2. Installation of the WEB server environment:

Web Server chooses the popular Apache tomcat, download it to http://tomcat.apache.org/, recommends using a non-installed compressed version, one thing to note, Apache Tomcat does not support EJB, so if you want to do EJB development, Then don't choose Apache Tomcat.

Unzip the tomcat into the E:/tomcat directory.
The configuration environment variables are as follows:
Tomcat_home = E:/tomcat

3. Installation of IDE Environment:
Eclipse is currently the best IDE development environment, installed by Baidu

4. Install the Tomcatplugin plugin in eclipse:
Download install Sysdeo Tomcat plugin, used to manage Tomcat server, provide breakpoint debugging function, and can automatically establish Tomcat environment, modify its configuration file, is a good Tomcat development plug-in.

Plug - ins:

http://www.eclipsetotale.com/tomcatPlugin/

Installation method:

Unzip the tomcatpluginv31.zip, and copy the folder com.sysdeo.eclipse.tomcat_3.1 the extracted directory to the plugins directory in the Eclipse installation directory, i.e. E:/eclipse/plugins

1. Install JRE:

After you start eclipse, go to window->preferences, select Java->installed JREs,

Click the Add button and the following dialog box appears:

Enter the relevant parameters, correct, click OK, the results as shown in the previous picture;

2, the configuration of Tomcatplugin:

Also in Window->preferences, select the Tomcat tag,

Click the Apply button, then select the Advanced tab,

After selecting the Tomcat installation directory, click the Apply button, then select the JVM settings tag,

Click the Apply button;

3, the Lomboz configuration

Lomboz Download: http://lomboz.ow2.org

Installation method of Lomboz:

(1) Decompression Lomboz-emf-gef-jem-3.1rc2.zip

(2) Copy the folder under the Unzip directory to the Eclipse installation directory.

It is recommended that you download the Lomboz and prerequisites as one package version.

Lomboz configuration is simple, in Window->preferences, select the Lomboz->server definitions label,

Click OK; now that all the configurations are over, let's test the results.

V. Testing

Create a new project for webtest, select File->project->web->dynamic Web Project,

When the project document is completed, a JSP file webtest.jsp is built in the webcontent,

The webtest.jsp code is as follows:

﹤%@ page language= "java" contenttype= "text/html; charset=gb2312 "%>

﹤html>

﹤head>

﹤title>welcome﹤/title>

﹤/head>

﹤body>

﹤center>﹤%= "How are you?" "%>﹤/center>

﹤/body>

﹤/html>

Start Tomcat and see "How are You?" in the browser. "That's it!!

Configuration of the JSP development environment in eclipse

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.