
Dynamic Web Document
Technologies, (CGI, ASP, JSP, PHP,
ColdFusion)
Chapter 36
Types of Web Documents
•Static
–Server had flat file with HTML.
–Browser displays HTML.
•Dynamic
–Server runs a program to generate HTML on the fly.
–Browser displays HTML.
•Active
–Server sends code to the browser imbedded in
HTML.
–Browser executes code locally to produce an
interactive display.
Static Web Document
•Advantages
–Simplicity
–Reliability
–Performance
–Browser can display a
static page rapidly.
–Local machine can cache
the document to speed
future requests.
•Disadvantages
–Inflexibility
–The document must be
revised by hand.
–Not useful for reporting
information that changes
frequently.
Dynamic Web Document
•Advantages
–Can be used to report
current information:
•Stock prices
•Weather conditions
•Ticket availability
–Responsibility for the
information is placed on
the server.
–To the browser, it looks
just like a static page.
•Disadvantages
–Increased cost of
producing a web page
because code must reside
on the server.
–More testing is required.
–Faster server is needed.
–Still cannot display
animated information on
the browser.
–Not a good choice for
displaying clock
synchronized to NIST.
–Longer to download page.
Active Web Document
•Advantages
–Browser display can have
animation including
quickly changing data.
•Disadvantages
–Additional cost of creating
and running active
documents.
–Security risk because the
document can export as
well as import data.
–Sophisticated browser
software is required.
–Testing is difficult
because the code must run
on an arbitrary computer.
Implementation of Dynamic Documents
•The server must be capable of executing a
separate application that creates a document.
The server captures the output of the program
and sends it to the browser (HTML).
•Such a separate application program must be
written for each dynamic document (page).
•The server must know which URL’s correspond
to dynamic documents and which do not.