欢迎来到计算机考试题库网 考试题库官网
全部科目 > Java认证考试 > SCWCD(310-083)

多项选择题

A developer wants to make a name attribute available to all servlets associated with a particular user,across multiple requests from that user, from the same browser instance.
Which two provide this capability from within a tag handler?()

    A.pageContext.setAttribute("name", theValue)
    B.pageContext.setAttribute("name", getSession())
    C.pageContext.getRequest().setAttribute("name", theValue)
    D.pageContext.getSession().setAttribute("name", theValue)
    E.pageContext.setAttribute("name", theValue,PageContext.PAGE_SCOPE)
    F.pageContext.setAttribute("name", theValue,PageContext.SESSION_SCOPE)

点击查看答案

相关考题