Presentation is loading. Please wait.

Presentation is loading. Please wait.

8. Session and Presentation. 8.1WWW operation HTML/Java WWW server WWW browser HTTP protocol WWW browser HTTP TCP IP HTTP protocol HTML/Java WWW page.

Similar presentations


Presentation on theme: "8. Session and Presentation. 8.1WWW operation HTML/Java WWW server WWW browser HTTP protocol WWW browser HTTP TCP IP HTTP protocol HTML/Java WWW page."— Presentation transcript:

1 8. Session and Presentation

2 8.1WWW operation HTML/Java WWW server WWW browser HTTP protocol WWW browser HTTP TCP IP HTTP protocol HTML/Java WWW page Presentation Session Transport Network Internet

3 8.2WWW Topology Germany Japan UK USA France User Links to other Web servers Sweden Canada Hyper Text Language Hyper Text Language Hyper Text Language Hyper Text Language Hyper Text Language Hyper Text Language Hyper Text Language

4 8.3HTML Fred Bloggs Fred Bloggs Home Page I'm Fred Bloggs. Below is a table of links. General Research CV Papers Published HTML/Java Tutorials Tutorial 1 Tutorial 2 Tutorial 1 Tutorial 2 Tutorial 3 Fred Bloggs Fred Bloggs Home Page I'm Fred Bloggs. Below is a table of links. General Research CV Papers Published HTML/Java Tutorials Tutorial 1 Tutorial 2 Tutorial 1 Tutorial 2 Tutorial 3

5 Server Server processes ASP or PHP tags to produce standard HTML Server-side include Client-side include WWW page with ASP or PHP HTML file HTML file sent with Java Script and/or VBScript WWW browser processes Java Script and/or VB Script WWW browser displays HTML Untitled Document Untitled Document Server 8.4Client-side and server-side includes

6 8.5JavaScript var dat=new Date(), mon=["Jan","Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"]; document.write("Month is "); document.write(dat.getMonth()); document.write(" and the name of the month is "); document.write(mon[dat.getMonth()]); var dat=new Date(), mon=["Jan","Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"]; document.write("Month is "); document.write(dat.getMonth()); document.write(" and the name of the month is "); document.write(mon[dat.getMonth()]); sub myheader_onClick myheader.Style.Color = "BLACK" end sub

7 8.6ASP, PHP and JSP <% String user = (String)session.getAttribute("user"); if ((user == null) || (user.equals(""))){ %> <% String user = (String)session.getAttribute("user"); if ((user == null) || (user.equals(""))){ %> <?php $value=0; //our variable while($value<=10){ print(" $value = ".($value*$value)); print(" \n"); $value=$value+1; } ?> <?php $value=0; //our variable while($value<=10){ print(" $value = ".($value*$value)); print(" \n"); $value=$value+1; } ?> Current time is JSP ASP PHP

8 8.7CGI and XML #!/usr/local/bin/perl print "Content-type: text/html","\n\n"; print STDOUT "\n"; $remote_addr = $ENV{'REMOTE_ADDR'}; print STDOUT " Your IP address is: "; print STDOUT $remote_addr; CGI How many bits are in a nibble: 4 8 16 32 q1 Which unit represents 1024 bytes: B KB MB GB q2 How many bits are in a nibble: 4 8 16 32 q1 Which unit represents 1024 bytes: B KB MB GB q2 XML


Download ppt "8. Session and Presentation. 8.1WWW operation HTML/Java WWW server WWW browser HTTP protocol WWW browser HTTP TCP IP HTTP protocol HTML/Java WWW page."

Similar presentations


Ads by Google