PrepAway - Latest Free Exam Questions & Answers

Category: C2040-423

Exam C2040-423: IBM WebSphere Portal 8.5 Solution Development

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

which statement is true?

This code snippet is part of a portlet descriptor: <portlet> <portlet-name>Portletl</portlet-narne>
<!ā€” […] ā€”> </portlet> <portlet > <portlet-name>Porrtlet2</portlet-name> <iā€” […] ā€”> </portlet>

<filtetr> <filter-name>PortletFiltec</filtec-name>
<filter-class>mycompany,MyPortletFilter</filter-class> <lifecycle>ACTION_PHASE</lifecycle>
</filter> <filte r-mapping> <filter-name>PortletFilter</filter-name>
<portlet-name>Portletl</portlet-name> <portlet-name>Poctlet2</portlet-name> </filte r-mapping>
Assuming that the mycompany.MyPortletFilter class implements the right interfaces, which
statement is true?


Page 2 of 612345...Last »