JSP Runtime Environment--tomcat

Source: Internet
Author: User

Jsp

The full name of the JSP is Java Server Pages, the Chinese name Java Servers page, which is simply a simplified servlet design, it [1] is advocated by Sun Microsystems Company, many companies involved in the establishment of a dynamic Web technology standards. JSP technology is a bit like ASP technology, it is in the traditional Web page HTML (standard Common Markup Language subset) file (*.htm,*.html) inserted Java program segment (scriptlet) and JSP tag (tag), thereby forming a JSP file, suffix named (*.jsp). Web applications developed with JSP are cross-platform and can run on Linux and other operating systems.

Operating Environment

Operating Environment: Eclipse+tomcat

Tomcat

Tomcat server is a free open source Web application server, belongs to the lightweight application server, in small and medium-sized systems and concurrent access users are not widely used, is the first choice to develop and debug JSP programs. For a beginner, it can be thought that when the Apache server is configured on a single machine, it can respond to requests for access to the HTML (one application under the standard Universal Markup Language) page. In fact, Tomcat is an extension of the Apache server, but it runs independently at runtime, so when you run Tomcat, it actually runs separately as a separate process from Apache.

Everyone should know that HTML can be run out of the browser page, and php,jsp these need to parse the server to see the page display content, so need to find a server that can parse the JSP language, I use Tomcat,

Eclipse this I don't say much, learn Java should know very well this software

    1. Download the software: First download the tomcat server, online a large pile, unzip the installation, find a path to install, remember the path
    2. Add Tomcat: Open eclipse,window-->preferences-->server-->runtime environments-->add--> Click to select the version of Tomcat, As with the version you downloaded, add success!
    3. Build the project: Dynamic Web project--> under File-->new-->other-->web It's going to be behind you, and notice that it's always next, Finally need to tick to create the Web. xml file, do not tick the line, you create a content under the file, you do not know or tick it ....
    4. Project is built, the following to see everyone's level play, webcontent This folder is the location of some web operations files, Web-inf is a secure folder, the future items are placed in this folder, external inaccessible, only internal files can be accessed to, You can create a. jsp file under WebContent first
    5. Run Project: Right-click on project run as to display the address on the browser is the LOCALHOST:8080/project name/file name. jsp
Using Eclipse to build a Tomcat web App project detailed steps

JSP Runtime Environment--tomcat

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.