Quick Start Guide
How a web application works 223
Here’s an illustration of the process of querying a database and returning
data to the browser:
You can use almost any database with your web application, as long as the
appropriate database driver for it is installed on the server.
Application server
Request
Web browser
<HTML>
<code>
</HTML>
Response
Query
<HTML>
<p>Hi
</HTML>
WEB SERVER
Database
Recordset
Database driver
Step 2 - Web server
finds page and
passes it to
application server.
Step 5 - Driver
executes the query
against the database.
Step 6 - Recordset is
returned to driver
Step 4 - Application
server sends query to
database driver.
Step 7 - Driver
passes recordset to
application server
Step 8 - Application
server inserts data in
page, and then
passes the page to
the web server
Step 1 - Web browser
requests dynamic
page.
Step 3 - Application
server scans page for
instructions.
Step 9 - Web server
sends finished page
to requesting
browser