You are on page 1of 12

Llett Stave

Senver Sid serip

OTabas

HTTP Proh ex
POORNIMA

tXPERIMENT 2

Frplainthe role HT1P profotof n JEE 2


Mos laLth ue the H1TP mtaco
tolta CommuDLCac

JEE Servey
HTIP debints the[eque that chenk Lon t n t grUer

Ond topenic ho the StruercOh cnd n Ieply


Loch rcgque ohtoin UR Ahich lo o sm wenhhco a
Atb Componeni Or a s[olie oue 3uth a On HTML o r

Image

TFE AVe Lonver HT1P guesfo an 11P Iequtst okeaE


ond deluess bthewh deuelpment il_in anit1?
rea ponie obea Lahith St conUeTs b on HT7P Iopon e
ond Send he elien

Hypr euk hortx tato the doha Com ni Cahon

pro too Uled CormmuniCa fm b ent and


Serurr

TP EP boitdued todelvt dhe elata flem a 9 g e l


rtul HIL Ale th Ch oih olefsunlt por
TLP 20

eofure H1 P bre-
Medto rdyndE
StatifialLInnt Svelen kup bak o col ofhe 7
onnechenl

Page No.a
Lavrb Arpieahon
InlTne Snver
Saver

r bia
POORNIMA

EXPERIME NT 3

letn the
the web rieahn aud ih wxking la
I opplicehnHhe iuolly ared 01 4 femo
Servey an cAh
through he
Saf wor wtb browier . 4 a
ip orpaler
mOm thet Uni wilhte help web bro wiey
elio ES mby Iwtb
uknolugia 2e oTm vOnou3
Ient
bn

irb
alees S uup he
thetudasdra
bxowse Y- Suuh4 Uhome miLreo e

The ath Applicehn


I n 9tntra Uier Stnds a cqut the thrVer
UAIn Llt bn wstr
The eque or ded he appojztial leth plicahn
Strutr
by t wth Strver
13) LAtb aplicahnSrvtY pxom.i tqueleeoptAalion
fhe dalDbarrpmdues ttulE Jequufeol ala
The The aruenkd rulEDSent the kutb tver by the
atth 4pphce.hm Srvtralm fequef
Jto dala
15 IE aponds to dhe U1elllhin the Icquubed poteKeo
dal and provides Hat rtaulE o the LuEA rver

Page No..8
Requtot
etuent Server
Ktoporni qtnaled

Ptopenic
Sen to he
telen

Gfe
yele Servle
Serulek class ooded
2. Serulet InsTance to Created

3. Tnit me thod huo ked. A


L4. Strutee mehod 1 hUO Red
S. dealor method nvoReol

l o ad Strulef closs.
CTeale Servle F Inshonce
Cal the intt method
Cau the Serulett
method REAOY
Cal 4he deo tomy ()
methood.

A
POORNIMA

EXPtRrEN1 14

Lathat da Ou meon by servex sisle proqfamming Explan the SeTvlet

ele 2
Setver side oqranmmiug -Alows deulopers o make uit Sessons

Mahanis m hatallous SerseruEYo sore. Lnto Oh he Luen L e r


Sle and Send differ.ent Ltopenies bord tht in ermatian
the pma.ramho UnS Struer deoliu Leth he qncahm
oP Conlent paqe Lwcb

Quersiug the dalebnie 2 Opttohon) oVET dotobase


3 Acoess arit a hle on Server H Int ot Ih other sI VET
Sulpe IANeb Opplica hom L Piocess Input

Servle- I ultd to reale web nppliuohena leldentserv


Slde and qaneraleo a dynam i
Struleki ued to Creale lAeb Pplhcaim

Serule an APT thok pIDuLde many inler fouro and_classes


