001: Build a Javaweb application with bare hands

Source: Internet
Author: User

Without the help of the IDE, we built a javaweb application with bare hands.

Xml:

1 <?XML version= "1.0" encoding= "Iso-8859-1"?>2 <Web-appxmlns= "Http://java.sun.com/xml/ns/javaee"3 Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"4 xsi:schemalocation= "Http://java.sun.com/xml/ns/javaee5 http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd "version= "3.0">6                      7 </Web-app>

INDEX.JSP:

1 <%@ PageContentType= "Text/html;charset=utf-8"%>2 <HTML>3     <Head>4         <title>Build Javaweb applications with bare hands</title>5     </Head>6     <Body>7 Hello World8     </Body>9 </HTML>

Then copy the entire project folder to the Tomcat_home\webapps\ directory and start Tomcat, and the browser input Http://localhost:8080/webDemo get:

001: Build a Javaweb application with bare hands

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.