Exit 1Z0-858 Java Enterprise Edition 5 Web Component Developer Certified Professional
Question 4 of 5
0% complete
Q4 Multiple choice

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? (Choose two.)

Select all that apply.

  • 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);