Web Technologies

Jan Newmarch, Yinan Yang

HTML Variations

Browser Variations

Web Applications Modelling

State Information

Design Patterns for Web Applications

Connections Patterns

Pattern 1: Single script


Pattern 2: One script per page



SSI Patterns


Typical page

Pattern 1: HTML in all

Pattern 2: Server-Side Includes in all

Pattern 3: CGI scripts in some

Pattern 4: Nested scripts

CGI Patterns


Pattern 1: Single object

print "<table>"
processing logic
print "<tr> <td> ..."
processing logic
print "<tr> <td> ..."
processing logic
print "<td> ..."
print "</table>"

Pattern 2: Multiple objects

class Banner {
    print() {...}
}

class Menu {
    print() {...}
}

class Content() {
    print() {...}
}

banner = new Banner()
menu = new Menu()
content = new Content();

print "<table> <tr> <td>"
banner.print()
print "<tr> <td>"
menu.print()
print "<td>"
content.print()
print "</table>"

Pattern 3: Template object

class Template {
    Template(banner, menu, content) {...}

    print() {
        print "<table> <tr> <td>"
        banner.print()
        print "<tr> <td>"
        menu.print()
        print "<td>"
        content.print()
        print "</table>"
    }
}

banner = new Banner()
menu = new Menu()
content = new Content()
template = new Template(banner, menu, content)

template.print()

Pattern 4: Parameterized objects

Server Page Pattern

Model-View-Controller Pattern

Database Patterns

Conclusion


Jan Newmarch (http://jan.newmarch.name)
[email protected]
Last modified: Fri Oct 27 11:57:43 EST 2000
Copyright ©Jan Newmarch