试题详情
单项选择题 Which retrieves the value associated with “foo” from within an HttpServlet?()

A、 String value = getServletConfig( ).getParameter(“foo”);

B、 String value = getServletContext( ).getAttribute(“foo”);

C、 Object value = getServletContext( ).getInitParameter(“foo”);

D、 String value = getServletContext( ).getInitParameter(“foo”)

  • D
  • 关注下方微信公众号,在线模考后查看

热门试题