17.01.2015 Views

ED-MEDIA 1999 Proceedings Book - Association for the ...

ED-MEDIA 1999 Proceedings Book - Association for the ...

ED-MEDIA 1999 Proceedings Book - Association for the ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

whe<strong>the</strong>r compiled or interpreted. Some Web servers provide libraries and interpreters <strong>for</strong> Java and Visual Basic <strong>for</strong> use by<br />

CGI programs.<br />

While CGI programs can handle basic Web-database connectivity functions, programming requires a steep<br />

learning curve. CGI programming is also subject to such limitations as input data validations and weak security. Recently<br />

various “middleware” products have been developed to minimize <strong>the</strong> CGI programming time and additional features of<br />

Web-database connectivity, including superior security, input data validation, e-mail protocol, etc. Middleware is a<br />

general term <strong>for</strong> any programming that serves to glue toge<strong>the</strong>r or enhance two separate programs. Users now can<br />

create Web-database applications by using a fourth generation language middleware products such as Cold Fusion or<br />

Active Server Pages.<br />

Database-driven Web publishing involves three major components: <strong>the</strong> Web <strong>for</strong>ms, CGI or middleware,<br />

and database system. The mechanisms <strong>for</strong> Web-database interaction are shown schematically in Figure 1. There<br />

are four major stages in this interaction. First, <strong>the</strong> user fills <strong>the</strong> Web <strong>for</strong>m using <strong>the</strong> browser, requesting pertinent<br />

in<strong>for</strong>mation. The browser submits <strong>the</strong> request to <strong>the</strong> Web server. Second, <strong>the</strong> server invokes middleware or CGI<br />

scripts, accessing and querying <strong>the</strong> database. Third, <strong>the</strong> middleware or CGI retrieves or produces a HTML<br />

document. Finally, <strong>the</strong> Web server sends <strong>the</strong> result to <strong>the</strong> browser <strong>for</strong> display. CGI script or middleware makes it<br />

possible <strong>for</strong> <strong>the</strong> operations such as opening and updating appropriate database tables to link <strong>for</strong>m objects to a<br />

database structure specified in <strong>the</strong> database design. The Web server and database server can be hosted in a single<br />

computer or two separate machines connected through <strong>the</strong> Internet.<br />

2.3 Design of a database-driven Web<br />

To design an effective database-driven Web, three major design activities must be per<strong>for</strong>med, including<br />

Web <strong>for</strong>m design, database development and CGI or middleware programming. Web <strong>for</strong>ms are necessary as a user<br />

interface <strong>for</strong> a database-driven Web. The in<strong>for</strong>mation user can send a request to a database by submitting it via<br />

Web <strong>for</strong>m. A relational database is composed of rows (<strong>for</strong> records) and columns (<strong>for</strong> fields) in table <strong>for</strong>mat.<br />

Compared with a flat file structure, database approach has <strong>the</strong> advantages of minimal data redundancy,<br />

in<strong>for</strong>mation sharing, and data consistency. Finally, some programming is required to connect <strong>the</strong> Web <strong>for</strong>ms and<br />

databases. For example, Active Server Pages utilize extensively Visual Basic programming knowledge. Visual<br />

InterDev utilizes more user-friendly graphical interface. Cold Fusion eliminates some of <strong>the</strong> complex CGI coding<br />

by combining standard HTML with a server-side markup language called <strong>the</strong> Cold Fusion Markup Language<br />

(CFML). For example, <strong>the</strong> CFML tag can replace many lines of CGI programming codes. In<br />

addition, Cold Fusion supports such advanced features as security integration, dynamic Java <strong>for</strong>ms, data entry<br />

valuation, e-mail integration, Lightweight Directory Access Protocol (LDAP) support, and advanced SQL<br />

(Structural Query Language).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!