One, HTTP protocol base HTTP (hypertext Transfer Protocol, Hypertext Transfer Protocol) HTTP is a transport protocol that sends data in clear text to transmit hypertext from a WWW server to a local browser. The HTTP protocol is a high-level protocol based on TCP/IP. Now widely used version http/1.1 get/latest.html http/1.1
Host:www.foo.com
Content-type:text/html
...
{Blank line}
Post/servlet/serv http/1.1
Host:www.foo.com
content-type:application/x-www-form-urlencoded
Content-length:32
Username=billgates&password=hehe
http/1.1200 OK
Date:fri,31 DEC 2003 10:23:34 GMT
Content-type:text/html
content-length:280
......
- Web-inf
- Xml
- The Web app's configuration file
- Lib
- The library file used by the Web App
- Classes
- Store the compiled servlet
- Meta-inf
- Contextual information to store the Web app, in line with the Java EE standard
2.WEB application can be placed directly under the WebApp, can also be specified through the configuration file to other directories
- <context path= "/virtual path name" docbase= "directory Location" debug= "0" reloadable= "true"/>
HTTP protocol basics and the concept of Web application