A. init B. service C. destroy D. run
A. 只有service B. 只有doPost C. 只有doGet D. doPost和service都可以
A. 每个Http请求都会重新创建一个servlet对象(实例) B. 每次请求servlet时,都会调用init方法进行初始化 C. 可以在web.xml 中对servlet进行配置 D. 编写servlet类,必须继承HttpServlet
A. class MyServlet implements Servlet B. class MyServlet extends GenericServlet C. class MyServlet extends HttpServlet D. class MyServlet extends ServletRequest
A. /conf/web.xml B. /WEB-INF/web.xml C. /conf/server.xml D. /META-INF/web.xml
A. resonse.getWriter() B. response.getOutputStream() C. response.getOutputWriter() D. response.getWriter().getOutputStream()
A. session.set(String name,Object value) B. session.setAttribute(String name,Object value) C. session.addAttribute(String name,Object value) D. session.putAttribute(String name,Object value)
A. page指令标签 B. page指令的import属性 C. include指令标签 D. include动作标签
A. <%@page import="java.util.Date"%> B. <%@include file="java.util.Date"%> C. <%@import class="java.util.Date"%> D. <%@include class="java.util.Date"%>
A. 语法错误 B. 3+5 35 8 C. 35 35 8 D. 3+5 3+5 8