javaweb基础课时3http与servlet

Administration


Documentation


Tomcat Online

href=%us=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&resolution=LATER&resolution=REMIND&resolution=---&bugidtype=include&product=Tomcat+5&cmdtype=doit&order=Importance\Bugs

href=\

href=\

 


Examples

 


Miscellaneous

href=\

 

As you may have guessed by now, this is the default Tomcat home page. It can be found on the local filesystem at:

where \is the root of the Tomcat installation directory. If you're seeing this page, and you don't think you should be, then either you're either a user who has arrived at new installation of Tomcat, or you're an administrator who hasn't got his/her setup quite right. Providing the latter is the case, please refer to the

NOTE: This page is precompiled. If you change it, this page will not change since it was compiled into a servlet at build time.

(See $CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml as to how it was mapped.)

NOTE: For security reasons, using the administration webapp is restricted to users with role \ is restricted to users with role \

Users are defined in $CATALINA_HOME/conf/tomcat-users.xml.

Included with this release are a host of sample Servlets and JSPs (with associated source code), extensive documentation (including the Servlet 2.4 and JSP 2.0 API JavaDoc), and an introductory guide to developing web applications.

Tomcat mai 2e4

ling lists are available at the Tomcat project web site:

Thanks for using Tomcat!

Copyright © 1999-2010 Apache Software Foundation
 

All Rights Reserved

0

与查看http://127.0.0.1:8080/的源代码结果是一致的。

HTTP协议比较简单,都是固定格式的字符串。按照规定格式发送,就会得到相应的反馈。

2.Post方式:

Post /Servlet/ HTTP/1.1 Host: localhost Content-Type: … Content-Length:32

username=aaa&password=111

最后一行是数据提交的方式,通过变量名和变量值的方式来提交,中间用&隔开。 Get方式提交后在URL中就可以看到username=aaa&password=111。

3.服务器端反馈给客户端的内容: HTTP/1.1 200 OK

Server: Apache-Coyote/1.1

Content-Type: text/html;charset=ISO-8859-1 Transfer-Encoding: chunked

Date: Sun, 06 Oct 2013 05:49:42 GMT

联系客服:779662525#qq.com(#替换为@)