单选题Assume a tag handler extends TagSupport. Which is used within the tag handler to get an attribute “foo” that is in the application scope?()ApageContext.getAttribute(“foo”);BgetPageContext().getAttribute(“foo”);CpageContext.getApplicationScope(“foo”);Dp

题目
单选题
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”);


相似考题