Apache Tomcat Server - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Apache Tomcat Server

Description:

Title: Slide 1 Author: College of Computing Sciences Last modified by: Administrator Created Date: 1/28/2005 7:46:01 PM Document presentation format – PowerPoint PPT presentation

Number of Views:140
Avg rating:3.0/5.0
Slides: 11
Provided by: Collegeo248
Category:

less

Transcript and Presenter's Notes

Title: Apache Tomcat Server


1
Servers Server-side Languages
Apache Tomcat Server installation use
Server-side language
-- use Java Server Pages
Contrast Client-side languages
-- like Javascript
HTML Forms
Queries Sent From Browser To Server
for JSP program
2
Java Server Pages
Contrast with JavaScript
HTML Forms
to identify invoke Java Server Page program on
server
Structure of HTML Forms
-- named variables action
3
Javascript
- executed by browser gives dynamic effects
HTML
- used by browser - to define content layout
versus
Server-side languages like JSP PHP
Java programs JSP run on/executed by server
- At request of client
- Results returned to client in HTML page
4
JavaScript Request-Response
contains JavaScript
CLIENT-SIDE SCRIPT
5
Server-side Program Request-Response
compiles executes code
replaces code with Results
SERVER-SIDE CODE or SCRIPT
Code compiled once
Server treats extensions .jsp .html differently
6
Three Tier Architecture
browser displays page
Three Tier Architecture
7
User enters data.
HTML Forms
Browser sends data To server that sent Form.
Form identifies server program that processes the
data.
Form
Input fields
name
age
Triggers transmission of data to server
Submit button
submit
8
Program on server
Sends data in query-string
lthtmlgtltheadgt lttitlegt HTML Form lt/ title gt lt/
head gt ltbodygt lth1gt Please enter data lt/ h1
gt lt/ body gt lt/ html gt
ltform ACTION "getUserInfo.jsp" Method
"GET" gt lt/formgt
Name ltinput typetext name firstName
size24 gt ltbrgt Major ltinput typetext name
major size24 gt ltbrgt ltinput typesubmit
value"submit" gt
Variable names
Submits request to server
HTML for Form Source Chapter03/example6a.html
9
From Browser TO Server
Query string
Triggered by Form
Data for program
program - on server - requested by HTML Form
http//localhost8080/myapp/chapter03/getUserInfo.
jsp? firstNameaaamajorzzz
WHERE
WHO
WHAT
10
Local Foreign Addresses
server
client
Local Address ppp
Foreign Address - 8080
Local Address - 8080
Incoming TCP
Foreign Address ppp
Write a Comment
User Comments (0)
About PowerShow.com