什么情况下调用doGet()和doPost()?

什么情况下调用doGet()和doPost()?


相关考题:

在J2EE中,对于HttpServlet类的描述,正确的是()。 A.我们自己编写的Servlet继承了HttpServlet类,一般只需覆盖doPost或者doGet方法,不必覆盖service()方法。因为一个service()方法是空的B.HttpServlet类扩展了GenericServlet类,实现了GenericServlet类的抽象方法service()C.HttpServlet类有两个service()方法D.我们自己编写的Servlet继承了HttpServlet类,一般只需覆盖doPost或者doGet方法,不必覆盖service()方法。因为一个service()方法会调用doPost或者doGet方法

下面哪项不是Servlet处理客户请求的方法() A、doPost()B、doGet()C、service()D、destroy()

3 doGet() 和 doPost() 的区别?

doGet() 和 doPost() 方法分别处理客户端 GET 和 POST 方法发送的请求。

不是servlet中使用的方法()?A.doGet()B.doPost()C.service()D.close()

Servlet中的两个处理请求的方法是doGet()、doPost()。

在编写Servlet时,需要继承_________类,在Servlet中声明doGet()和doPost()需要 HttpRequest 和 HttpResponse 类型的两个参数。

在编写Servlet时,需要继承HttpServlet类,在Servlet中声明doGet()和doPost(),需要HttpRequest和__________类型的两个参数。

31、在Servlet中doGet 方法和 doPost 方法中的两个参数是什么?A.HttpServletRequestB.HttpFormActionC.HttpFormReplyD.HttpServletResponse