多选题Given: 3.public class MyTagHandler extends TagSupport { 4.public int doStartTag() { 5.// insert code here 6.// return an int 7.} 8.// more code here ... 18.} There is a single attribute foo in the session scope. Which three code fragments,inserted inde
题目
多选题
Given: 3.public class MyTagHandler extends TagSupport { 4.public int doStartTag() { 5.// insert code here 6.// return an int 7.} 8.// more code here ... 18.} There is a single attribute foo in the session scope. Which three code fragments,inserted independently atline 5,return the value of the attribute?()
AObject o = pageContext.getAttribute(foo);
BObject o = pageContext.findAttribute(foo);
CObject o = pageContext.getAttribute(foo,PageContext.SESSION_SCOPE);
DHttpSession s = pageContext.getSession();Object o = s.getAttribute(foo);
相似考题