Given:<br /> 3.public class MyTagHandler extends TagSupport {<br /> 4.public int doStartTag() {<br /> 5.// insert code here<br /> 6.// return an int<br /> 7.}<br /> 8.// more code here<br /> ...<br /> 18.}<br /> There is a single attribute foo in the session scope.<br /> Which three code fragments,inserted independently atline 5,return the value of the attribute?()
A、Object o = pageContext.getAttribute("foo");
B、Object o = pageContext.findAttribute("foo");
C、Object o = pageContext.getAttribute("foo",PageContext.SESSION_SCOPE);
D、HttpSession s = pageContext.getSession();Object o = s.getAttribute("foo");