PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

A.
The portlet filter will be applied to both portlets and can be used during the action phase.

B.
The portlet filter will be applied to first portlet to render, and can be used during the action
phase.

C.
The portlet filter will be applied to both portlets, but the <f ilter> section should go in the
web.xml instead.

D.
The portlet filter will be applied to the first portlet to render, but the <f ilte r> section should go
in the web.xml instead.


Leave a Reply