This chapter introduces Netscape Application Server and key concepts for developing, deploying, and managing web applications.
About Netscape Application Server
Sample Three-Tiered Applications
The Application Model
The Presentation Layer
The Business Logic Layer
The Data Access Layer
How You Create Application Components
Servlet API
Enterprise JavaBeans API
Java Database Connectivity API
mainframe or other legacy systems
relational databases
LDAP servers
client/server applications; for example, Enterprise Resource Planning (ERP) applications such as SAP R/3
The user logs in.
To begin working with the application, the user connects to the web through a browser and requests the URL of the application's first page, the login page.
The server responds.
After typing a user ID and password, the user clicks the Login button. This causes an action request to be sent to the web server, which forwards it to NAS. NAS handles requests by running the appropriate application code.
In this case, the code needed is that which logs in the user. To validate the user's password, the application accesses the database tier, where information about users is stored. For example, this information might be stored in an LDAP server or in a relational database.
The server returns results.
After looking up the user's ID and password in the database, the application can validate the user and send a response back to the client tier. The response is a web page containing the main menu of the application; the page is sent to the user's web browser (assuming the user was validated successfully).
The user continues using the application.
The user might next ask for the current balance in a checking account. NAS handles this request by querying the database, formatting the data into a report, and sending the report back to the user.
presentation
business logic
data and legacy access
presentation logic, which is implemented using Java servlets
presentation layout, which is implemented using JSPs
requests containing input information from the user
objects (servlets) that receive the requests and process the input
streams for communicating back to the user via the browser (using HTTP)
sessions for maintaining state between requests
transactions
security
remote access
threading
naming
resource pooling
persistence
Java Servlet API
JDBC API
added functionality not available through the standard APIs
functionality that optimizes applications for NAS
integration with application components that were designed for earlier versions of NAS
AppLogic objects
data connections
queries and other database commands
dynamic reports
electronic mailboxes
user sessions and session-related data