iPlanet JSP Tag Extensions
iPlanetTM Application Server Samples

Updated June 12, 2001

The following samples provide an introduction to several ways in which the iPlanet Application Server JSP Tag Extensions can be used in JSP to enable quick access to information stored in database and LDAP-enable directory servers.

See the iPlanet Application Server Developer's Guide for more information on the iPlanet JSP Tag Extensions.

Before exercising these samples, read through the sample applications Getting Started document.

RDBMS Tag Extensions

Note: Access to databases through the iPlanet RDBMS tag extension is currently supported via only the iPlanet Type 2 JDBC drivers.  External or "third party" JDBC drivers are not supported in conjunction with the iPlanet RDBMS tag extension.

1. Setup database table

  • First ensure that the database client libraries are registered with iPlanet.  See the iPlanet Administrator's Guide or the Bank and Pet Store samples for details.
  • Create a database user named "iastags" to own the RDBMS tables.
  • Go to the install_dir/ias/ias-samples/iastags/rdbms/src/schema/ directory.
  • Modify the setup_ora.sh or .bat file and set the iPlanet installation environment variable correctly.
  • Set ORACLE_HOME appropriately for your environment.
  • Execute the setup_ora.sh or .bat file to register the JDBC data source in the application server and to create and populate the database table.  For example:
  • ./setup_ora.sh orcl iastags iastags
    2. Register the sample application
    Execute iasdeploy to deploy the application:
    3.  Exercise the samples:

    a) Go to http://<hostname>/NASApp/iastags-rdbms/paramtag.jsp

    b) Go to http://<hostname>/NASApp/iastags-rdbms/simple.jsp

    If you encounter problems when running the application, review the General Troubleshooting section to learn how to view logs files.

    LDAP JSP Tag Extensions

    1. Define Users in Directory Server 2.  Register the Sample Application
    Execute iasdeploy to deploy the application:
    iasdeploy deployapp iastags-ldap.ear
    3. Modify JSP Files 4.  Exercise the samples:

    a) Authentication Sample

    b) Displaying Directory Server Information If you encounter problems when running the application, review the General Troubleshooting section to learn how to view logs files.

    Copyright (c) 2001 Sun Microsystems, Inc. All rights reserved.