servlet的doPost 和doGet和web文件结构

doPost和doGet分别由 tomcat自己来决定调用post 还是get 方式查询

get:url有少量的参数信息,一般用到查询那里 (像百度。。

post一般用来提交大文件数据(二进制数据

doPost和doGet都有request和response参数,通过设置reponse可以控制输出的内容


web-inf: tomcat  会隐藏给文件夹下的所有文件和文件夹,保护他们不能通过浏览器直接访问

web-inf/web.xml:web最主要的配置文件

web-inf/classes:class类文件,包括servlet类

web-inf/lib:jar文件

 

posted on 2016-12-25 17:41  Kooing  阅读(220)  评论(0编辑  收藏  举报

导航