How to create a Javaweb project with no tools

Source: Internet
Author: User

The overall steps are:

1: Create a new folder, named after the project name

2: Create a new folder under the new folder Web-inf (note: case) and a file index.jsp;

Index.jsp inside the code:

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >    pageencoding=" UTF-8 "%><meta http-equiv=" Content-type "content=" text/html; Charset=utf-8 "><title>create Java Web not use tools </title> is index page!</body>

3: Create a new two folder in the Web-inf directory classes (Put the compiled. class file) Lib (the main storage jar package); a file, Web.

Now classes and Lib these two folders first empty, can have nothing;

The code for the Web. xml file:

<?xml version= "1.0" encoding= "UTF-8"? ><web-app xmlns= "Http://java.sun.com/xml/ns/javaee" xmlns:xsi= "http ://www.w3.org/2001/XMLSchema-instance "    xsi:schemalocation=" Http://java.sun.com/xml/ns/javaee                      http://java.sun.com/xml/ns/javaee/web-app_3_1.xsd"    version=" 3.1 ">        < welcome-file-list>        <welcome-file>index.jsp</welcome-file>  <!--This place specifies that the entry name will be accessed after this page ( index.jsp)-    </welcome-file-list>    <display-name>web03</display-name></ Web-app>

4: Copy the entire folder to the Tomcat WebApps directory:

5: Start Tomcat

6: Enter the path in the Address bar address: http://localhost:8080/web03/

7: Finally remember to close tomcat:

How to create a javaweb with eclipse see another article: Http://www.cnblogs.com/sanmubird/p/6940522.html creating a simple Web project with Eclipse

How to create a Javaweb project with no tools

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.