IBM Exam Questions

What method must be modified to include the following statements?

Mary wants to enable cookie support for a portlet she has authored. She has already enabled
two-phase rendering within the portlet.xml. What method must be modified to include the
following statements? Cookie myCookie = new Cookie(“stylekey”, “styleValue “);
myCookie.setPath(request.getContextPath()); myCookie.setMaxAge(1200000);

renderResponse.addProperty(stylekey);

A.
render(RenderRequest renderRequest, RenderResponse renderResponse)

B.
doHeaders(RenderRequest renderRequest, RenderResponse renderResponse)

C.
processAction(RenderRequest renderRequest, RenderResponse renderResponse)

D.
doEdit(RenderRequest renderRequest, RenderResponse renderResponse)