【简答题】Jimmy has been a postman for the last ten years. He loves to talk to his wife in the evenings about the people he delivers to. He tells her about Mrs. Mannes, the little old lady at number 24, who is ...
【简答题】There are different kinds of friends. Many friends will step in your life, but only friends leave footprints . I shall always recall (回忆) the autumn and the girl with the . I know she will always be m...
【单选题】Given the JSP code: and the Classic tag handler code: 5. public int doStartTag() throws JspException { 6. // insert code here 7. // return int 8. } Assume there are no other "foo" attributes in the we...
A.
String x = (String) pageContext.getAttribute("foo")
B.
String x = (String) pageContext.getRequestScope("foo")
C.
It is NOT possible to access the pageContext object from within doStartTag
D.
String x = (String) pageContext.getRequest().getAttribute("foo")
E.
String x = (String) pageContext.getAttribute("foo", PageContext.ANY_SCOPE)
【多选题】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 ses...
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");