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
答案解析:有
微信扫一扫手机做题