LOT-959 Free Dumps Study Materials
Question 17: Sunil is developing a simple 1 page standard portlet. Only thing that this portlet does is forward control
to different JSP based on the browser, locale,Sunil is developing a simple 1 page standard portlet. Only
thing that this portlet does is forward control to different JSP? based on the browser, locale, markup of the
request. How can Sunil implement this functionality?
A.Use Client Profile information (CC/PP) API to find out the browser related information and develop your
logic that forwards control to different JSPs based on client information
B.Use dispatch() method of Client Profile information API instead of
PortletContext.getRequestDispatcher() method and profile information API will take care of forwarding to
different JSPs based on client information
C.He will have to create hidden inputs in the form and use javascript to submit browser information to the
server side. Then on the server side develop custom logic based on the submitted information for
forwarding control to different JSPs based on the browser.
D.There is no need to do any thing since WPS forwards control to different JSPs based on the client. The
only thing that Sunil needs to do is create standard directory structure defined by WPS and create JSP
files under appropriate directory structure. When you call PortletContext.getRequestDispatcher(), Portal
server will make sure that it picks up correct JSP based on the client information.
Correct Answer:A