题目内容



查看答案
更多问题

XML称为可扩展的标记性语言,格式良好的XML有且只能有【 】个根元素。

Tomcat服务器的默认端口号是【 】

在HTTP的8种请求方式中,最常用的是【 1 】和【 2 】。

protected void doGet(_____1_____ req, HttpServletResponse resp)throws ServletException, IOException {ServletContext context = getServletContext();Integer times = (Integer)____2____ .getAttribute("times");if (times ==__3___ ) {times = new Integer(1);} else {times = new Integer(times.intValue() + 1);}resp.setContentType("text/html;_____4___=utf-8");//得到输出流对象PrintWriter out=___5____.getWriter();out.println("");out.println("页面访问统计");out.println("");out.println("当前页面被访问了");out.println(""+___6____+"次");//设置属性,将times保存到当前的上下文中context.setAttribute("times",times);}

答案查题题库