Login to Portal Portlet

The Login to Portal portlet illustrates login functionality for a portal desktop.

Concepts Demonstrated by this Sample

The JSP portlet uses a backing file to authenticate users.

Location of Sample Files

This sample is located in the <BEA_HOME>/<WEBLOGIC_HOME>/samples/portal/portalApp/portalApp.work application.

How to Run the Sample

See Viewing the Samples in Portal Samples.

How to Use the Sample in Your Portals

  1. Create a portal application. Make sure you create a Portal Application and add a Portal Web Project to it.
  2. Import or copy the following directories and files into your portal application and portal Web project. You may need to create the appropriate directories in your application:
    Import or copy this to this directory (create if necessary)

    <WEBLOGIC_HOME>/samples/portal/portalApp/
    sampleportal/
    portlets/includes/Login.portlet

    <PORTAL_APP>/<project>/portlets/includes/
    <WEBLOGIC_HOME>/samples/portal/portalApp/
    sampleportal/portlets/login.jsp
    <PORTAL_APP>/<project>/portlets/
    <WEBLOGIC_HOME>/samples/portal/portalApp/
    sampleportal/WEB-INF/src/examples/login/LoginBacking.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/
  3. Open your portal file and navigate the page where you want the portlet to appear.
  4. In the Data Palette window, drag the Login to Portal portlet onto a placeholder on the page.
  5. In the Property Editor window, set any relevant properties.
  6. Save the portal file.
  7. View your portal with the WebLogic Test Browser or with your default browser.

Related Topics

Creating a Portal File

Portal Samples