试题详情
单项选择题Assume a tag handler extends TagSupport. Which is used within the tag handler to get an attribute “foo” that is in the application scope?()

A、 pageContext.getAttribute(“foo”);

B、 getPageContext().getAttribute(“foo”);

C、 pageContext.getApplicationScope(“foo”);

D、 pageContext.getAttribute(“foo”,pageContext.APPLICATION_SCOPE).getAttribute(“foo”);

E、 getPageContext().getScope(pageContext.APPLICATION_SCOPE).getAttribute(“foo”);

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

热门试题