NonStop Servlets for JSP System Administrator's Guide
Contents
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
v
Examples
Examples
Example 1-1. JSP Code 1-10
Example 2-1. The nsjsp_stop Script 2-7
Example 2-2. Directory and Configuration Overview 2-9
Example 3-1. Server Directive Arglist 3-5
Example 3-2. Structure of iTP_server.xml 3-6
Example 3-3. iTP_server.xml Statements 3-7
Example 3-4. Setting the Context Path 3-7
Example 3-5. Setting the Reloadable Attribute 3-8
Example 3-6. Preloading Servlets 3-9
Example 3-7. Defining a Session Timeout Value 3-9
Example 3-8. Initializing Servlets 3-10
Example 3-9. Application Directory Structure 3-11
Example 3-10. Deploying a Servlet 3-14
Example 3-11. Setting the MIME Type 3-14
Example 3-12. Mapping a URL to the Servlet 3-16
Example 3-13. Java Policy File Entry 3-16
Example 3-14. Policy File Entry for the NSJSP Container 3-17
Example 3-15. Starting NSJSP With a Security Manager 3-17
Example 3-16. Troubleshooting the NSJSP Security Manager 3-18
Example 3-17. Unpacking a WAR File 3-19
Example 3-18. Adding an XML Element to Configure a Realm 3-20
Example 3-19. Default User File Format 3-22
Example 3-20. SQL Commands to Add Users and User Roles 3-23
Example 3-21. SQLCI Commands to Create and Load the JDBCRealm 3-24
Example 3-22. Using the SQL/MP Database to Specify JDBCRealm Attributes 3-26
Example 3-23. LDBM Database Definitions 3-29
Example 3-24. User and Role Definitions 3-30
Example 3-25. Realm Element for the OpenLDAP Directory Server 3-31
Example 3-26. Configuring Single Sign-On Support 3-32
Example 3-27. SQL Script for Configuring Persistent Sessions 3-35
Example 3-28. Adding Extra Partitions to Support Persistent Sessions 3-35
Example 3-29. Adding Partitions Using the SQLCI ALTER TABLE Command 3-36
Example 3-30. Using the NSJSPStandardManager 3-38
Example 3-31. Using the NSJSPPersistentManager 3-43
Example 3-32. SQL Session Data Cleanup Script 3-44
Example 3-33. Using the nsjsp_cleanSessionData Script 3-44
Example 4-1. Use of getAttribute() Method to Obtain Environment Variables 4-6
Example 4-2. Running the nsjsp_manager Program Using OSS 4-8