This login portlet directs the user to a "default" desktop—the first desktop to which the user is entitled—and returns the user to that desktop when the user logs out.
The JSP portlet uses a backing file to authenticate users and direct them to the default desktop.
This sample is located in the <BEA_HOME>/<WEBLOGIC_HOME>/samples/portal/portalApp/portalApp.work application.
While you can run the portlet in the development environment, the full functionality of this portlet is visible only in streaming mode where multiple desktops and visitor entitlement rules exist. For more information, see Single File vs. Streamed Rendering.
To run the portlet in the development environment, see Viewing the Samples in Portal Samples.
To run the portlet in streaming mode, add the portlet to a page in sample.portal, then use the WebLogic Administration Portal to create a new desktop that uses sample.portal as a template. On the Desktop Properties page for the new desktop, click View Desktop to view the portlet.
Import or copy this | to this directory (create if necessary) |
<WEBLOGIC_HOME>/samples/portal/portalApp/ |
<PORTAL_APP>/<project>/portlets/login/ |
<WEBLOGIC_HOME>/samples/portal/portalApp/ sampleportal/portlets/login/director.jsp |
<PORTAL_APP>/<project>/portlets/login/ |
<WEBLOGIC_HOME>/samples/portal/portalApp/ sampleportal/WEB-INF/src/examples/login/DirectorBacking.java |
<PORTAL_APP>/<project>/ WEB-INF/src/examples/login/ |
<WEBLOGIC_HOME>/samples/portal/portalApp/ sampleportal/WEB-INF/src/examples/login/DirectorUtil.java |
<PORTAL_APP>/<project>/ WEB-INF/src/examples/login/ |
<WEBLOGIC_HOME>/samples/portal/portalApp/ sampleportal/WEB-INF/lib/yahoo_servlet.jar |
<PORTAL_APP>/<project>/ WEB-INF/lib/ |