题目内容

LoginServlet是一个Servlet类,代码如下public class LoginServlet extends ___________ {public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {…}public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {…}}在下划线处应填写()

A. Servlet
B. HttpServlet
C. GenericServlet
D. Cookie

查看答案
更多问题

程序中创建了一个Servlet,该Servlet重写了其父类的doGet()和doPost()方法,那么其父类可能是 ()

A. RequestDispatcher
B. HttpServletResponse
C. HttpServletRequest
D. HttpServlet

下面选项中,与web应用具有相同的生命周期的对象是()

A. Servlet
B. ServletConfig
C. GenericServlet
D. ServletContext

下面选项中,用于设置ServletContext的域属性的方法是

A. setAttribute(Stringname,Stringobj)
B. setParameter(Stringname,Objectobj)
C. setAttribute(Stringname,Objectobj)
D. setParameter(Stringname,Objectobj)

Complete the following paragraph with key information from the text.(填写对应序号)Robbie Wilde has been enjoying his life as a(n)1 . He was born with perfect2, but is now completely3in his right ear and can hardly hear in his left. He grew up in a(n)4home environment and started deejaying at age5 . With a strong desire to perfect his skills, he asked a well-known DJ for6. He has been working hard and does not want his skills recognized simply because people have7for his disability. In this way, he sets a good example for other young people in chasing their8.

答案查题题库