First Previous Next Last

Portal Guide  

Chapter 11   Using the Custom Web Application

This chapter explains the custom Web application. It contains the following sections:

 
Top of page

About the custom Web application

The custom Web application is an application Web tier that is included as an optional part of the Portal subsystem in the standard Director project template. It is intended to be customized and used as your own application's Web tier. However, you can also use it as an example of how to design your own Web tier.

The custom Web application uses a set of predefined core components that are provided with the Portal subsystem. These core components are also used to construct the PAC and the PMC. Director includes complete source code, descriptors, and graphics for the core components.

Core component

Description

PortalLogin

Interactive component that asks anonymous users for login information and passes it to the Directory subsystem for authentication. The login page includes a link to NewUserComponent for users who are not already registered in the writable realm.

NewUser

Interactive component that asks anonymous users for registration information and:

  • Calls the Directory subsystem to add the user to the writable realm (if enabled)

  • Calls the User subsystem to create a user profile and attributes

MyPages

Interactive component that displays a header allowing an authenticated user to select pages to view. If no user page exists, it provides access to the Portal personalizer.

The core components interact through URL redirects managed by the base servlet. Each URL contains the component data needed to render the appropriate page.

 
Top of page

Starting the custom Web application

Procedure To start at the Portal home page:

Procedure To start at a specific page or component:

The page that actually displays depends on the user session, as explained in How the custom Web application works next.

 
Top of page

How the custom Web application works

When the user opens a new session and attempts to access the custom Web application, the user is designated Anonymous (not yet authenticated).

 
Top of section

Portal home page

If an Anonymous user requests a specific page or component, the base servlet redirects the browser to the Login page.

If an Anonymous user does not request a specific page or component (.../Portal/main, for example), the base servlet redirects the browser to the Portal home page:

Personalizer1

If the user clicks Personalize or myPortal, the Portal home page directs the user to the Login page.

 
Top of section

Login page

The Login page (PortalLogin component) allows an Anonymous user to become authenticated. Only users who already exist in the writable realm can log in. Users who do not already exist in the writable realm can click New User to access the New User page.

LoginComponent

After authentication, the base servlet redirects processing to MyPagesComponent, which returns a Personal page or (if none exists) opens the personalizer (see About the Portal Personalizer).

 
Top of section

New User page

The New User page (NewUser component) allows an Anonymous user to add authentication information to the writable realm and to create a profile containing registration information.

NewUser

If the New User page succeeds, the base servlet redirects the browser to the Login page, where the Anonymous user can become authenticated.

    First Previous Next Last

Portal Guide  

Copyright © 2002, SilverStream Software, LLC, a wholly owned subsidiary of Novell, Inc. All rights reserved.