单项选择题
在Servlet中要输出内容,使用HttpServletResponse的方法()设置内容。
	A.ServletInputStream
	B.ServletContext
	C.HttpServletRequest
	D.setContentType
相关考题
- 
                                    多项选择题
                                    
我们实现的基于HTTP协议的Servlet的服务方法签名正确的有()
A.publicvoiddoGet(ServletRequestreq,ServletResponseres)throwsIOException,ServletException
B.publicvoiddoPost(HttpServletRequestreq,HttpServletResponseres)throwsIOException,ServletException
C.publicvoidservice(HttpServletRequestreq,HttpServletResponseres)throwsIOException,ServletException
D.publicvoidservice(ServletRequestreq,ServletResponseres)throwsIOException,ServletException - 
                                    单项选择题
                                    
基于HTTP协议的Servlet都实现了接口()。
A.javax.servlet.Servlet
B.javax.servlet.GenericServlet
C.javax.servlet.http.HttpServlet - 
                                    单项选择题
                                    
基于HTTP协议的Servlet通常继承javax.servlet.http.HttpServlet,也可以继承()。
A.javax.servlet.Servlet
B.javax.servlet.GenericServlet
C.javax.servlet.http.HttpServlet