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.
1. Setup database table
2. Register the sample applicationFirst 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
Execute iasdeploy to deploy the application:
iasdeploy deployapp iastags-rdbms.ear
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.
Where <password> is the 8 alphanumeric password specified during installation of iAS.
Use the -p
option to specify a port other than the default port of 389.
Execute iasdeploy to deploy the application:3. Modify JSP Filesiasdeploy deployapp iastags-ldap.ear
a) Authentication Sample
"For login, please specify 'Username' and 'Password' parameters
in the URL! "
http://<hostname>/NASApp/iastags-ldap/auth.jsp?Username=<username>&Password=<password>
"For login, please specify 'Username' and 'Password' parameters
in the URL! "
http://<hostname>/NASApp/iastags-ldap/showuser.jsp?Username=<username>&Password=<password>
Copyright
(c) 2001 Sun Microsystems, Inc. All rights reserved.