The Java EE 6 Tutorial
2015-08-29 08:45
417 查看
What Is a Servlet?
A servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed by means of a request-response programming model. Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by web servers. For such applications, Java Servlet technology defines HTTP-specific servlet classes.The
javax.servletand
javax.servlet.httppackages provide interfaces and classes for writing servlets. All servlets must implement the
Servletinterface, which defines lifecycle methods. When implementing a generic service, you can use or extend the
GenericServletclass provided with the Java Servlet API. The
HttpServletclass provides methods, such as
doGetand
doPost, for handling HTTP-specific services.
相关文章推荐
- Java解析XML文件方法之一(DOM)
- 重温java基础
- HPday05--java--Scanner输入非数字处理
- java获得ip地址
- Some projects cannot be imported because they already exist in the workspace
- Using Struts 2 Tags
- Hello World Using Struts 2
- mybits最基本的例子---------实现增删改查
- hibernate、java、数据库对应类型
- 【SSH快速进阶】——struts2调用action的三种方式
- 细说java.util.Timer
- Java IO编程 学习笔记 (其二:简易记事本)
- Java反射机制调用私有方法
- Introduction to Java Programming编程题9.32<检测ISBN>
- Introduction to Java Programming编程题9.31<刽子手游戏>
- Java 反射
- Java集合之WeakHashMap
- Java集合之WeakHashMap
- [leetcode-179]Largest Number(java)
- Java-WeakHashMap源码分析及示例