Tải bản đầy đủ (.ppt) (17 trang)

lecture1

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (221.63 KB, 17 trang )

Server-side
Web Programming
Lecture 1: Course Introduction
and Overview
2
Client-Server Web Architecture

Client browser sends request for page to server

May contain form data and other information

Server sends response page and sends to client

May need to generate response page dynamically

Form parameters

Previous requests (such as items purchased so far)

Information in database
Focus of this course
3
Client-Server Web Architecture
Client
Browser
www.cis.ysu.edu/
~john/Syllabus.htm
Request to
www.cis.ysu.edu
for Syllabus.htm
Server


john public_html Syllabus.htm
port
Response containing Syllabus.htm as a long string
(<html><head><title>CSCI 6962
Syllabus</title></head><body>…)
4
Form Handling

Form data appended to request string
Generates the request:
/><FORM NAME="purchaseform"
METHOD=GET
ACTION= />Quantity: <INPUT TYPE="text" SIZE="8" NAME="quantity" />
<BR /><BR />
<INPUT TYPE="submit" VALUE="SUBMIT">
</FORM>
5
Form Handling
Server must:

Listen on port for requests

Parse request to determine values of parameters

Generate appropriate response page based on
parameter values

Send response page back to client
6
Course Topics


Server-side Web Containers

Java Server Pages

Web Site Architecture

Session Handling

Database Manipulation

Mobile Device Handling

Security

Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×