intludu loc
I an trkase tha m.ust e mplemenkea pr cieotnq Ony Servlet
Srtulekloss olio lends the _capabilheo of the Servers ond Ito poncs
the Lintoming- reluess
o tbtompDnenEthat de ploued n h e S Ster
t aLeale
E
dyhamit 1atbpqe
HTTP
Request
web brouserH71P neb Servtr Servlet
Dotob
Rtopante Pronron

a
PoORNIMA

EXPERIMENT-1S

twplen the reguest nd to ponse otess wcb oppltahen ustng serv let.

Serlel Requesk Ialerfoce


The serulek Requesk Intiroce uiedotHondle clent feques ateeas
serulet pmuideo he InFarmohan o Serulek tike cent up,
conlent tnath para meler c
fallouinq he n hods ofscrulek Requst Inerfoue ore
Methols Descriphon
publi ink qetlonltntltnoth) Relurnshe length otheiequeat bed in buleo
pablik
Publr Shriug qeltomlenhTypelRelöens the MIMEp o he cqueat body
public Shlug qtPobtol () Relurn he nomc and ersIDD of the equtat

Serule Responic Inkerfore


The Inltrlase defntsaohieck to help a Servlet n Sd1ng a eoponie
o thecienL
fs llawingore the
oloung me thocds oSerlek Responlee Iilerkoe
Methecs Deacriphan
publi old qetBufley Size () Relurns the achaal Buffe s12

publ void flush Buffr ( I fofce the Conlent in the buffr a be


NrHen p the elint
Compuler Server
3 Serond keg-lni)
1 Request (new) CPU
2 Roponot

lo

A
d
EXPERIMENT-16

Explam the
Session hond ling. and event hondling 4LInqstavlet.
SpasL Handling
StsSiDnsimply- meansS a pailular inrual me Sessianhrasking
to main luin lote Ldola) a n uer IE t lto Knouwn
OL Ss`lon monaqement in strvle HtTP pmlacol a leless so
JAte heed n mguntan slate uling SeSSLOnfrakih
me uLtr quesTsto the serverStrver hrat the tcguata he Dt
feq aes ts So we Deeato monlan the slale n uier to ngnize
baricala er
There ate y lechniqnies uted n Sesston frockin
Coolcies 3) URL RumiHg
Hidden7om Geld HTTP Sesion

Event Hondun
Fvtn are halitalls OtuTehie omethingLhangung the slote O n
tuent A ton Some impa tant tasl ak
obieet khaui QJ

he 6 Ceurenie Hhele LVLejphons uth a taunbu alel ond uhcen


n bles hethe dalabote afhne
l9
the pnjeut (reolin dolobasc Lonneebiah ahjett eb

Page No..
WEB
J3P Re
Cuen SERE R
HTML
JSP
ENGINE
P1

Read TSP les


Fequesk
TSP
Tsandafe TSP to Senuleb
ENGINE
lien
Res pente Compile Java Servle Cde

Exewe the qeneroked Stle


EXPE RIMENT 17

Explan t h e TSP
Achibelure
I qMti igh-IruelVit o Ha wrkiug TSP 1SP
axchfrlure 3-Tier DArchibeuu clent
Ialtth Strver and DalabaLe

Skps ar Ts Processiug afe ol folloues


The clhent navigatasto le endiug Llh he isp entan
Cand the brouuser Inilaleaan HITLequtsklo he eh iezuer.
the tompiled uesston IsP xIAb in he web Server
ielurna he leOtherwie he fequeot tonaorded theTs
Ewgine
3 fhe 1P RuQune oods he JSP le Cond ronsfer he TP t Serulef
Thi done Conuerhnq oll he kmalate ex inkb prink Int.
JaP elemenis Lode thia Called brtnlahon
he SP enome Compile he seruleto an exeulable elais hle 4
aruor ded h e seruleE tnqine
5 Thelas1 l o entuled hu the seulekehqune ehich L porb o the
acb Server Oplo on HIML Lle
SLaeb truer orusords theHIML e do the cluent

You might also like