Javaweb development of the second JSP + Tomcat First program "Hello World"

Source: Internet
Author: User
Tags tomcat server
Moving a previously written blog "2014-12-10 22:41" The previous blog spoke about the Tomcat environment and started the first "Hello JSP" program.

Server environment set up, we began to write their own website, here simply write a no background program display "Hello JSP" site:

1. Locate the Tomcat installation directory, such as D:\Apache software Foundation\tomcat 6.0\, and go to the \webapps\root directory to find Web-inf and copy it to any place on your computer, such as
2. In this directory, create a new TXT file, enter the Hello JSP, and then rename it to hellojsp.jsp. 3. Then locate the Server.xml in the Conf in the Tomcat installation directory, add the phrase in the location shown, where path represents the virtual path at the time of the visit, and then access the localhost/hellojsp. Docbase represents the directory in which you wrote the page (i.e. the directory where Web-inf and hellojsp.jsp are located), and I wrote the hellojsp in the directory just below D:\Java\hellojsp\ so, after modifying D:\Java\ hellojsp\web-inf\ under Web. XML, as shown in, add the following code:
Restart the tomcat server after saving, open the browser at this time, the address bar input http://localhost/hellojsp/can access your first Hello JSP program.

Javaweb development of the second JSP + Tomcat First program "Hello World"

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.