JSP Complete Notes (Natraz).pdf
-
Upload
sunil-soni -
Category
Documents
-
view
327 -
download
60
Transcript of JSP Complete Notes (Natraz).pdf
JavaEra.com A Perfect Place for All Java Resources
Core Java | Servlet | JSP | JDBC | Struts | Hibernate | Spring
Java Projects | FAQ’s | Interview Questions | Sample Programs
Certification Stuff | eBooks | Interview Tips | Forums | Java Discussions
For More Java Stuff Visit
www.JavaEra.com
A Perfect Place for All Java Resources
JSP (Natraj Notes)
www.JavaEra.com
J5 P (aro.t've.r R.6e5
---+ N6 OfPr)CotJon iS Ctsl1g6l<tn o? ocgveSrr-tr ce i
Fmgvawi6 Aeft1"ctllng axlpage5 "
'-'z -fhe ux-b oppticce\dr) i.e. hosied dn ihe iorcrner nlu, ho-oing f)orcrn rnme f)i).eis ca r r ed hldr6 i re
-> To tlenloQ ufli it:gtt te prugYarns oa need crx'b rech no tog ies ' Thers a16 ? ig1^es
uleb iechho)ogies .
[D s",u. - ",4" ,,PSrecholqc 3-
-> ( req,ui ,. a ftt develo1 Servet -side L'xlresosr ce
Eji- S."u'.*, Js9' AsP"n€l-' AsP' PFf c'od etL' ' '
^ p\e Lu.t<s iD
Sovcl - S;cle to<,b res&rte PYuS\6rn)
E$ lservl* prq I coroP ', isP p"g I cort'e ,, asP'r€t
61;gni - Side tddrechnologiej :-
L,rYWr"gs'-) Poltr,ired lo cierl.'loP c-li'rlJ 6'de
vnD$'I):oo)
"1
NorE.-
nvrlrorns )
Sewe't{,
Prg.' ')
p3'' \-tml , javasctipr' v[5cr;pb' Asax a't ue" "
&['.p9e^ toindocofcrienr) Pt"fn rhe
N'rE'- cricrLt '* *":"':^::i.^,t[."--r' n exeuJ,\ct^ .
rcebo-pplia&fidn o? uILb&'Not I Dewe'r 7
E$'; bt-t 1-aq, java grlPt code/ \tbscdtPt c,xle and €re '
-a=
NfiE:: Degde tarrrl,u cocbresource P'ruqram i9 c\te#-6td e Uti k:uett 'siae
bosed oa the place cohe.,e it €xeut<s not koled cmth€ plaae ucherrt ic
Tes)des.
re/rr
Arr brar:ser t, indcxls s-a{fre-fs a clicn-t -6ide tahnotogiq . so , @e caD cloose
oat C\ient -Sr"de technolggt LDh) lp c_lelr-lop;ng eY6a{4>t i(ariu{., cbo<_.,Se Serur,r-_s;de
fedonologies [ased on $e c1rbserue,x *&t gday phnninq to crse
E3:- V0lute 66 14P,q &ritb java baled
Selvref / jsP wrh66 1*;.t d,Lgbp
NUIe urrt'in3 Lrirh nt.'{osoet
Ge Cisg, 6sp. ne-h ta-hnologiex to
&rver - Side tcchno lo€ies '.-
. Selv€x S I i \. e tornccf , rrr.{,: \og tg, cro d ere...
Bewen -sJde PrD 3'rc{ms
Serven s \iEe I15 l f.*.' o< fnfurmo6cm . -*u* ) _,,&vetoPe SerVc'{ 6ide Vq3,*.
\-,'
use
PN5
Lrsr of
$err,1€,b5+
Jsp
oJP
->osP, nej- ----+
PH? #f6;P P6i5n
-=+36J5
I Prom 6an m irro sgsrc"^,S fga.re cc"re )
Ro- 6trr', ro5 ( 0Yacr€ cotP ).&om l'l;crosoFt
ftom Hic'oso Fr
Pto- &frc.che
P'om Ad&e
ffn rn JVer<c"+ e
Sgsrcrn has Siuc'rt
Ednd%x ?
a.' Nht
Lt5
an
&n mlcro
Seovc,r Side
J6P t<*nolo5, et,.'rhrxtgh rht-6 flor
SeTvtrus
rhe iniriol dcr'Uj O? SeNl€1S prqrc'rr'e/rs drdrot \ike &rvlg1.g L*tc'-r<
tl-X cornf{rYeA €ctvlerg tmt"c.rns @lrb the tttfl k'setl lfWamhly o? \-'
Asp, eue'nrbutt3h Sewters is hcon2 *t4<r{ &*"*a 6'rng"r"edto Mf' \'-.,
-?bsotve *us prob\c"o Eonms hs ve'teoseJ lne ta-1 kse Jsf ;erhnol'ogJ r-'
ds &Lr\Klncfe to As? h*ln3 ar\ f€ &^ruos & (e*rler5,,^ ,-oo,* *.]
-t Ths pyocess crllo@€d the rnn-iava PvDgramers to use JsP uJrut': -' <J
Cr:eb o4Pt)CcrHonS '
4 Jsp Cont.ir,.r execnres 3sP Prcg{&rn b{ &mvertr$3 into on eloive-{ot{
$elltet pyD$c.rn . rhor rneGlc\5 Jsp pvuqrcrrn Loi\l not be g^so'J'ed b'q-
ibs €cy.l volen t €ewl<* prcgrarn @irl be exeutJ<d
Li.,r*,.rs 0( Serv tc.tS : -
-) stron9 iava \<nqrredge is .regrrire.l . so nor suirab\e fty non -j avc( prDgYc(Yn e/rs '
-- "-> P\octn3 Hrnl cocle in servt€f pru€rcrm is corn5>ler and dn (ylcr:{ pron plocess .
s" t''tui ()Issenfarl(rn togrc ( Wr.ae ) coirh Buslness togtc (javcrcot)lrilrich is not rerorrrnd e ci
--) imp\[it Oberls crre less ond ur nrecl b (orlt€ Srrne Sectll code ro crccess ilrevnL.trv e p*et,
, "rrltL\ re objeLt .
Exceltticrrlk"ncLtioS shrrrdbe takrn caye S p.gra-rn.,r exetro:rfi. '
: -) Gm83*oHt ol Servtrt ;mtnrcm in rx-b.xm\ ft.te i5 rrood;tzq ,
ancl retoadin3 of &e edl6r1ptirr,r-t qfi ,
- W- To sot/r/e atl these )imirah'ons u.se sPc.g &ow't-staeTechrotog3
* ledqet t- !Yr- @\^Axt 'lr^"'..T '-*---<-^-- I
s --z k!+ean l^7 \tueA pnoTrarnin6' t,,tt-L&a- jar n.,,_,_,o I
xO + 9:16.+ {urro hrrn.JGJ't.' }-t ooL '<1ci.tnt'.
€o ff iq kri+'ll- +'"'oao-f1ot.,
'-tUi
# -+ t'vr4 1"no fi 'nilUft &tn orr/ cl,a' Go o+' trua cJtulg trftbsur
6 ul1l&rn aJdffin'd Qd'" I'D a$px tfia,no'
: tanans'to 9tle^de Ptc/rnldfoo [.$'c, (tn"r.,"*-t {oE, t"lo2.e,(ptrr.c.d9]* + $t&pffoo -l+^Jlirry. t( c?tforFlie + W;.*t lh"- .&A"*;lrt+tf ? wJz' b"rcPw n W*.' * n*;[:$coxo'oa u$( h<- #{t-1"4 cro"'lFpu-!- :"1"Tl\o}fto a]' vs}+fi.I +G*, boiF;D Ctp :t*4 q4 CIt{'D til""* +b Jur<Jq u}^1o") T? 4'-X'€ a,* +D u-k- wrd Pty tuW4 ?A +'g^{b > €^-ry 4o l-q.rD o'r, g^/'/ A qry,
,-s -) 9tv.t ,ru aX"-(a*a T !,zuru+"6'V-
:*;: f *ffi WW'**,''*"q *, T "y ̂ ,Ydtnpu-1*-'b+,4 !a- S* '^**oon & a-M{ WyEy#2':-3 ) -th4-"
Prpcona q, l(er)ve.il\"8' CIP tIJ^-- 1t)lD o"' eguvot"nl- tuot.rF PY::& @dp- fr a"lt-i Xgp-& eo,optLattoa- fo, +ttis Ovy+"ne-c"'r'ptb-r3, uJ1 l',c- utfii>4'
;5 + To stbah f,sp ptryrarr'a tt'o- ru".d W @af@\_
5f@=> u-ent lt FgaOqp;t-qjto,>8
lrv-c^t-!vou\.ruVry-+,f*, xpteann Jtp ofl
-a l( elhonco-mznt g ./*.trlt'l,(qo+e.be*-
-+?n furXs-t- 31,eu4r 4t\2. ?yp Asobir>*- Q&F{f-r{f} T tnn. gairr Grrkttnerr .Cr;Jfr:o.'
.lni( orp eont6dru4-
fr thr- aAlrrn'blnq;\l-
'3-?5
-5;
':
-:
!Tbroai-46"6D\rrU\5o*pr,.,JU" aEtzu-n\ W a,nl<.;-6,a,,,.
<f"-r"f*n^*Afru\Gafrtnr.Gr tePte-lr.rft !e^\Lr+ cr-u-rr,r-OV'nat-/rc,.*2\rfb\.Cs0hr---fr'{ur ozpte*nn @ tenoW qn-
|rp pag-eon6*V- errlxrV4 Uy
rlllt'e i,["n/"n &t'- hslt) = /urrnf uAe +qenial ,1."/f+)
t4.w
fup- qcrr,c- leSPttJ-o---J '--' vtr gonFM-e'
a[csA*q.c*.Q.;-
e+6_l
e I
e..r-t-- 'cLj
-> t*.k- ?*,ac,,J,- B f? per 4' ry 1T:1: ,,?y.i. Y-:-:iwV * ft^q t a, t 6r.p" pou*- +o .;"p;f. ' gitxc c-r1+ n *ff*A
i"n7"*n)" w%P-*- ,ur 6V Grnara4 VafiSfury- Oofer'.ts 7V dJ'^4, c"'r*"'inf ' G
i:
* Juso- o"J,- ptatd ^ro g+ il'QdJ'4 ta65Pr (o*0- - -r-- t*
?'tn- ci,&- 'tFnF r( P\^; ? ;y' aethnctqlsw w+a hP?W H 6.+*reunro tt Qdt'l at sqspv to4'a" '= G {t
f,H5 .-3 lEi;r;I. J-: $^{L$t3,.- c\<-tL W FqY'n - fr
4t4e-.J*p ,GJ.', -tr-.\ z l.t'- 4 hY\ - - il
*1r11>.J 'f<b;:r**-> Llttcon - to C&P 4c'Qr*44> <b7 <h'>'
*J<12 ub an# ffn'6 rsc dL2 : -tl<12 ufu an$ Itn'6 rs dL2 - ll
</, ?orr4.rtjll -Dat d=rloru Jaw'AboaEu14 tiiOuf'DtfnMn /J"l-1hq--,r1a J,- tGll^ ouf.ptfnA{l (d,&,}tr.n7 t): /.2 rS:{
taplltkofl A]|
Oaoaco& n $9t"ft'
exd!y-b-@ d.@ &w' wsAde-
,W*.- C"e-f- b"Arr7a*"t. t>tve-aht"/\ %a*++ *ner\ov.ap
fJ"T-h$r,,et'xnt .1pJ
P&rE' ' *,t- J
Sltuclq.r-
<L> tw-t err4 ,tr\4a <lb><./, Satn.uXt.Mh d-MrD
9o,a-ur1.O&fyou+.prrnlth ( e. lrc.l+".,Vr, y'.2
a-
*@9.^- ,n<ure.lr-^tp/7 @ai-Cpr,{rS?oYe}fo.rl X T? FT iD t+b'>vot l5t{- ts cpilarr*1'
?rK+a* qtrffel-&t^r'- ard e"W *w u*hapb'- (W er\Cfnpf "{€t}e/--tb <'a",c'}-Ad-dn4\urbdff( 4*t&-)'
W!- 7>* +ne' *a-atPlo'hXV// 6c"lha<-: la". /tWrel atc-"W
> % tnult- g W tn&,tqX f*f^htr u'pb"rml biL & e'pKo,rl""l udvL
d-z^u'ng J|p Prqtam< Aa4,'4 d"" u'nt ad'>', ktb it- ir recomorod'l' fo
ou^i''U+"L"n"- *, v,eh''.t*) a-t \pW'tr\' ^
-> 7b Na,- ?e(, pwq tlLonarn-a qrd il*O*f .qdrrt+ b'6'o $''
y1r6;'fo-rc q +n- (}3g-^pPb fF fu ^"?al'""tt'!j"t*] b c''ot'lgat-' WP"Wu*t" *""LJ +- A;;atff uv)-'u.*1a6n' @a *6d\t/'''' I"lltp'
trj€b.Xfn(<ejf.b--4W>
r-. 4kr,rrV>ry ({a,r-vLrts-latw> NL/ <zq}Lr,r-narnt;'
ft { {*V. !:\","- / ot&e-- I-t"p. lte'p - tf"u*€ .ilft'?***€ ' ";,; ?.4rttt'-n.im4, x </sorJu-'roru>
(clr-pc*lerro >ltrfl </ an-p*t '*y,A <Alztnttt angz\>-
rr t €xdltq'b o1;elK\' --lme-D/-+fl', Dr\e?zqrnq4, r"woaoJty)
[9=+$ule-fil;<r-1< ?-_ r*q_*Bl.oofz ."!:'*.^I br;rrF-#;-€4"\-to e4!lc*-"t<
3 - *-'#fri, prq Go r'-'*+r'*'4 e,l,.% * "*7 L4^'pna'a
*g 'tn, ,ain. Cn'*L fqrtu'€ 9**-it, I Ps/oft At*9 X e{44 u"b'nP?\" % ry. ryyYfi'yo,ry* +rnl ts Pur.d a;"ei-\tyf*@)
'^y *f,* (!t'r'-"ta4
' w.".4 ?D o-t'€b')cdil &tk- 4o roax'- +fr-- undt'J-tyln:o mu* he- '^'YY^: ffi;"; D?a.effx
; 6,rdtr--f-nr4--croA gast:a'u '|ftrry}{tl:};f' aet' tt€4ow'-a' Pi
' *6- cr,o- pLaa.- Xa?/ 'tl<'t PnWq*s I oc+:6&- op€+]:?-'utr 'kl&u ' b€ rfte L, con&iscralfo"o, A tueb'hml b1\; t\ ctp rfc''.nJ'
"5\*, -7
-€,
€
P'{D7{n{tU Go b"^*
I Iilzndlcr' q(ur'v-;" t6 y Je?\. usil b.-
1nt^-- a.NL 1 frap?ci| efsg
outq€9UiAk-
ryol.prDk*
,^Vtafldjcob'0"l
F2zponaCmFert-
(e*tfczn
?gflSt*__"sfl q 5uro. cppb : @1,_1@-.(rnnnr*nuorfu*V.) X gu,:* a4pD: \urylX , d.au."
LE'' ^ +n- dcle tr ena-
cb<-l.J 4 jt?
bch
Tre (g^t ,t-ttV g)
*T"(**tr-rPguu* o-h , 3.rrl.r+&{rpl)1., .>.{) (putxu -Qxdrqc--)J.eo*Tr,&-bv -n*g{! &?- cfuC{F Ww.Jttdgr
&" fnlt6,a ,"-omd --r e?Lf)Fsr- tp^'rfG-("-lnwhaQ
->&hx{C- F) sod Pt.E+e4.kdF</r aukvl nplna) *),na Cir4v8neDk-, tu\ath?el .
-%s4ruL1)
-&ghee{4
-)(qmr- al !eaA-* &ecarr,t'- "w*/ l?p l:-5V c,i(t L.- C?.1lqr1<d ,%h, orb
s'b.t rl-Lb" p tr "fr* ox<9;tttfoV .
rnir(<xrdarGnw (D
ffi ({"xl'majtx,x aey, Janltyllsrrrr4,. *r.(ry.l;t,. g€.rrfecr2Jeg}rff t)
o-=CI
fr--
Ai-ilC\ .l--rqeqe{Lr-1Q'"r
I
Q"l
c,lG\{elqr*{
G-ilc*l*lr
ll'i&J..t.i
l,e-.;1
..,&"i
.$ri$r@r
-t o('Il- qtJ=to,-,:oJ%7 t'o-t, ei.yt+ a.t:a>x6t)}.lj
) Cfu4 cz Doh- clo4 i.co t! ff1o. db' X Cvn*,loy-Clt, l"u+"rf
stot-fullg!ie--r$dag3 flld!",'.':;\;aA._{-/
l\ I >ol2$ervlet liPe cgcle fferhoc{ s o've
in;t(Se,rrerConft3 cS )gerr ice f Sov rerQeguesr
destrog 1 1
1be Gnvien.e rorertodS Rtl
veqr,5eo.,reA'%sF-se res) (F-orrt service (-' -))
Sewrcr 1 iPe<rJc'le -g+"d:
t no Ccmvioce
Service (-',-)
*) (,"t'.. Be"{'vi(e C-' ") )
Att inlrl-) r.^efiod
P.t $6vice (-r*) n*rbod
Pr desrrog [) rrte-rba
o.,d P-@drrcrl>o d
every isp pT toiLl be ccr-nvetF'l inttr aq Seruter frrX
inlr ( SevrerGr.'83 CPJ
v.4, ,$e"r.l rcuksF'nse*.Ivice ($"ut.nP"r6*t
desfroVt)
Saroe &5 Sewlet becoz
P* ex"un'
The crrNience me6ocfs €.n fsP iiPc c3tle merhods ""-
l- inirC-)f"l Serv,(e (- r -)
fu der'511
vrc?, Hffi@^/vlt f4ry^"
yd) ,J
v-l
jst intr ()
-isp$rv i ce (tl tbP Se' vlfr-Ve"11'tzt
laDesr*y t )
$nce jsp eqqcleDl g€-r v leJ- c{lurqs expos€s fbese Ccrnvenience roet$odE. so
t,0e use lbese Cc'nvienr€rre mesbods lo plcr'e logicS'
jtpfnirC) -,
useR,r i0 plc.." iaitid-uz{r'cD lotic. like c*crnng jdbc arr'necricrn'
jspSrvicef,-) * usft{ to plclce Yeo#esl Processin! logi c
jseDsr,agt)------+uset.,rfuPloceunhiHo'[izatlcrylo8|cliFeclosiogirdbcc6nr1€ul<n'
ispJnrtl, - jspS",ui.el-'-), jslDeerroX [) trror'oas ara r,or f ifecgcle rnertncls t,lPite ptg
bjrtbele(tmvieocemerhr:d*f+vnSarPTDgTQrnrf,g{tovlatrliPerEclc|oTlq'
$ere rattrl,ds ct're cq]lel ftot rhe ^rec'L Lik cycle 'tnuhods inwoa\ '
-) The rr€tbodt i'e' cc,t-ted Q ccfokoircx currarrprrcoufl o(.'d clrvecrts <phen Evctzt
I. ir6brtir-ftln c,rf j 5p
€fl.r.lrni A,'.u14- crrrse ftrsiq 0-ttcnst*&
1'destro Ut )
z, in it(&.,vre*G'n g g o5;;
ft;vice(-, -) (F.,b.lr.)
o? SpApp crrbo?elicanc"' Ccrrres
sof \6tl.che \ jrr 6 rae^,
is ra.ised j5 Gd-led
inrcrnrUr3 So- rtuS
fife qcte mshod,", iF o,rg orl-er I'E-rrhaA-;s caaeA
,* O". **' $c'" tFsr nlaI{r/. is not uueA
'' liPe %Je rrr€*Dcl "
-> ae iorfcc,i 6eile1
{itto,,ri.,3 &t&r honinS dtt 4utt*'rl3 Bre *t"$
Zrorco;-bcnae> \ w*u\"M\loccu bosr\ JseArr\tbe ftte m.nrs o..c
ABc - isP "jovq t@d frrre code )AgC * jsp . clc.ss ( Compne d &de )
arc.isPin rhe
DoEs NOI E'. i$T
?od4tle n4 rhe
Incr5e 4 Toor^t Sor9l
inil- C-) rnerba inrctDollY
S{t.l clor5 & j4eryrotevrt
C&llS fbe Cc,nv;erre rrr,rbod jsgJnri( ) gerrn
&.!lei clcds .
kvvl€t clars i(
ctax ex}-cnJ5
d.oesnot 6),E Jsplnitt ) ,'jseDt'rr'.oy ( ).rcrlnds 'wikv
addirtono"t cd-t
'-+ Ev<nU JsP eegolenr
-> ecde Pktced
9ripttt'
6KP-a'.-
Cotl
gt(1,-i'"" -ra, wtL-r I
Iq$n b10J1tu
in jsp Pt1s'
&rvler is H*e&''vkr 4
@ Slct* -'----+ PYErarnS --------+ $crcteU$\qt c ----------' uj€-rPYqje?-r5 ----+ Adv&klD"rotn '-'
----) Start adrniq g"uu Qrr ar'bhgic' \J
\_./
@ prcrc&re t d+lovee 4Fl""* orrlccr-rldo in 6r-ulqlic sevwt
U v''d4{Pt
Slep-L'.' $tu, tfe dorroro I'oe^ ctg crr'blryic
io gcripl* Bes tb
-jsp&rn',. |r-) rnerfioc'l as ib fs plc'ce io "
$e &.d apPl'coflorr
srirybco r fr6g://tocorho st::/oTlJsphi'e I Atc'tlte
Pplogee SpApr ur-ra o4Plicodcrn
Jbfop ftta"* bo z0raclfurblc€)c-ht're>\ rnidcllepare\ urrn-fronx\do"talnsl-
Adv6oi<luon o,.\ o-rl}6aeeloYce 4..au ' :
inrrrrrJq c6u,s the @ovi€Jot€ rlY-tj'fr)d -jsf &Jrr--,n (-,-;
ftu,' E t.n crass og "rsn
eq/rc.leni servictclo\d .
dtswogC) ,rrr$od intcvrn-lta c.ttJ yh€ Ccrnvence ryskod, jsrDorn,gt ) k"n
$'{rr clCIs dP j5p e4il{a.lryLr- serurtf ctass ,
rto Sr{* cia:s &"r isP eq/raJent
atg' aar/,.te'i asr"' rctnli r'p ' #ttffiPB"sta cc) ar,d thi s
' $a, HttPtuvcr cta$ '
--: b! &Parrrt eW5 jsl eqAat€at ServRf Siue.g
' c\tryrl ' '0r.,lU -isPS.,uicc
(-r -) rnc-rfio'fe4
TO Plcice ttrrn urn€ed
dePa"rt f
olp'. bjelaorne i-o f,J?
N6@ic Sewe'r givee __crbc"ctc6s
Agc.isP prg'
a, 41s fttennr,"'e oP isP eyoJe* SEw)cr P<rv
NorE:- hleblogic det$es the
Prr jsp qp-o]eu Srvter
Jsp prg ex€rllhcro pbc.ses
B:-rrce ccde Rre (.jooo) once Ccnnpiled rode is flrrc'ci.J
P€'
CmvefiS JsP p''g inlo an qlJuieflr '(€'rvtet 't"t<)o
o
*f'rarn)orion pfrose
(here ist fnge G'mPilet
Rqpestfh,ces;n3 Pfuts
(t .re the -jsP&"uice
(--'-) oP isp eqltalc6rf (e-rvt€f l'''3 ot* and "resgr*€
6oes lo bYoatc,r ,rri"d$ AOc-is9- claJ:
-jsp.java
javct
Reqrrelf
PrDceJs lnS
-- -> The rq -rest given t0 Ge direcrlg PcLrhspolcJ \n Rtl"stPt*st,l3 ohT:^
iP lsp{R -rce Code )s not ,"pdified Corn;r."rd to Prtviotts vefesl- c'nJ TP
.c\ass Fre o9' jsl eq,,-.alerurSnr\et ls dx'j\o-ble ' Othgrcoise tl'e Rryesh Sitr'n
I in {tanskrncn phcrse { Rt+'*t ?'uess'n3 eIe* 'tCI J5P Pctf]slde
., --t dspGntnncr *rr*whNs lhe Sorce code oP $? Po'*aD % "*tl
.! \e$rrst unlill next re?rresl ,o"* 6 *rf Jsv rr'ry-ar '
- --+ -t-his o\\o(JJs Js? &mr.nnc/ to co'npare $t- $rrr(e cDde & "ury
rel/'ef
- pith rhe Scsrce &de c,? Previ&s veryresbbX *iv1 Ccnnpcrl)slcro t@b
.- lit e ARAXI6, N D]FF Gnd e_rc" - - .
-+ Pr.gromrne{ con't pkrre -rcot '..e
cWrc rrrerbods expuci,-lg in Jsp eq^,ctent Sewret !clcrst ' Secorrse in rhe Scrper ckus o( Gp ecl,r_roiettt Sevv)er ctox cr[ th€.!€ Tro-l
liPeqcle n.erbocls a'rc 'nrcde os " grrl mertocts . (rep.r [rrGeBaee clc.rs cf Jxrer'j.r) .--
--> lhis Pcnces prc€Yamel c.mlt fu .re rhe ccrnvi rLicnce rne*n.l,s ftf tikqcr( "nerfro.td .--
me r'€cd. liFecgcte rretheds op Jsp oye: _
-> inir(&rvrerCr€rg )
+ derrrog [ )-Ihg Convinlcnce fltr+]fd'' &x rifu cgcte motrocLs org'.
-+ serlice(&tvraQupest , Sor,e+le.ponse ) Gr*.)
jspJnitc )
mod:Hed' fronuoil3
in rhe rurPt+ ' c;;ni'1 'ohen
o)
b)
c)
Ahgt,rtSt,
rc
j^
hefoa gri,tng next !^e+rcsf' dd
niwm bX iomcqf Se'6\tcl'r add '$rtot'rin g
9o\rleF - oPi ' jc('{ ')
;;- *, ' ,"; /o*,.0r" tn eTorntc'-.bom< > \ rib A'atn '
er-.t?i 'ic'1 I
jsrx . jc"'i I
,lasncr - el ' j a'{ /
jp$e,ui.e C llnr6",vtet@*rt, HttpSe*Ler8.6^," )jspD.,sr'og il
"{r nUu k'rp**s iF rhe sct"ce cde cg jsP ecy'raten'l- gr'llej- is
crnd dveLtlg I
Tle rrori,Rccrtlons toirt be rePFdtd
jsl qpoleru Servle* cltss is rtrompl ted
tfu urb odpl^tdfion 15 relmded
isp p,ograra 666[9 {s nor mocuftEJ
ntrlt?'icc*ictns 1oilt nff be yePlflt
)'€CDrnp; l€ jsy e4uglen+ Serv ler cLNs
gr"s to cL^ss P rH
ryrE!" -'ihe ohrr grx,t'ce is not gqnended ctt indlrsrrY \eue-l fln{ecr5
$' HL{,r
Ans :
zfserler 2
zse[vle.F - rnc"0pirq >
Z5enl lcl - 1^16qm€ > d-bc
2",11- P6tf{c'i n > / fe6L&
46---Awcb -o-ptt >
%,u gtra
C€fl,u ttls
zls-n >
z-lt-? z
-"Ilcis Ymcess didJt'os A" g"nt:r'.**
bn-6 1^^ eursde &z Qr"\r't
wl*u i.1, Tt.6'o^ i' Sil*t{ Q'n''-ffi{ ^4r
WUo64c",'lsPc lao\ as P,neccrnPi(e'l
'
h:o\ o* 1r'Ponr$teJ6t,qoone' i"l"x^uf C
:"r,-. T:;' :'Si n,drer'r-e\ hlrsoil.n - \o' 3 \ su'ntr.. \ riu1 t^Jc.,'r,ui. i6!Y
clcrs Pcth,
Gp {noX*rn ortsida d" 'Qwe"
Er\ArnsFtP- -, ne.j.r
iecbto8 )c ' jspa +oo I as shct rn h-.lq,o-
lo
SleP-s'r
i0
the
-----t^kgq"
-'la'"\b'I
f$ D'o(eduir
8Et-a:- 6dd
Pit.
ke.p
t0 encble llttrd -crn - 5ko'l-d4 > On J.f frrugrc{rD
hJeb.xm )
Ltndr- ,u,PP >
zg'lleI >
zsenll€l - Dorn( 7 o-b: Ll s-n 7
*sP'kte> /aoc'jsl z-lise-.?-'n >
zload-.'n - 6kt'!tuP > i- zl [-0-s >
@ pur€"t- o -In oslerl..o Plr.se 61 5sP eir$e'v daYi^J
se$c'( 6l-a't't? ' &d ^b vN^e tregt lcmc'rr oT
Wb 68P\l cuY{ 'tr\
'
@ ** o.rd lni tt..ti'"1 tle o\Ptt oP f,sP
Eote-'"t 9'n'lcr clcql &v'r.6 &rr""e" tY*
(o) d'.t'^6 *" *?:J.fi:ift.c -insrc*Uottt { Ptt -"
o"d coha+ is rha cue oP it r
frrtside the ke:l.ptr 6pi rl'tcrt l<eq" rrc
d-lJ si& {e gctt€^r '
4e'rquar lD ,
ntlaps U-r-tra^ti'Fc **t ;a fu4rurtPwz'ann ?l'a:' pltn 1-$ve'1'r*t;s 6xx"!t" JsP
r,oirl'' cxrt ,,J.ful^6 &c $.,'.tec'Je u,:w 4+\".r1 'L' urJ4n-0-ncdn c"1
g- Wo(rr to $errY'tle The isP eqrc'le n-F Se'nv ter- clau
ls? irrDtram in rhe &'Yvi€f,l
tf A.r'vore t\e }et"*'t Qr4PrieJj.f efl. czmPi ter tco I
t-,se rfie
-rE:\n+Ps\ rcrnP> javq r,*otogic' jspc
-cornp;Ey
.-
lt,.'l-l
I
j
\-/
t-,'
\-,/
jc(VaC
-E-o**
rf)
ABc.jsp
E.,lA?ps\ i-emp> iava -k€e.pflere6+ed[rr*r**
, cL4r.
pre€t'fcrr-l TgrtS & Jsf, b3s 4 etet ents. ;-
O $."tpttg Tags:-
a) Scriptle-t (tt" -"-. t'r15) fu U.rr.r"rt"n (trt ..- t.>)
c) Exeruslcrn (rr.= - - ,r.r)
&tpriog tc$ coe ptc,ae .irva ode
fA\ ^[1/ tfir'rr€nrs : -
@
1l--
PrtaOrW fr4s:-
(i) Pa€e Dioo;w (<Y.@rq" "..'-- 'nr)Cr) ina'de DYer$Le Gt.Qira"ae " " - ,., )
)
Lo**r* ,*rrtsl,.adbt rued *W6.^r.r<J ;rr"rrt**ft-r..*& Brr -
Nubtt6ic. jsp .tl'e- &var * te
F'te
^C/fiP\ LCA
"?- Ue+"**ic.v.. Agc.isp
krrkt atenaPf:.x nu!^ df y
Cilr) kgli6 DrrEari ue (w-g"A'tA ' " " t' >
(+) Siz.oddrd A,t^-Tr.Xz:-
LlrlP lttnlrala >
zjs?t in&de><JpP,'uraken >
zjsp" setProp,rq>
zjep: gr0rogr"rl >
/&v:lot\* >
z!sp'. p\1i n ,z.fp t yN;am,I,ispt ptar"ts>
anA ek- ^-o
aPiJE E&{s / ir'dex
Ar€ r)ol
in .9({iprl€} ?o", fo
urz loutl Va^ obLu
a)€ visib lc in
3sl rt l>rrr--=--
'
---a
HIn LCr;ven s5 Wg c
TogS ond o&ibcrfca
Cs3e senSlrive
jsp
l+rhu p6gtorrrs are noi Sryrc_rl\
tqoed Pn4rarnin3
Ctienr - Sid e bJcb t€chnoto AJ
$enerons slc*ic I^rbPo€e.E
nee& html tntcrgri rur ?^ Uecnttl on
JSf pc.ge Cornpi la6on j eqtv:x\eflJ 8*rr le'
insicle ge Shvet nrhen jrp F,.Se / {rtg
1:/.iava code
'l'7
_.7 6rNco 61 S$rnlcr" S3srcor" .
-> Cases€n6 i ri L€
-r 6ftr cftS lrtrgd Progrc'6'!
*> $er''rer Side utzb tcLhr'olog 3
'--> Cntr pratt-i D6 ramic b't-b Pc'{e{
needS J 5? C"t'to]nr't Q- eoetot*t <n
' 'tr'u P Plcrce edprg fonP; lc^fictD and e"ecr'ul crn
is vEAesEd 5o rhere is no Deed of-qrn6tin3
and tbe're 'ls no need & add 'J5?
aPi Jc'l P;teja, fxgrorn fi.- 6rrnrrnnd pyDrop r
to c)ass parb
isP c.p; means
iavax,servlet 'jsP Prg
iavav ' &'rvtr*' jsp ' bagexb PY3 the core Pk{s cf iee aei
iavax, Servler-'isP'el Ptss
Ltonut-lwme>\rio\ Jsp-opi 'iar ret)l.eseits tfusisp cti''
$6nipt ler l-
S}trodc,fd 3toi.^^'- Xrol Sgntax '
_.) srr;0rle.i \rada.bles
----t lt\ imp)icir ohrrrs
java cod e
"nerboL ctL Sf,
("'-) rncrhod,
/+ptS!pY?_^,r4s^rxh4e
{m^. ei .x
Llisp' st'ttprlet>
*jsf&rvlce (-, -)
in -jgpSrv;
re
9riprle-s
e?(alenJ- Setvrer(dc 1.
i
ES O l- 6tan&rd Sgo rax ;-<./ . int 4 -_ ro.,
1y11 b: )o )
lnr c--atb )
OL,J. ttdntln ("nct'tt_ iu :"+c) I 7.7
Ne Cc\n &,t I nV.hod$ Rorn g.riprlei Wt ue Can't
becrur,se jc.va doeg rnt futaf 'oesrcd rqe-rhods,
/% p0b\Ic
tirlf 6uf1-) tint x, )nt v )
xm\ sfifc(X t,z,i5p : &,fipt-ttr >
s*rng 5=',helro,;lhi- len= S.lcDgrba)l
bsp i SL1|tprle+ >
d,e.P;oe nnert.ocl ih Scvipt( *.
eg';Q:
OLGb - prtof'( n (' fna ter6rt') 16 " +leD). \-/
}Jhite
+"fl
lJorlAng With
L'Jil\ neh be
14fxrr D X+ ''| i
! v.>
thls is wonS code' f5"'
e'((t{ (oit} afing
. !-/
.i
-erlrd .kAr"+/. nllrott r,Jil.r dlp'-v
.-\
xml
*r.Een
9t
c,-g &nd-. HonoJ. 6Peafutr
the e.rto.S 16;lt 6€ rai tei
lersrhan (. ) ertrt ;lil'e LQ oPder-v
rhs crir\be -+aEeD c,s rhessn*t uP'- t)l
\*,'
\,
ini 6= to)
inr b-_ro)
;p tazu) -,.\,oul ' ginrlo('oz-o 't'
uttt o*'P+nlnL' "'i
Y
/-.lsp', sctlPt-ler 7 '
( c..roidin3 flDbl'-).
VdYdln L"a'b")i
dnttn (a=d)i
S'bru1 benininS,
P"e29Ejz isP
" srt ntlel >
€bltrhdn 11-
g69 gv<rodar d sgnF r
@ z1'l.
,rg_ 4__ro ,,
inf b =)o,
i P [arl)ouf -
Q-I!L 0u+.
' gt,7
I
SoluHcrr, -e : -\_-/
drJa.
..-., place lhe bodrJ Of the Z j5p: Srriprtet > tat oS CDATA . -Ilxrr rreaos Alv{D dq-tu(
a , (,ir\ be +avan as chororle r do ra ond ru jsp{ xmr fneaoir€s ar;11 69 6qrli€l on tta6
< isP I sctt Pt)ct >
{ [ cDArA tipy_ 6= to.,
ifi b __)o,
iP {azu)Out ' frriof\n L"a'b" ) :
etse'''- 6u"'P'tn'ttn f"er>=b")l ]] t\-/r
zlis?:*rPrlt* >
\- "np .\<o .onxrarn ' (e t$) plcrce- bo$ ako &rd
-> Ne corn Ker4 rr&ttiple grdarle-rs in cme jsp 'oYDgrcttn ' Le I
6'd nt(I)'
6nd xmi-krd€d 6Xnra'r \n one i6P frYqr0jf|'
nr v.zorrrClt oa-essanq Wr< \rl &rlPtlef,6 '-, Ne- plcrce B.lo0l L ar Y{4&crt P€ce'5f ng
..- @ Declctrdlictn "'-
- 6rz'rdard Sg n rax i -
L't'tD6C I ' 6P lr$larce var)ctbtei '
6trmbo l.
deBoucns oF uJex deBneJ l1e'bods
dcft'ruiHclns oP isl'loitc) ('rseD*r'"st) &rnuience Lfz qde rner$ocl 'J
, '/.>
XYnl (501-crx: - -
LisP" deaentrton >
Ll)5P "
d{.ltLt oH dY\ >
crrr'S ide oF
E-X', L,/.\. flrrblic ini SurnLlnt a';ot b)J
tetut n atbi! t''
rr. o,.'o,int'n f"R""t't is ^' +6o- fo'zo)i 7' 7
( jsP : decial arr oo >
z | lconrn IRrb) jc, int
{
fl'naB;3 ( ini \iot Y)
i F Cx<r;rtlcnD
€ls. if (v, x )..€tCrr n
€ ise
Tet/r\ f)
3 |,z lisp : dedc"\cn cm >
1l.c*,frriff\n ('fne ftg Vd.tq4 \s,.' tBnaBiS [ro,ro1)., '//
r)
I't
o"
+ corta- ptoc,/ 'rD l-rd<,nlfo"+ 6g{ V"* ffirfr_^u,Gt_) ,) c+$gp ftk\Elrl/- J"r.UF C3re,
.a li<tr46-d €q, w" --'/ q
7' <.f. ! E ' iot- foo Chtsk r;,q) q{ rcfv"r-, x+9. e_\ ./.2 €
rl\'/. ou}.Prtnllb (oLp<utj- ft" + &ta,t Ootn))., ,[.2 e_Vfi! *tn-:=.. '' a,
(fsP: Declara6-o;, s-
( ltcnrraL e'-. prttf* ,t,ts'huodrl.''E (ri:t-r,",o+7)
Aii,"( ik (x<Lr) s
"4axr, Ytet-r fle(g=-x) fluw-Y^
n" 8-'
- .r4*lrY t) o jo*-IIJ> e</sre,.bpil-y'-Ptdr> t. o. ^- n-g\r,auhq ;4*n
(,/.oul.pn"^rrj^' ftrv rpVv6lu'. 'tq+&+d&V{tot"4\'/.7 -"i2'""- ) \-
'CL.aslulu ;\:ri-\-3: *:til#i",,t ;4 "Tr--2 l,.lrr- 0^-i^^-rr r .
frr-"o 'IttV J'oda"'tRlJoo {*+ va.a*ua,
T"* nDgknm. v"u!,-rt r, t,I]
9).ll^t h' e&!"t,rnn ee'ianatJeo +=y rar&r,:t- fr*n sc,tpru+i--r (6+ly6rygaALa, dtoa bd6
,M)e- .tut !"\"-.rvnvl (*rW:-atx- zt*h,,4_;,-Ndt- *;W_JP"+fu(n t,il,v.4 at a.t>au,,t klr, .I|
an " tlCO S .J't- '- -- -'l
wga<.t !,kE a=to ./-.
<,/. &* ot^ ea:/,)/'(1' t.t1--pr.""; Ltt - (u<hr2 d.(tc-+ptLt) Vo-tlp 1r :'t+ q\)ot-tf'' p$rx*4 C'ar+ q (&cL'rdr'or) \&,t,^o- ls, ttap(A.a)
r-$
e)- .Aqq*)ry &iL.- (qee-ikp) {n*ia+. prnrn$U ("<bP " W"+ u%1, q))
('t <Jfr> 6xn 1.Qa-,.l-\M
'&i:
>'tu) Ws
rflfiu)Fqc- vtp- lnrc eP,,ulf.) 3f eerd'/JLb,t'&-q4t$-(Sesj .'1
u-rfrlq6 fu $<-o'lilc, l'" Qot> lt uler' tA;' nr'ktl str''r Co& <4
.
btr&&9&3"
@
o9a€
€
€
{t6,6
€
€
$rrzer1rsnh 6d*'?o <tvexcwnz- €fu'l ptrglsnr d-uoiJ fn'-
q- h"- fopt"ci+ 6{eeb PoP'
->2J) a:e.a6 eon..- *rw".xd 38 "V - f$leer"lul-) enmut ag kCoaviapnL', rna-nq0f 1" p* oPrx,- UWls- Csnurhprt"-
"nalfi"c{r Oq-
&funX.ar L.g< ;o Otp pm?6dn(,
" esv<"f ,l PuLUc vdd ;6oie 1;
4 -nh*,n.,lz$s- q.. 9.,p(-nr'n...j? : 1yg;oi1f))tt.> e
<"/') I*' vc^'sd e[v.*'\k,- ()
' =
.rll.qn:,Jli6-!'l4A\c. 0ot4(
9''p (u xtc--j t, r4Ot,"Yt");I.t">
(./' orof-p"rr,prt Cqca".i1o I Fru,o (a"rpbf (*l*pl"x^rru1r)),,r t
&? tt'"n"1l6 .: k_ t "rp4 ,.,,))
, /2=' 2a{/'!'t+Ttvta'str' w''
€ arrd4 dea"l i. 4a*rollont"*(<./1. --../>) e6il4 oc+ t"*. AVpl'*"'Vtl')
€ T 38 Ana 6 +fr;s tpe Qsooot a.u'!z- Ttp WciVDz&drd-Ko> 't^F^
€g9Wfu-$artad W^Cr-i.r,^-.-,
\ /.= _t
=l iateae;qxrafqrYa. /.>t/
il)-> fi\;" +-t, *^t r."m{$:*n
o0t{rq} (-a bra*tSe+-31.6n&a.t,
Vrtr ic9rt.6*\.,.\.-,-\gz-\_--!,-
4iq: odpaww)>
-o: pJaALx{Krh.otL.<.
4tofi q,/4reJ6n/
lD
erfYe'*kt6, o'il Un:ta .fi"-
? W d" ff +rur ttr tne.. h -trp(u^truc,4 t Cet r" "-- - Q
c,od to'-e^rallqt tn-. ,.**.* a: - '-
{Ee&p-7.' 4.7T;'rb-:.=ro,,1.;.
) <*n o e-0, e.-.
1'1. hts O "rr./.>t *"'f"'' ' rolt e r
4 \ldfu. is i <./.oa-,/> n €\,It valu'- le. 1<.1.=-0.i, I ap,*.'*"^r* fo'1'. e\e'm
_tt : <"/. q+ur .,, I 114.1.,1*r.,tr w+::".1 e-.-
hr*o"t*x*, 6-uo.r, ar*a" W \L ' " ,'^ f,'Y'tr^( ;
'-+\ 6ot Pn'ra(d'+os'Y'fD;l v''
D.jh 7 lfm.- lt ; (-/,=rLer,, .]or*.ux/.DaEo"u.> \ , ./.>J I gy ;
'- 7 .',.1.<"' L) : {-/,=rLer,, jor-ro.uX/.D"Ecl"D \, ./.>7 I e}_if rlffod G.n4 f6zau\,a) erye*:w ba. '/ \ ::y" "r2'"./,*_l gi
AwD& lt:ffit(,/=g.r,o(6 ,^) /.) Jelr*Lr* .^", &,#*jr"*rlJ* I
z% .l' <ig:l-'" 'Pru+> €t I
&"";'-.ltAo.^ .l+w a,te-7at^u, ,6.J
- ";#"?'#Mi*rr* tt'touaLt,to'a'44"o t-t<. ,6t.l4'\'i"+,;;;7 s.um+tret- < llq,qqyorrrwr>. , C
+ "4'tjL t-"ortn6 wl.f, tn4. >r'^r kqwr- T tw> aqrroraor>bf;, f e 6ll
4.Uo W4 < " st 06 FwLto,n lru+ aue Gnos+ g-du.l<. tt.&rnJ (W6^. tb atr.'s14 pt'f*rrhhf sW-u?rw^*-
pn+Jaa *YC
!l^ m- &\ votut- it ljrf: e,qr.,nar,>2-c.go3Nja*t+*++iwDi,;,:.- d+ w ce,\ aLL Jop xurl,ay,9a "n .@"r6t*-, ---:#[T* * ^v"y ,A
; Xr ffi :;X:,7 =#: u-* -,^" ̂*,^liOebred lfino, ls | (./. *rtu^, JU,-qa. us;l,oabcl.(2 e.l<l'f!fo."V- ' tz+lte"!s^-('^-zf.e4.gt , uyrts ,. ,/,.,.
"-JZrrzgrleitc,rc' ' '' "'l2r',
"/'2 '@ ,r)!!ae,-n s",-xtl Sl
3+', or-dtg O' ^V*au"tt^o1t
"o.r-tr,"/t'
%pt<'16'66 qJ- o,.6.
ftun(qts 8,r^, a..1 *,7. ;: to eutl.lralz \te*fon"t
7,: trt ;i.',.1:1. {1* a=to '13: & b-- 24'\
i Bi4tr.tk a^? : ('f -, o.+ \, l>ia" -l- ) 1--'7 ,-J.4
4.,<*-ntt at'e-7 4'1. = 4tb b'to-' y''> (wzopco&Q
lL4,Jilu\ at<( 1y'. =(a+,r)+u tt+(bto)''/-> (s;"$f'fudq
+9+ Coo 9 pLat- -Xvpte*-+ce-U.) it., o&- ?f Pal4roa y
ytf $rc- 19p€1cdvafunr6*tW- Sral u'\L -Ttp&.uSt, -')cud.zrrre6'ar(lkUi" i* y"w Sl^tt- a^a- tr oft- ,qolnocl e$ -T*ptu.'ttz(-) 41,aj Leeear)l-<
d*llG:ct- aru,'bd ;" Te! nnd ?arra c!ry.taal- fu[rp* &#ern "*r*/
."p"-(vtuwUfJ
O
a6@
6€
6ag&aa6oeppa@
6ffiffi
@
Is
t6j ootna-
b€ttrr4€'llre{r(rn
!-(.
0rl}(o.ttfao
r*?*
oqzUcaltet''
Ced;fe'x-ct1>tdan
Sotoox.lo,r.fui -\*A" tta*PG*t*[ca, utas621
f,ouax. Gu: \r"' t*P' t+t*PG*l*{?upon @)
0auox.-$rpl.r'F' J F' 33l"l ti {""-(+9
Jucax.-felrt+ ' l"-P' tl*pkw:o- tg.thfr(tu",'ert rel do,x e4'*)Jarcax . klilF' JW [b9boLe* (aa
Jtuoarc, laoruu..' loeu!+lnhal'gx1
fh-rsax. &.t,,UI' ln"unW U\ltfff c*)
Od"d<' Gn7"6.rmoa!\'e- k)U
+R;t'llc fu es<h [t7 Pretlqrn t
t$w^a" Scrjp€-
,r4FoW e4!rP'-
Pn - (clsPe-
-Qt+rqo (co.12-<-
SnyScspe.
Fet4 tup.e-o*Lopflic"*fon ksp.-
pa+furfL<-
ptL RsttR-
Nob,,-
pyt-SuPp )'J
. rregrgrlt- t!"PL 13 +e!)W<- tc &aj, aeV'Lt'1b^'
W&,- -,'' qxu'"rt' tv rt {TS1TY,,'*YA',
"tr:::T-; ,rx"", Jiti* u"', n<^.t"A wnuq'* i"'itw c'-€bqr)''
A'-QrlrrJr"
) q ?yp ;npL'ot Gtiz*r atz lft- c+je{R ? kndr,lqd;?l:.+-6"**4 tvp evflatnw W\4 5torr.l olon
t t "* *),rlu- l&tto,,-
fur ela.^^z.t, hacau,\z- ffu.r ola,yt hamo< t9| CAvnT*- ba+"4 ao,.1 ,. I l+.o-v@n4ajru4-/lw4 u,< uAz- .
cLhp
thr-
3-*, 'U k- q V u,&,]yrV cc*a/nan- kWW f,aoaclo.aa
arhleh i"oplomnro k?klr.llLAe$N^l, u'n[,".lc.t- O*Y vo',Al\<xttV
"15:?'::-T *on:^'- rr %rLwa:a7"N ,t th- bb' S ,.sryq1*r7a"- Arr4,jj-/ Ja.rt< &sts *#TffiiItu', (**,arl*rg- 2r.\ U*- q, 7?^,./4*AJl. eJag namz, f3
)ft haou fc.a rvwvz T T? rry';.ru &i c.u *A+y,o ?W 'c*;lropUci F. 6% i Allorf )uq] f- 6?
$- clar* -.* \ ,Vu"rp ,fu' </.=,r.g**-2nLl^xt)/"2 (Lr) I;(W"\ nqmz. X- 6r.F 4, <_1. =reu]_ .yl,(Uxo1) <6r>- e.
t>tote*ue,6 Aue.,!^---..!z-._^rr \--.!z\-^
ilelLp.-t *=u?^^,q,ryH ry' e w "v W&4*vs!,e.,.ryryPSfPe| & {""ttPA gK qrtb,z"_ts^:-' ,e__l
W" Lr<^+L *UrN* * ,*"*Aoln< .We, _ e..lp.;ttnrlntl .+ "rn Xy^?" ** -+ u+hp/Jc"rfo.n 9ffi*.*s@,;l> h</rt-+ ut-o*,) Pi^;Lb'
t&4- e"4 nltp fno?rqo h' +" +n- P"jqr.C"*b p-A S*taog I
lLuoo *ry#-#e!-)t\ut )J:|Pt''{:@,*, tl@24nt+9. - I
f;H? . .a,.r--*df ,lf
,*,
* ^:
U frt{c"u^&r-llouq-o e-not )j, t ;lill Wuar u^ea rM,^ I *:iiik!h<=t-t ' | til-]]ltlh<;-; I (s*ll
,>e+"{i u cnod mo"niyr, + qa,.,'.a-, I ,.Q.'l]euedr (hr=tQ I rr
p itr^,* ' v r^,^) n*Np tntlvtt "\t- nemo' I t*-i]oklh v aod ttwnttulq\4 nqw"' I ***
e.l& i lr(rr<= l.) ^-" . I ,J
_it, vel-qrrt q 0.".1 C.rntsf s r ,n .t rurn-. J tcIA4 - -'J' ' -'-z I
,.ar-,- tt- o / {N
(- ffi^,ro* ="Jo*,,.ri1,*, -r-',,/.r +u'rei^'orar *ffi
:i<'1,1, p^uI),lc. ltsnV 2rvr'dhwt6n+{u'*7 *^4 I il
I tt ** tu.'errt- Jats f h'm-- I . . ' ;Jes&aa"- ct= (-0.-enLqr^7e*!rr*ot"-ty I krr4J-,}44J45 ^ Ileelahdo"- ct= (-0.-qnLqr^TnlLlnt$aoG-tlj I p?rx4rtE']-v') dal
^ Il
// cl<)- crtt<* hur $ ttu- Lsf- ft1 Ao+tt p"-,-41 kt"t^T .,"','"4 d1t s1i
^, , ' olv''- s]l
, Wp-_, rLr^,lsrrr& , wf,k4!lrl1-
uelqr'n a q" .lnsf >L.l-:( +r,,r^n : t- ./ \ 1 **f
I..f,Sp tt Darabase Grnmurr;Cafi crn .- Z*lttle-n
- +r, f,.,".,, to J'p comr,nnicrr.fiwq u6e Jsg qffit f tt' t potr.r.l os LteP ."., 1 ot at1url \'/
\J
' t-r',1 in h$le.lii5 r funOc.3= resPtcrnvely \J
-,-) -lbe Hrm\ Br- pqe Anc0 bgperllnts prDvlde tlser I nta{ hce for eod usc'r lo 3 emefc(J.e
the r€elr€sr to &wrt PmStotnt | Jsf Pogram.
--+ fta Jsp to doldlc.se 6\u, corrrmLrni co'tt cro P\&d- Jdbe code in
ol\oo5 JsP Prl rc 5i6re fie resttttiet lo fuJakY'se glLt: and
pro- dol-abctse strr.
--+ 6onsg, o$icofic/o ipplrcrE ohjeLts arc not vi6ible in wthod deFw ilens platcd i5
cler.,tarajn'ans 'lzt8s b* Loe c^n tDdFc flem Vi6ible !3 te'r nq acld;ffno'l Code in
{he merhod dehnrllcrn$ o? deu'adan 'ia{s
Ll,l. pobllc \,old
{Sarrer&'Ptg
isproiK')\i
\-/
\_/
\-/
);
);
ca= gerSe,vr.,Gn69( );
SeouretG*.^t 56 -- ger$wrerGnrcxt( ) l
Jop ftrDS ' I+J S
fo gdrheA In1-r*i
S'o'9 (c5'SetClassL)
S'o'e ( sc' getClo'stt.|k
'l:>
zbz hetr o 4lb7
Hbnl------.->.1sp ------->DB s/w Communication
a --\.'.'..
d8' f lkYarqeft{
VGryas Y*[-ioJ
tdht PrnPei des
atl l I.
20 t>
<form action="dburl" method=,'qef '>Number : <input type='.text" nime=.'tsno,.><br>Name : <input type:,.lexf. name="tsname..><br>Address : <inputtype=',text,, name=,,tsadd,,><br><input type="submit,' value=,,registe/. name=,.s.1,,> <br><br>
</form>
1\ <a hreF 'dburl?sr:tink,.>cet A[ Student Details .:/a>12 -----*-------.---"-web.xmt--------"----.-<web-app><servlet><servlet-name>abc</servlet-name><jsp-tile>/DBJspjsp</isp-fi te>
<init-param><param-name>driver</param_name><param"value>oracle jdbc.d.iver.OracleO ver</param_value>
<in it-pa ra m><in it-pa ram><param-name>ual<param_name>
_:!1Em-value>idbc: oracle:thin: </param_value></tnlt-palam>
<init-param><param-name>dbuser<palam_name><param-value>scoft </pa ram-value>
<init-param><init-param>
<param-name>dbpwd</param-name><param-value>liger</param.value>
<init-param><load-on-startup>2<,/load-on-startup>
<servlet>
<servlet-mapping><servlet-name>abc</servlet-name><url-pattern>/dburl</url-pattern>
<servlet-mapping></web-app>
41 _-...____.-.._-_________DBJspjsp-___
42 <%@paoe import=.1ava.sql..'i %>4344 <o/ol
45 Connection con;46 Prepa.edstatement ps1,ps2;47 public void jsptnit()48{1: System.out.prinfln("DBJsp:isptnit0method.,t;50 try{
1
2345678I01
131415{61718t9202122232425262728293031323334353637383940
5t5253545556575859606.1
6263
//getAccess to Se.vletconfig objServletconfi g cg=getServletConfig0;// read init param valuesString s1=cg.getlnitParameter("d.iver'.);String s2=cg.getlnitParameter('.url"l;StIing s3=cg.getlnitparamete(.,dbuser,.);
St.ing s4=cg.gettnitParameter(,'dbpwd'.);// create idbc connection ,preparedstatement obisClass.forName(s1);con=OriverManager.getconnection(s2,s3,s4);ps'l=con.prepa.eStatement(,'insert into studcnt values(?,?,?)'.);ps2=con.prepareStatement("select, from stljdent,,);Yftrv64 catch(Exception e)
65 { e.printstackTrace(}; }66 yfsplnit()67 --
o/o,
68(*t)<%69 - System.out.printtn("DBJsp: fromscripflet.');70 //read sl req pa.am value71 Stringpval=.equest.getparameter(,,s1,.);72 if(pval.equals("register")) // when submit t tn is cticked
:
7tr7175
.7477787S80818283a485868788899091929394
96979899
{00101102t03104.t 05l06107108t09110111112113111115{t6117118119120121122123124125126127128129130131132133134135136137138139140
(//read form data
int no=lnteger,parsehqrequestgetParamete("tsno"));Stdng name=requesLgetParameter("tsname");
Striog addrs=request getParameter("tsadd");/lset form data to ihe params of insert querypsl.segnt{ l,no};psl.setstring(2,name);psl.seEtring(3,addrs);/rexecute the Queryint resulepsl.executeupdate();//process the resultsi(res9!t=0){ %> (m)
<b>Registration Failed<lb> :
<%lelse{%'@
try{//close jdbc objs
if(psll=null)psl.close0;
if(ps2t=null)Ps2.close(hif(conl=null)con.close0;
yrwcatch(Exception e){ e.printstackTrace0; }
)/jsp Oestroy( )"/">
Qequest urr : h ?: l/lo@rt$sr
--_ <b>RegistrationSuccess</b>
t9.%!rets"lIftelse //when hyperlink is clicked{
llexecute lhe queryResultset rs=ps2.executeQuery();// get Resultset lretaData objResultSedllletaData rsmd=rs.getMetaDqt4();int cnt-rsmd.getcolumncountO; %> GD<table>
<ta>
ff <% /print col names
- for(int ilhi<=cnq++i){ %>G9
/ - <td> <%=rsmd,getcolumnlabel(i) %></1d>
ttF% Y/ror %> (^s)
<lE>(Tt.*- /rprint col vlaue
while(rs.next()) ' il(./"'GD<t'>
'"f llJ'$t"'="nt,**o<td><%=rs.getstdng(i) %></td>
6q'z;lttto,-;/white
rs.close();)/else
y", G0<%l public void ispDestroy0
{System.out.println("DBJsp;jspDestroyO");
: ao)! / O8JgPA?P I Inru+' hhv'' I
Uudb?frt Y
r)o ' l--iaT-- r,t_l
tr(me : lffiildidrrss ; I;sT--_l
{eq re6 t
/tll Sk deru
tnldopaq1 e
l^lEB -fN1-
? Ajdbci+ i 4il
Use or \ rhe rhre e lileqcl e fs6vi ence mefi'>tAl i 5 JsP PrD €rarns ' '
Plo.e Jdbc pmprries f d.rive'r class narDe/ qal/ dbuse'{ ' duPotsc'r"d ) i" o"O'x|." I
0,5 ,JtP Iilb l&rctnneFc'f to rnodlfi fht- €ogrt5
rr5r Qra.ote fh,n clrir,ca k ng sltu &rpnechli'l-J
,-) 6ertd 5ir,bmi b hrrtr"n CopHon an d aclr-l-,.thmal vestldsr (Xtrom Vc,]-t'd'g &qa
fr€wn)lnl. to ciipft,rer*iar'e lo5tcs in &t'pF '
oJeQo..rtset}4ctz.dqhchPfi.iJDBk4le.rt,ccncl$aI'cmgclirh.olurnnrt.tr,rs
ernd Value s
ft'r rhe $6c,rce Cocle 0{ aboue
giutn an zt/ rr f rr
the Cde tbo,t Cc'l-''e.S l-o
Grr.hrqoHcau.g L"af.* Ext€{dern("
rqpricarlolr t P* fie Sta?dlrr\{4}anri l*"a**
-ist$*1.* U,-) + 3v71t'ole'*^tu
R'r tl.f Cocle plctceL lathe €vqrltrn.5 mcrnol4J .
gepl Og e e ;ne ot
DSISP.isP
Regtsrrc*ton S|!..e ssl (
-_(ol(hr-r p,sij
6 tadentlal tta;,te )Jry gtgq'e @!"igl 6ri i'ant hgJ
bpor 'ht- 1
DBJ5P ,J6T
tAc to<rho"ls + deoloro$e^rrry tz.3 u-e ,** l"t^"
pqll l lon
'Avoid &Jt ' println( ) I in oor 15p cocding to vender the messc,ges t.' B.occae,.t cbinc!ryrr.
beca's e rhis rnr,-res crs m plcce br-t cocle in ,1avo g 6.,L-enJ€ " iD ptc.ce o? oc^1, priorln( ) ase
- Lbec.n ,
^, ta name -_ ' _" > f<.q b a,}i K (m Bmror<, urin c[or.,
Dtretnve tofls : -
Thc6e Jqs pruvide drvecrcros bx Seruvo'q equolenj jc^va cocle io JE s['.p el4at sertr;-'Therr dTe J dir€dive l-435.
O Pctg" Direcrrv e
(D tndude Dir€c6 ve
VJ Tcrt li b D'Yecr-'vc
I Pr4e Diretrve " - page D;.e$iue
'--'
-\-.t
\--,/
h-, Pftr, Si -", d.ratD PluJ b rrpde and elc ' '
gbodard Svnrax : - Zt,@,Pane 61fiidtt<5'/, >-_---Xrn I Sgp l-c^x : -
Grmbul€ 5 ', -
px-ov/dq $lou;'L_ i nto ro isP PX like trdla{ e
// i^to. i. rhe dohlr L ood
fhcLt c( Can fxrsg he^A oj
/l a.P"rtt -l r"^(
It ol.Paa., ti --, lnqe
irr4rc,fs , Cn-fe"i1-rapg "
.\J.
\_./
6!ou-t JrP Pwgmrn h o*it'd,lJ ,
'j
langudge = "iouo" deRrqrr t ---a is\\J c^
Selsian = " hr/e' ( (|,-rsr)
snt3 arr € lrrmg t^c-5e
U VAJ-tn ,
-imErrt = "iavo.u-rjt . f , jova. nei" x. --.- -" f I arU-rv i, javo.long " *exrnds - "clors noy,,e " ff rbr recoro€ndec,l 6use // nodepa-r116rue
Ccnrcn*T5 9 e = " textllrrr'lr' / vesn con rcn* TJfe ll a"er^rr value : t."r/tnr.1
buPPrry = "16eb" [co) '' nc.e " // duq-rr,a-+ev-bautoFlusb = "h..e u
Lf"rsc )
e-r',",rPc.1e -" r.tr " ll no &Pr.,rrt
plnot ?rqe ="ktsi' Char€) / de?.^rr --t %tr
irfru.a&Pe ="t*." [&rst) ll AuL.'.ln ---'--' t'rue
fqfu ='' St rng "
tsE,LJagnorcd - " b'ue" (f,,rse)
ineo =" test- .3tP 1""i " /' z
-T, g.*rol.* g!o*€erServ terfneoc t
&xlr$t$nIrn JES
!$.!' /r.eft,.qe
l.iog get$,vrcTnfa1I
" test j5p prg') ,
f,es9ian." ft,rse " Y >
-E-'rru,
ob,!:d
Public
3
Ttlarr)
jsp E+Iarenf g€-v ter tdEs ) Pu nor to }ercl.(3}e *P )nnFllci h
SeSSl('n .
SessJon : r' &te'' y.7.-_[-.nuror.r rhe irorptr clt ob:e* *:st c'n
27.@,F+e cai\rcy$Ts Pe = "appl;caHoo
/roscood---tr ?,*l""t
^/.>
=Ql- $s,r *o rnat< e Jsg pmxram
Zt @ aX e 6o-n rc,rr\ rc
Ltable>Ltt> LC\T
ZF> LA>
zlatble>
lz @foige imrJon = )t ,, java' 9{,1 ' x '/'2
kndl nq ;ts rcsncrde *a Ktouxe" DrrroXro as l{s-E.rcq cle€Fla'= " aq,pttccrncrr,lvnd . ms -cxtcl '' 7 7
Ati> Lr+t z Svame z-l th> 4tvz
zltd > z-tA" r't6a LltA > 49>
r8s pnc e in rbe ftn^ oP f s -u:stC d'eor''t-'|- '
fr,c-k4-8€5 ln tE5 (d5P Eq/!Lctl,.^}3rv lct )
Sno
lol
zv ew{ languoSe ='&va'' 7 2 ,- r-^ .\.-.r,r t€ ,orirtcn io;*r"tt*j?w
-L) iodr..''.' sc"iel coc{e in dgp s}urra b€ F ifcn
aucro€t ).
q- taken bueP.{ Size h 'Ats5 btli ibe 3p pmgr.trl
' U Tu" k\.rgirt piLr te exp-nJeJ a'n-awakcatlX
{5
+o
a,h
Lr@WXe lornguaSq="6rr"7. )-L, ir-r"a vatu{( .
tr.@V'Ze btpkt = "16r., " ',- +:,"2,+. a'ee" t'u,*"'f*
* &rver sicro. tws &9?<o holcls anJ tntg.xus
-> E,rc\ Jsp pr.fld - rrnin ioinS one fuY l<t{ , A ?-i.<^ rW it rltu fttns Pe+
*re aq,"+ + J?P Pmitqrn un-Ft t its Qxeu:ion cernPEers
dn U^ef, Covt<nt ta brotoro" o)nd'uto 4J YeJ norLJ( '
ll @)Pr.Ie br-,?kr=" ,tore- '/.7 rocdk ,sti., bvto ,"-*, (r, A'P&*)
,
-[-uu, $e 1'7 v'qam +o @
gerrraHnS lo4b oun<* Q6 lou
ptl mc 6hal l.a11nr",f< 1
JoYb
6hCe
6E! -f'- z'f,lage
6.L'l.PaSe
tO L"$ 6,:,*V* n
e.s k b*u Sc* oll,,'drol fssFcnte
anJ tl'e fu rl"t'
olto Ptuslv'n3 oP
toiodcco @
5ccf Sending the cor*e,-rt
Jsp pYDir&tr] eKecrttldn i5
adrbFlus b ="twe'' "/,7
oP rhe VP€<"
Cqrrop leefeci .
a(foHu4.lou4fu'="nae''
GpNtrrc.l
16 $w-leu
is tauea \v
U;u P?er is
AtlhrDo$'Ccdlb
nortr.,ng
OYrCe
loFb "4" z.@ R.3e ltl:??u ='
/'/.epxe boPkn ='lorb"
-a -lTlt rt is no need oP erELl')llni Col )
L/ @)?ri1e tox(l<1 =" rcne ''
9;- Nh0l- i5 rhe d;PPcrren (e blo fti.* Idrl t('r ctod GPtJrtl€'l
P.:ntWtrrc'r
-) cto€J not ul. ^P'-
ir. inie"roLll --, dl* -8"1fu!i*' l,Artwdror ir*e raQ' r'-'
--) ou,rc trsePr.t in &'{vle,{- fxDfftLYl^tn| *+ abisrtre rulk4 imPl,.]r obktt p9l;"';7
-r CgnrftdJc clars oF jtruo'l0 P&LE0q€ *--+ Ghsrl"z.r* clax a? "vuca
4cn'ner-ssP kJ "-'
t r r- dcr-s no"f )hnoro f.o Excf{'Hit' - --a Ll6 pri r*L) rncrh ocl'l $roos JoE'rrcnri^
--- 1bs Pllnrl' me*)".r t n ,o?*r4 [ ureo^ =none) rfr*sho,rn* \v,
ruo;L:- rJ )^r', -Jsp goxu lg -iaF e'n o'h oc{r '^"n-' t *"":-====' tt - i- cz^)
t
inre'noll1 rsei p'r^rlhru iz Sc'"J 11e or+v,.,'- !"/
-4 Sn Seltterr6 pr-ogldY'l't )auflf<rrnX sl"cttd be enoJ'tal e"-g[crtiil ta;t& ad"Dtrvn"J
:
ldo(d"rAY iYl-9 \r
-) fn TsP bu€fu1't1 X daPaortt \.,
\-.E{{aYS Peges inJ5P;"
€ Tne JsP trrl bt-\ Prc€ram$ rll't et'eaule c"l3 cph€-'n exLL\ilcn 15 \-
rcrxecl ,n M TsP PYDgYarDs i5 cgre d cLs Elrc'rPa3e v
-) This eTY6 paSe is Verb usefuJ b d.isPlq wn-Kcfirrico-0 fnessa3es tolxr5 ,a'gP,N
i5 .taised urtril€ &eurfin3 fhe rrrrin &P pYDgrdrs .
__J of$ots deretop rte .ltp-bc,QPn bX FeePinJ ncro-f€rhni(aj erdir..{€T in rn/nd \"/
P6 *p* enor?oS€ Lo() f'rrol S<rVet- €cm$6wofion 'ts qu]re ingren$' \:'
*--> E'rctQc.gL CcnrftgurcrHcro il no oher€ "relokd Loi$ Excelrion #t*oJ;43
beccrrr-sn $e J5? WnvaLen-f Se'rvtf-f aUtzrnaitCo.t{ trcarCc^raop bYl'i,,;
-fn*ol." cr.r*rHt.Jl,
CiuioFlush="(:clxe" f.zT.u.ro-st..t
&seAllin3 ar.ro h..s b oi.r-n n
or.,ope.sh , "&tse" z,z
cl,snicg
prDgs aP
EYYcl pag eS crYe rficre tx
rai6ed iQ he rrrdn J5P
The'e are tuo LNLJS to
non-rc.hr,icaj
trxb affnS .
erYol lnges
@ Loca E rr'r Pc'gee cPj
cspec;P;c to edch isp rn{ )
--j Lrie enar ?dle , B is Errcl fage diffihd€s
GLobol E'ra1 W,ge cfu (coynmao P^ "u the JsP Prbs
dlc.gvatn
Broa:Sef toirrc{CtO
--> Jn fhe ctbve
hthcn |tdccplion i5
fr rrgs)
y€Sfitn!e
aY.jsp ;s ge &wp,Xe oP Tesb.jsp
in -llsr.jsp ccrnlyole goes ro rhe
dtrecf r€Jpcnse lO brocote-.r ad rnd&t]
J""
Other tl]i 5e Pst' jsg SendS
(.:tvoe;
,,--, 'the i.rpucib &Je4f E-ALilDilcrt) is noi Visible in t)uncA .jsp p?-Dgrc,m 6
it is visibte in Ewo'jsp |urD€rarns I ue a.-, ure rhts jrnpbctr obj
hgarbe t ffrrre deft.lts aLarr tha encqrtlotl 1f-ff l: rctised Prorn in rhe
- --_-e us€ <enc|l-y^ttre> k X 4 h(b.xrnl
Und(rstandlng l(Ial Errc'r Pc.3e8 Cor'.>t<tt'tc'n i'
r:f L'i'e,k13e"/.>
fi'r e
hetkAes 7^1hen l?utP+1cmS' aYf
"n JsP eq/P^lent
(ecgedirec-r* w )o( vt ta+pn)
,.-> whtnitceay'r'm ,'i 3
^err",lsP(Prr* P.ta
.r.6p'X. affi='' t "e, Z,>
hc* rneutg
Evrot Pane etr , XP .
38] +F, 6E
e4E4Lep$on
Ca'Aguw
</,ek ge pacrRgp ="ut,
[arvou 1
rrs;n fxrge belng R.* errcrfRlse iusete.
I
i1ltJspA?p 2
F;;f--
e,r ' jsp
hrgg -r^, FTtsi'isP
L/.@pc\ge ernflpclge ="er.jjp " I >ah> F{om Tesb'i6P 4b> 1lo1>
|---+ t-,x$ ' arn t
Iu i5 the Camrnco
ib ur;lt be Cagg"*d in
Tesr"jsP
yhe Jsv wgraYog o?
bg ualo6 lenot-Wge
JspApps
Tesr.jsp
Tctr "jsp
err. fsp
u*.bopfn c.n d
> k€.
h]EB-X/oF
f---iuxr.xfiJ1v> P',om Tesb'i5P Ll6>
Ll. \d 1=integer ' Pctlseaot 1"tla" ) I 'l' Z
X VAUre \5'" Lt'=-x'/')
Tesr x ' jsP..--
ZA> Pnv, Trrs:t'isP /)b>
Ll' Ctars C = Ctass.?zrName t. jav4. 1ar6 . Sgsn-"); ;z 2
the tlass $4 i5 loadecl '. L./, =6.g+Narnet) r' 7
ry{t Sctme os Peviot^J &['Pn
!.)6.xo I
Lllx-b-cqP >
{errcn - f{'t e>
{acc{riJcrt -ttg p e > ioua - \r'n 3' En ttlg a z/excqr tlan - tUPe 7
Lr .iob n= Inf6er.p,rsehtf"lal" )',, 7' >
Kvalue i5 '. lf, {=\r' >
ll etr.isy
n"@rr'|ee i3Err6{r{1ge = "6tt'e' /' z
z-b> FTorn en'ir? r)b> t-b'r >
Lb> /i> lLg.rkL\ > tkwf 6661 ='red''> JnJcrnaj flrDdem zlP*'r> z)teotct> zli> 4b>
ZW> /-bt> ..Jot > L61 7
th1 @l0r =" blue " >
The exccfl-too kct+ to ttttsed "' Lf '
1t. $Nn'att' t"inrr^ ("rk'e u@Prlcn\
GtoUaf Lt'rotptf'e ".'
= ercPdcn " 55r'dn3c) Z >o.. 1.
'yho,r ts r.eli6td : + exc'f rt <rn' h>Jhln6t-) / ) x>;
gtrdpc.ge gn dlt
Lf6 ,xrn I f;',e
/ woo611
1w,.je-a+Pl>
Yfques t &1t '.
-brt,
il',o,othost : z oztr ) l rv n p4 It ru :sp
w*) tsP Pl0€rrlrog Off fDb
;5-lhveadSoPe = "ft'Be'
tJ- Lt.@F,ge isTFr"aa,St Pe -* "ft'lse'' '/' 7
' -;-
6:
zlocclHc|r}r /e"r ,1r 7 y'lwaucn>
Llurot 'F ge>
z)wu - o.yo>
- Nba* Inppurs if tfre grcepHon ;5 rais€cl in ;rdn JsP PYDS @beD ''t iS
-Ib rmke ib Th€ad'9ft t{se
izt-g
,t -.flrbi-
-)
&nBgu'rd tllirl' Lorh loca'r and glokl elrcn Jxgesl
Loco\ It:6. tx$e (Ain be 1;.e/'rrfd
fla fl* imPlirrt ohl Excqtlon
nrhoa
is nob
Hrrt fr3
v's;ble
&rvrer to impremenr ffiPCO
%-ce
Qtnr'ra+el in
'mpleorenfi n9 $in9le-i1-rveal mocte/
cfiln-aHon Syncl'raniz-ed 6[ocfp coitt be
,Ts?Wvotuj $,arc't fiV;Ie tf|.'tbtnt attl
z^r@rnee
@ ptres JsP
iffc{
N0TEi irresPetFiY€
irot"D-,lcrLt jsp kr3 f .
-4 fq dc,red in%rorcr-hf cno
on& Poteno : l\2/ l)5
is ltv!'t 6 etvrry-\e
;n rhat V)YhLulet BaXe'
o? rtr-r;s othibutt
-As?b{uicl'- ) u(
isTb"ead&Pe = '' erut" l >
t9Ery-ovaler*&xvter elcts'g noi
lpaasaPe ,, 4 dewlt '
aPulrc ff 1z4e &rec'oue
s., rt;s DtrecHw ia35 'nPu F4e-no" l0l -tos
QErresr urts i -
l-zttp : //roarhost : 2c))o lWnrzl rer r.jsp
h*p:/ trartc'sr i ">ow I ls1*pps/ae55r 'jsn
o
(D
LLX
iro pr;rt
VcLt4fJ
Jsp ptLge .
iropcnt &l+ribur( no ohd artn5.lt %t cao
Comroa [r ) SX mbolS.
.-r d ivecn ve ln.lude la5 : -
ex ceP l.
diPPennt
OP c.
e,(K.0 r
Loi fi
Ssnr'ax '. - [ srz,nar.ra )
Z'/.@ i.ctude P;re
6qntax (xr"nt) 1-
ZisP: diredv e ' include
This tz"g is qiven tD inctude
he {t4re't giwo ro $srce
l"ru r tnJnPle gtctta2' SeStste f
o-rirr/ rorr
rhe code o( SdnL( Js? VA
qnd *rc include d code '
Pont 5 lo rtmeobel
oitribhles ofe
c0l-tle 0Jo1tsnj
Ccrs€Sen5iFive
Or+ribcdt n0
uJifi <F{8e diren-r;ve >
and the invat ied
al)u af,}ri brle can
orrYibc/$ tDDl Oo+ be orra:ed '
o"tn l^ muldPle Hmea ctr;rfi
eift€Y in Eame ?efle diYP].+ive t-fr (4in rnurriple QagedtruaHue R
i0
= " desr tewtte " 7. 7
Bte = " dest reearc€ /7
F rbe code & fu5r Pr$ rr)
JsP Ft aeusa ibs cocie,E
lts l,6n t e
--+ the code
the YEues h
B'isP code
---, [re* there is no Sel(I&t€ erectr'cm f<"i B'jsf (Delrntt )
A.jst t scr,rce gw g ) inctudes rfie code oq Bisp ( Oest f'rg
8qt rore jrl qgot nnt Saivlet cDitl nor be 3eneror<d {-ta
bri\\ be inck-,ded tu t\e jsn qportnt 3(1vtu of A'ts?
a?
ln
''v.>
@e rtcturrJ'
g,,tsp c.,Jirt be ir.lud ed rbe code op Adsp tr so
A.jsp grecLdts iB arn Code aod ioclutc,led &tbP
becoz
)
B.iY I DEsr 1trS) &'h
(tu,'te prg)
(A.jiP la -._-- ,.-"lo
- -. I*Lt"@inouae
t-._ (:-.,/ -::t.;
(o'jsrl
Co"|.e
v -, Drecrive frntule Can nof tllk e &dvl$ ptl oS des H nc.rton 6rq.- btrt it Cc(n fahe
\-7 htt"t Ft r J5P pr$ , Kxr Bre an.t elt ... os desr [9.
lixamPlc aPPlicallor) i
JspApp +l____+ wFB -TN F
Ncb. rrn I
I n.np
- zb> ftom A'jsP(begrolo3) Ah> zwz
Lb7 Dd,he ard +ime is " 4b> Ll'= n€to javo'criil' Daf€( ) f'> z-b|> 'l
Lf .@incrude A're = "B..irp"'Jf-
zb> Ptoro A.isp Cioa) 4u>
lls'isP
tb> ?ron b":se tl6t' Ll' in-t d= l0 )
lnt b:)O )
iq1 t=a+b'' 7'7
Zbr > Rescrrr i6 '. 1'/-= C'/. 7- -Ii'*''- *r//web xtot
LNeb-apP l>
' l/ ro@r\bost t 'to'ol JsPX'e+ I R'isPYeqA€st ur t : hitP 'r
--_, o_*"e lncruae (u.dwr.z) t:irrnof .rJ€ -rd,includec-r-) ir*'o"tt''1 . ..,,.l
.*.-', ?<n [undarnen]als oP JeP and JsP tr.Xs tek't l)c$e f :'5 q6 rD l0z'
'
6p-vle-t Co'-trane'{ | Jsp CcmJcql ntr plov;oks I rnctn-'J hti rt -io rnerhod's fo simpr;q
n ,P tLSs ure w."** 4
A0Pl icaHctn deLleto?rno* ' to uje *'ese rnetho4s in tte -12nm t
JsP &tr'n kgs I
---a Jfielc Atttnn krSs a're xrnl fqs ' cDl'r,JtJn 6n be u-iel in p Jsl fufls I ProSram s '
i Aoim ]oclu de : -
(onrg xr-t '63otax )s Possiute )I ZitP t ir't.',-^d, FaSe = (
r
rhrs ta$ iftludeS t+)e oul0taF oF Deslrnn on ['{'rrarn rO rbe ot"rp6- 4
)ndepcrn ee''l-! , 4nd its a.rft.r srr t\ be incltdei,-,
B.jsPk z
*Lts 1q i nftr nctl-q dl33 fd includ eC-'*) muhoct '
Here desrinaricm PYDgram eldecd's
to tt,e ar*y't 4 Srrrce pto6tzrm (jsl) '
brotot.{ urindo(t
K,EB-D.J F
z.isp: inctuc{e Pc.g€.' " B.i5P k
1>
zb> lrom A'isr( ena) .lu,//ueb'.r\
lwel: - aQ? I >
clalsej crill
;nlarnlLl
be Xw',uunt {* ei"p aoA B.ist
caus r d . i nclrtd e (:, -) fo rhe ioclr'' J e
\,
\.-,/
Scrtvce dsp PYd?Yarn.
\v/
r9t€
an.l e+'
a$U@4v\,
----+ lkyr the resPofisq $emtrarca b3 A 'is P Contr'ins r.be rr.rroc* oP
A'isP a"d B'isf
--, He!€ ttro dtPP Oe eyoltttl Sew Er
---altre jsf eyLcle,,t 9rurer- ol Ais?
OaW+ 4 Bist'
--: Ac,tioo ioclude /-jsP: inctude >
dd as &si PltJ\ '
ExaraPtes noPl;zdfi c'o ""-
&pepp I
H#
Cc.n tcrts€ Se'rut€f PT$ , jst 1,t6, [P6) fttg, [ex+
f-- we.b'xmt.
/ni'v<b> f,om A'jsP (begio;o3 ) Lib> /-b\ >
?b> ftire and hrne is "4b> Ll''net^) I'rua cth I'Dr'reC) Y'>zbY>
/1€$.p
gane 4! YudoLLt
^r€q!{! F sYI!-
ffir^twn' ,,-- f [+&61 An' e
to rna\.e Gp prui.'or'? iocl*drn6 rhe o..rprr oga"Duu,.** Qr&*-,Examplg c'fpli caH on
JseApp g
NEB-'NF
fesrsrv, jav.1
Iesr,trv , cl4!J
//TesrSrv jov a
ir"Poft jovor .&.iv tcr .* )
import javax . S€ry tel . bilp''\ )
irnaott java,io.*;
pulrl ic class TestStv ex i€nds l-lrr&"ru ret
Ye6' se-t Gtr.*tQne f texrft mr ") ;
p1,o pnnr\n ("tbtt Frcnr TesrSw P{n 4br >" ))
?1,o frrl.,rln, C zb'r > Ddr anA Tirne 'r','1 '5 o?LJJ iaua'sfjt' futeO):
ll ao rw close SlrEam S
3 /lse'rucec-'-;
1/1ct"rr
flw* x-tConP-[Xure 'lZsr5rv
Pr? o; rh / tt'v r " 1s1 ptk'n1
lla lst
<b> Pro""., A'isP Cbegtntn 3 ) 4a> tbt >
2.t30 ; iner ud e Wge =u Uxt" I >--l; w Vm^n af- Se'rvler frngt<m.zbt> z6> Pr,or", A..rsp (end) z/b2
Put,tt c void se.rvice ( }lffse.,rr et Qe#es t re1, l]ifP&l! l€]L f)esro',s< rts) r|.,mc-.ls f.9E'sE
L ilgrnrr* setHog s
Pn* t^l ;t t P@ :- r€5 '6ffi,J d to( ( ) ;
f c,ra)r)+\ \-'
- - Q:- ilba-r ls thf diPP blr,r AcHdn iMude and
C<jsp:rn.ucrc . ' .>)
Eireuive Jocrude
' " -, girn., tD irf,lucle rbe code oF DQstirt>t$n t>r! '
'- .-> crrc\L \n.\u5icrn tdkes Pl&ce Gi rr6nsloHcrn
phc.se oF 5otlYce ieP' so' it bs calte d
Surlc$1ntrit13 Cor) Co'mpi tcd 1-i rvtg icin&^3
D.rec.ei ve Jnctud g 1
(zr@i"rt"ae... r,>)
AotJcm IDclcrd c
---+ fliun b inciud e rhe c{Irpar oF DeSrtnax^ Pr5 .
.---') 6*hu,{ inctus1crn tat er p tor€ of Prrn-t' nre fu9u(: r
flro(esrln 3 Phate. so, itis couoc/ $ narnz8)r'd;'t,
(,n) t2rt ri^. Bi,t&y,
I -)
&!o\L t&Ee &rvtet pra nraro a.s fusrimfian Ffl. --) (un +ubf .g"ru leJ progiarn ..s D$ ii r,a]J€", fJ -
'+ Ift lestinaHcrn F6 i5 Jsp f'ro; u ctrn Jsp eT,oftrU _____, Co)rr 5e flc_,rrararc.J ,
fe'rvltt coirl nor be 6<mancrred 1- frrof p-yrn
'-- w6rzn& d to use o:hr,^ tl.,e &srinog<m pyD?rahr -----, "ceom<-n Aea b qse ohon rhe deNrqfi.o"
ls st&l-i c r,,Y-b fts(rrr(e pr or\arq fhtrnr grg,;rr p;rp,
" ;.ni Frr. )Fmff.rn ls
dno(r'i a (rrc! nic'(xe frr,rya,],-
---+ 1L anb use ei ao, cod S tc,,do*l sA "t-r (d 4 oot
[ft; &'uu rt,s<e0"1 )Xvnl S,, nfz,i .#
td x'l|, sd^*.'x is Elu<-
.
----r Dcs not ctse yd. inclu<le L-,-) ;r't<r"ou1 &-rei rA,lnctede (-,-) inre"" "Ig
,r.(t 0'€ J
Rcti,cx logic
rt.,in - ri'Lrn-t lotri <
(Pq ukbpale s).
0rorev lt6i 6
htt mtun -(6nftr* cha,4 4
in ew"X jsg p3. Ttds
hte C&n Place roe.tFiPl€ DirtLH't€
$r-rr t e 5;p [Yru gra ]a'
Inc tu i es and rntrl,bp le
o,lrr),,,Acl-to,r inctu&i in crne
pyoblem : -:
nolt i
6erAa{ Iolt z
..o, n -' a-** I uB ' '
t&r, &'e'b0a3"L )
!:_5! in
in eur'g
in d;czur. s
h-rbtltrS€ , -llrrc Qrn e
beadu',, &otr logics
it u u.)arLr fo kse (.eltz!i n log ic
p\ace it frlv one fir"e Ctn d
qie Direaive Tnclu d e
(zr,gp"xe , ,. r>)
heo{r, , ho tt.'r I ogi cs a"e Pl c'r e d
u't
rnqll-,Ple tirne6 donoi plre it fu mulr,pic h.e-s
it ftrr mufiPle 'lrrnes
oll rhe fine rj&bEt8gg lrader , hrc{ t(./1}:.n* ;6 'Sam e
Lax aot r-eLrrrcble tr5i.s (p.or.^ ) ,
Jnst
$,'t"ttun ;- qnd Aetlan]ncttrcte
O6p Prtl
beader logic
llain- ccnKr* logic
1p11 wetcOane]-)
";_ :'-I'utl.1 logr L
J3p ofga
(zJsl: rnu,^ae > )
a-
/'/.@
osl n g brh Olrecb ve tnrtude an& A*l en inctuic '.
JrpAlPr
tk:n-,e.j;9
la|et-i su
043{2 'itfHeader -j s1
fo6t(r . h.t.ln I
ffi]Wy:'llrh L--J Fta NaY.t-r Pt'otc'o h'tql
ItRtr."'htr''t
Lb:. > 2h\ >
1)> Li> 4aqn'i€ 1 > 4cof'3 l ar\ ri 3l'u-5 1tKrv€ d
. . r^rbvo, r P<rtcr,l vr( ___+ hey.dtn ,j lpy9!y Q.( c\ici. or'' 'ogpm+ -1 ist --'; ]-lt€ocrh
lihec^lor 'j sn
Dai.e c.o & Time "
AY. :nea!
zbrl> zbt I>
J<LDq 'udt &fc () Y' 2
zrrr.rryet€ € > 1{.iJ ,S;zr:b Co\ur =rtd z 3 Q a K A N r Fr {lkrnr: 4woryl^e e '
1o\o -ll zlan]<x > Lli> 4t5>
-' -'_ '.
llUcaaerlo1;c
ckde PaSe =
haj n - cznt(rf loti (
!Rr{ -c,fJo.Pc'?
e 5)
trrci.rle fite:
')nctude #Ere =" ltrr,,Aer
Ylcuo - cc'tcr't logi ((W .d.-apag221
(09namic )
l---'--------' htero'
^ml
' tff,t-,
*- -J oxb{xuieu -'-+ JsrApo ? ---r FlrLi 5 \
Us;og ng Ecl-r' n le Lo F
eli rP" / >
[ffhr'/. )
E'.llrokLt lo/ Jspfiv' q
h* koar-, Qricl logits a"t Yttast6te lo€ izs
- Pxcrmole 40licdlton
Lbrl > zbr)>
7- #?.-^ tuia<,v
jr ? tjrcoa {he :
'-ttbAm+ --=r hte t'rcYne ---r ltzrme j sp
ll+t-e ire
./ r.c.b\e 7
t, l uyl;i ;1,r,^t ) -t;'>
ltd 7 4sp:;octqdc pa$€ :" Heccbr ' jsp l' 4te ,Lltt >
1\ -- orclin t*tFd - t. tl' z tr '$reiShi = 50 /' 7
Ite >
he lco rne t0 Scrr$g q T.cbmlo3vJ a 4eco.lec'l insr'' kte^ oPknn\
t'ra;n'tt5 ao a1t Yttyty 8l@ Techf oii'[ica lire tatn"lE€''NEl' M\';d'('L+
and w..-. Lbt lz
'To vo.,n aWA Taettu cricv /:a Ln*P='tl.st':&J 2 fu he'c ,la> tbt17
pffifu* ctict( Za breP--'r'0ca'itp"> hutt 4c'> Lb'r l>
Ll te>zl*>
, r -'?nrtr' )&z5>nu-.r
'rra LrSru =* !o / u 2 z:l'@iocLuae Bte = "F *" 'htt '"
I > 4td >
Atr z
Llwt< >
*c{r-!-j- File iqrn'
?u*at* r --4 @ ---; j:t '4 oane L )s7
ll 0tfer'ise
ld*ne >
zl-- hec'dcr - - >
Ltt heighr i >o z' ' t
z-bd > l-isn: inclade 0o'ne --" t+<a lan 'is1" /> lltJ >
zlt\ z
Ll. _- mcLI o CcmJor/- __ z
zFr hel ihr =" ('o'/"' 'L td 7
M^, ' Mah( rh ----j ' Pe1 zb" I z
*-. u^." ----1 JaI,I'JEE tLrlz
p.ar ' se-tr-L'a"r --)
T'ua J €F 'l4v I 7
'\aT . P'v't4o ----i &ryt ]arj < ' 5) >
la brt P - " lio'ne 'isP" > \orn€ z)a '
/)td >
4tr 2ffi:I@#Ll. - ("n K" --,
^'rrn hc;3*- rla r' * ;' LY'@incu^ dr g're --
zln*t' , 1) Lt '
" FrDLr^ . Wft,l' (., zLH>
a-' r. gE- p'c.rrr !&.bn:or€utd.n --' [6P-'---l Btcnc.me : @Vqq' "i!t
/? pag ea ,
"ise
l4rble >
/!-- heodet -- 2ztl hO3tr = "yo''u -
Ld > Lns?: lnct<"<ie = " $ec.de,r,Jrp'1> 4e J ,
zltt >
/l-- rnatn cofl.t.n,t --)aft he;7kr =- (,ot \ ,
LH>
Carp ,Janc,. : lfrre - reTris: t< " ( ) t'V{l 2
Adv - iaoa'" (*fre-re%Ji{..t< :6tre1r';a) 1ib'rl >
Sln1fs : CP1t -,"+"J, },e L Ad\t Jau^) Lbr I 2
AtA2Llt'r >
Zt,-- &owx -- >
haXlrt ='trot'" > /l@\odude
Quxltexac- klt -Lt t t ,tlc,Ya-a+P >
'rt4/ert ur I :
La fue? = "+kt^c ' j.tt, ' > lnq'-t 4r,->
LL1>Ld
L)tt>
zJ,tttbte
- wcb xlrtl ',-
l.-rtxhan, e - htC- tisf z
LuAcorrc - kt"t *trme"ist zl"c)z.lme-fiI< >
" fsrrtt r . h-Frnl ' ., \ ltr t
-lpJ'@,48 r'' '1 (a 2
fr4r/i torr,rhosr : )o)-o lJtpnp " f 4ln^, ;, p
Processln g clienf gnreoj€d Terues I bg trsrng rrxrlHPle Jsp pragramS *oJ' aoe r$ca ;n
clgniog iS Cc.ue d Jsp choinln5 . (norbing hr.F JsP lo JsP Cclmmoai ccLt{ <h ) ,
<Jsp:include>, < js?: ftr-ard 2 ktg s ct.,ce tr.g krcd autrcl DdJ-4 +- rd'-Rr.ca.ia C-, - ) .,
td'inctude l-,-) nnerboc-ts .t" feftrm Jsp cholning .
Tbe Jsp's thc* ae drem in Jsl chuninS tDirl trse Serne re+rst avr I respdnse
ohle.n
ZjsP: ftrntmrd ) i-
sy)r4i-:- Asv:P-tjJar d page =
"DesFi crr-H on rescurC€ " 1z
l.jsp : Rmrc^y d z pe{ Pu(ms {.r,a."U n g yLq,1.1p{t rnocte ofl jrn a},rn7n ,z,)sp: inctc,de > Vnk ms includirrg rts pcmt r ncrcie 4 jsp clniw\.
Undei6tz.ndlng 4Jsp: &rnaar d > , ,
svffe f&g€
b drse'{ (l)indd(nB.jsP l>
a aisP: P.""o ar d > lag ;ntctrnf-t1
-> lhne is 16 DincH vg fto-c.., .,t k-ty
Lorl Achlon inctu& and &re$i6
E a,-
th.;s nsnrnrc ]il, ontg rbe lrr,-,lar+ut til De\t pcrge (B{,e) 5qrr,,lq rbq
htrn t arrpur of furce (A.;rl ) oirr re disra"ta.
uJes rd - Rmror .{ c- , -) ..,e$od .
oolg Acrr ao Qrru."td t<r-g is arr;labte.
inc\ude lz.gS.
JrpAPo th-l--'l A is I
f-, o i,n
!JEfd- If.J F
':.;'l@asp'- N.o,u,ot d Trxe'
9nod rtspttn J e
&rl r,.e f."re
dur, n derFtnafott Prcgrcrm
cLSlnS llq,iPuar", f4 . Ljsp^,Pc/..r ari> .lzq y,r.K b
crr LJsp -. inci/,-fg, l.rfl
Jafe tt^e &.{r}orf
Lryzb> Pror" A'isP alto:
z_b"t >
Iblt and rime i6 "
/'l'=nl:-:J Jam'urr'l'Darco
zbt >
zJsp: Rot^r.' i Page = "BusP"/z
z5\ 7
Lb7 end o+ h Js? <lb>
//t3 is?
1b> Ptr,rn I.jsp 4b>
z'/. IDu cL=to :
;nt rfs(tf = &*o,', '/. 7
-ihesq,,u ccte Va]re is : 1,y. = resut t ,/ >
,!(b-xrrlltt<.b -o[tp l>
'1.7
cho;ntng +he
a-t
Thi s
zjsflftrcoarL7
in jsl t"gs and
ool trl:or.l.
Sarrce 6'sp frrDgyarD aar sqJ
adel;dr"aI \ayq?axunetet
i
-y ohrn J5p pyucJrarn 5 aye rbtre in
u-l€n onlS cts 7he S"b kq c4
.10 o{dor to re&{ Vcra..o-l;{.
4 exprese{o! t6{.
Odd;t'l on or
VdtuL
altrlgd( S
in 4P/b7 F,o- A i5P Llb >
zb1 7
fure 4nl ;ime i5i ll.' ret;s iarn'uHl'fuf,'() /'>
Lbl>
L/- Strn3 S'" belto" i 7 7
ZJsP: P,,,watd 0rge-"8'jsPq
lrisp: porarn r,c.-e = "p, "
1.1 sp ,porom \4c.r'e :. Pr"
Vabte = lo' 1z ?
vdse :" L'/. t.--5 Y.> '' )
er€tdtJ kt o adch \'J c'n{ Y€-gtre 6t
flr' ofnfrcr VdoAeA
z hsl ; tart: er a z
to B \i6?
z-U Pr.rn B'ist z-ll :Lb\ 7L:/- )$ A=10 ;
inr resolr: ^+a : 'l' 7
llre Sqlb'1t volrre i5 .- L/.5 > vzsct\'$' >
P, ' y(4 oar.(m vc.lqe is , ;; =-*;"-' get}aftrnerc{ ( 'o'" ) y' 7 Lbr 2
tohern Lisp'.kxxt'e > fun 1b n6f
Dep ld{ee rner.f dire<rag ShalcfaYr l-
> lzg ar a Ccn & F{oncri Eta}arunt lo ,-,
us€ ffnerat<A qrnut-e? sqaar fe'e
:t/
r'
9irr 4v'rt i5 ,=aoooo, rn i"ri 6
Seiernd , j sP aS addj ilonal re+ fo.Jt,!Y.
attal5 ure l jsp: k,,.nc,,\a
<o rhof toe C{rrn
e-ld-r.r-e/ ,
tdEB-f^) F
PrDcesg F rrr -js p &na Lt:Ir ant b
Vdke Asio g Lisp l pomn > \J
Reat r,:or t d Sen..rio bc'sed EaomPie oPPI iccrtlco cn-t ZisP: Rrrcoc'rd > I lisp'.Wam> k's s
oa Serw r
(\".Tt's:
-> lrre Frst .JsP Po*^ dS tl\e ft+Le| I to Seurod , j sp atl.d al,r^
P.-tr1ptc,w !d-@€ ;s " L'/' >re414f 'get?.l.,...t'<+t't C'p'" ) '1 2 Lbv?
v
in rerct rrlne
UeattK
projci-t5
in 6cctrce
U3L
JsP
iP bixar.,L >' Sooo oln nrp-g: t__-]
r---_lr-__l
6iu arn5c(n+ i5:qroooo
f,spl,ePq
L----rrrb.tmr
< pgfl',r octicro = ''Ftsr'isp " merh od =
"jei'-
Trern Pnr- t /- ioPccr fTce=" Krt " flarne:" 6' lz tbv -
tK.rn erq : LioPt* lUoe ="'rcxr' ncrroe:" t3' lz Lbv 7
'' Linlx''t lgpe ="a4rnif " vcttorel = ''G"r Bil' An+ " l>
zlNamz
Ftsr
--2ll U tsr
, L'l' /i"t"'l f'""" }"rc
tt = *n"$'3*Po'o-* L"t"' ): o ^-' l''t>"'5*ni no\
?taar *" = il;,"h1* ** .;:ff#;:..11;,Ptor* 9ft = IlaLr '?o"seFlm"
( vagesr' u-
ll cot tci" orrl t
Proor bc.rnb = Dhce +fl$ )
iF IUo-t t-= Soooo )
t 't'' - - -- - f,s(a nanne i L't' =n&rn€ /. ' +o' 41' z-lrcntt' > thr >
::'rt::,ff" u'l *t " Lt =bamr r > z'lb'' zti> Atc"tt' 2 zlt'r "'
/r.3else
{'r.,;1Y-'
(t"n,rtd m Szcr1d -JsP - -z
" $erc,"rd 'jsp" >ZjsP: P.rroar d W1e -
. 4isP: pc.tarn rffne = "drtrlt" \afue=
aiisP I -Pr.r-"ara >
t'2y.--bo-l'17" l >
,., O .r-L't. \ -t.7-U
J ---> llfgso ser,.a,jsr
!t' llnad reqges t Pirarn !@
Shing rr'me : Y€ry4st ' x*f*-t* ("r'' ):
Ptoar cmr -- Frlc'i'poxeFroor( 't4rresi 'Xt'Po*r',t*o C"r- ) );
M@+Mffi
-> ''.4..e9 f p&Tdmercrs ccr'l n3 ry 3o.,lce pa3e at'e \islo\e and occer sibl e "' ""1-
".,
rtqJe r,ohern 3uot.'t { o\esdnaron Eqel cr-w ilrcjr-e in chai"r-ln3 :
leqflsrulr i btrp,ll t06&lh6i : wo/ JsrA'r'v<l T^^'Utt-l *-t^"h" i(y
@i- r,*,ett rtr.c
yJlq
Dirccnne inclue de Z'l.@ ?afe:
$ere is no Dirvcnue ft**'a fug ' coh;te rtre'reis only AthonFtxuora 4 ''-
.r--,- ^-u,iHe( , t t'x g--"rrq d'e
\Jry Diwct,ue ta35 rc"fum *r'r och viHes oF l-t{rrns}afidn Pha-\e L
reces#tb&delnSa'rreJsPreloredfuf,sPe'4'lrler.trF-wtenf'Drrr<'rfusteCar'tf'-
d-isrod the dthr'\ 4 Surte's? ryYM Buf o3itte pevfaming S*-oan5 rlrLe*- \-'
r,rle cf-- chorrunq the fu'l a*1"u 4 Sl -t'stbe Dlsro.ldec{' \-'l
u \-,
9, *e'ce is no d;ttolve t"-o'd Fzg'
/s> Lt> ILL\'Lt-t\ > The 6itr orot is 2 2,1.=larnr t. z 4&yx<4r 4;t <1t",v
,ucb'^m I
1,l',tth -cLfP 1z \"/
, \^."-(qibr e llleshlrA-,-
€,:- t,lbar ;s *re clj tC b\to " Puge'' aod " ?r,3e ccrorer t " ?
/fearc,.rcrre Dias trrt ar.rr.,.n,t cnd ?rw 8iu arno L\l-
Ptoat djsroc,ru . Crni X 04b f ;
Ptoor fo.t : omt - dtsliun_t; l,z
l\'-- D;dq 6rr\ orrcrils - - >
zb> zi > r cenfty > Jhe fttrol oarne is :
z-lttnk, > 4; > z:].6,z-'1.=Otln;re'l'> &>
043 e rct*eK t-
-t botds mut$Ple duroi ts o-bou* 3rp 04ele
. lrEe grgltdl;Le | 4.r6ptr'sA wo&e ' '<1at'tc
?r5ftmJe , furaPuXe c.nf, tst '
' &i'n 5e ,.eA nga$'l6th e' 1a1P1tcir
ahldttr&'t tpfute dt^,e-ining euFoyv,. jq rr1s 4t, crede d[?Cedru ,9cope,r l"'t4 op;5r"]er
z,Jat>
Pa0 e
-> Sleuh c to Oreh js P
--, qye if java.lang. Ohk"t
--7 holdS ^|"p..,.n* of Jep eqoalror Se"vte't
clars ohPrr
- &.n\- 6e useJ W Vrott #l*"uOtl'ev imPtiath ohjes.
,-) use?r+ to &-e(o,-ende,$e decp.r614qr 19
\t,tc$e korn krpter tX vat"{cffie^ tf^e3
, l,,p ;s ,iava-x ' s€r\,ltr ' Jsv'Pog.C''x't (A+*, spec''Qc n: eaPk Jsv
hc,r,t- :r^or soLrng. nu^p .
gll:es< JsP :;ncl'rdq <JtP I Br,,:a.d > +ag5 rnrrt be used (ol-rn gr-rrce aoa desH nolt oD oLr-t, ve<,.c(rae
PYDt{c,nr,5 Cts r€Sicte ;n Sarog trb aff)lico}loo,
resfuDte ' se"d&dtre.t(-) is So-e oS 4 jsp:, ft:ro 6ar d > i ,a p",,nr a (-,-) bul ib ortt'&6 us to
keq rhe Source, desHnoflon [r66rams ih rroo c6f ftr'errt &eg c-pf,n's oe k rne Se:n'xn cd
+uo d;Fk*nr &rw6 ,
gt Nhc$ i5 |lle d"+f olr, < .J'spl&,roard > ond re$.sndp€dry€d G,-) n/rtfa?'
y tePPc.,t rhe diPF<,rences 6rr,zn poA rd.fu.oayd (-,-) , ves'sc",a Redr re*C-'-) P-
lr041 r\ l)sll d,iscc.sstans.
Exorrp te AfP on teg.serdQedirctt [-)
r-oi nAtrr.l
3 I =burtJ')j
--/pedne xebse'uvet
Dleru'5
GpAppro
shous fteS€a'.h r€su\fs
k(**^
6e""t-(eho ft )
\-'.._''---'-l----' 9Lllt htrnl
p *"* ,'o
WEg.JN F
7 UJ€-b ' rrn l
Seortt' ' httn I
"^ !,cir.j5p' met$od = 34',d Povtn odifir = x(
So..t' 5r'in6: linpt{i tgpe = "ftxr" 'o-"
=" Ls|'' 1> zbt>
eing$ iSpe: "grrmiL " Vcrlrre ='3g6rcb"Iz
z,lf<n.'z \"-/
Seardr . is?==----
z"t' fl*aa $.'n Juro. \--
rcry-.est' gttPotc."'*' ("fsS " );:)iriog SS = rt4,tt(>t ' u- '
ll vcdire.r rhe rcryrast fu Gugle'c'o
{espdnse ' 6eodPecr,*.t ( "5m:11 wwl{ . 3or6le ' co.f n /Se.^"cr, ! q ="+s5 )' '/'> \--l
l* P-'"t r{'t &'tq +o Eotlt' -N eb' rt'n tGt-"r -6+? l>
qr- Ha-, rrr.tn 3 (I]ctS ate
0&JrinaHor\ Wtt* ''
thet to gors the dora bltD {*"'lrie 1"X*"n o#
at d ' Psnnctficrt
rt e sa,ne gtdoPPicrltcm
P'rog{ am
ry'
(avw))
A)
B)
it Sa.rce J5P PYDgrcrr,
u5e re+1e5t Gtfr;htll(s
(ne So-trce ond
use Se:6;crD c'thih'$e s
Dest 69 musl us€ Sarn€ i"eq/a€st }hJ eu )
' R ott' 9m g hootcr t'''i nd' ornusr 9€f re?u€ s I
C) use SorrreLC,ar*extf of"t,*- a+kiatttt \--'l
trhe 9'" te &nA Oes t PrSs ne€d ao h use gntt ttqv obJek a4l ned nat"'-
,et yeryest €.'r', Sarne !66594 rolndo<'r) \-'
D) fage ccrn tort - o,rtribuKs n tvpak 6]uge
gope ) r
\--l
(usrngttutpqeGre.rohjed{rBcd\cYecrfe[]a8eg-ope,ru1.fi1.Scofe,\,
Ss9\6D StoQs ) cl{) Pti tc,l}l 61'} scDPe t6t ia"re s ) \-'l
N01E:Jnsr.ad .l'r-6p'n3{ji$A'b'coptlo'nstrJ(crnLLsey4eCwatat6&r<J'-'=:J\,
tD do rl-e same' r- 6 r *a\( "req^.*r cfrri br,f<s, -tel6lcm ,-'tt'iffi 't ,-,
Eg usin3 loSc-Gtrt^t o!u€o{ r-r-s Corrr Cn-ed
c4Pilc$or cttrisL*ts :
J,
ftne Sbt,te ctnd OPsl [nQs
Q"l*et t,.,i l- |r*9:ll r'-,."rhos1 ,ra)ol JsnlvolbJ :9y
hhen Qr'ne jsp pr? oroA Desr Pr-X rtstcie iq rc'n d;(P r:erc, WIi cdrl c/ns oP 1;g{ cl;€fur.n+
oruend
Sau.i / StLr-\e sua./et
4Fl ed'n q lb rheU(J L> "ck.t JgApelo qrpllcdton ,
alow dlcrgrd,nni
1s Visl ute
u.t o? r6l9lf:S"'{kd',"$!2 r'*rhod
lesttose r Senl lld rrecr f uir I ! q=varr 4p'--vara--.' )
rt)()t 'hoLdg
Vr^tqe , geovler I OSe PrDsrornlng Ctft;U^ru c(y€ 1ro coay*) crhibd{ i5 a logicrd narne
I
.etrricd oirb hr ml i xtt' \
qry:Lrt'e'l:-
a11e;-i sle in
\ /.tl"ere atttk.,f<r o,u VtiEle
acre-w-bte' i4 all ufLftsx'xce
Coue .rtr sr"ng )Jsp Arp ) ftdeba+Plt coNon
1a3 atlnurres '
-) oltljLa4a marroj ln 'r-Efres f ohi '
--J s(tcl ftc t0 €c.ch 'rq/Lres t and Vi6ib\e
-) r(4uesl erhjk$L cYeor'd lq -A'ist oP
8'isl, c' jsg trt not in Ditt
Seel,l cm arkfbu'ts r
-a aiLb(rl.t{s 4u",o,) in lrtPSeioon
-->, g?ecik c fb goLh l3ra^x<r- aindoc'c
Srvjo"r afhist'ls C'ecu,t,*d in 4'ise
an I 6os14b\e lrr u{'( at!'t't Jtt'
$r* 9,n< Q*"w*-d*Q)'
4pt cart on olMk"r<5'-^ t )@Aon abj
-= u[er:at-<-) flarno\ ;q tcur.rter (orrrea {- oU e{-f / 6{P I
-,-- , these c.re 6 kAal attr;k.res in ori.o{'{r lrtd$ on . . rhc'-r mea"-"r
irl oA urcb nesortce fnocfrttms t.rlrhcrd- ary Ccndi lJ orrt '
-> &'rv t$Ccnr!-cx b aJf'i&!€ C"rerr}<r{ in A.j.g iS ViEible c.nA
ofu
anc] \t;ciule *w in aA ux-t't..s<"r'* .*',*^ *&.
h 6erhn1 re4rrerr k u*^1 "'^3 (h)'i"'u'"u
r/olrar4r "P ,^xLa$Lcdl"a h|{4 ILod Xet ,p-lAqr
ftrotr-5h ou r€glresr 0gcle.
o.d
'To
+o utlersfand rhe g69?s of aWutxs
afrPllca$ dn
JsPAa P 11
A.j6?
8.Jsf
c.J 3?
D I9P
1"0."*4 ;lwslaflct cP fte cyrzsl @ject h.i on utinfl anC lwe< f'an1'rr d tl* Lr"t.t
{rr,dru, R"^ ahtc\ 4'( -t fft"tr ,{e4tiut '
75' oede ,Qmattt' z'
gAn;uo. (** narne r atrrituja VaUe)
; tJ"..)crAnr,a,n ( "ral"* vlam€,
-P *"J .$'le^re Va&reF
6"Arw,on( ak;ax nq",
fi temue ah;Utn
*nr*)+rUu+("t"*. *-,)
O P'*"
oalr,-l*'o-..---
'*iI--'*'"''
@eb ---"luxJcclo\l col'l cvt a ?rD!'d n&r,. e
^ --; f;,u: L
Pl\eh:or.c: n
Ujing ijotg€ao5 xo ts
ty' 51g------o ntropro)e':t "-1
O'c orl
tp"r'*bOriu -----t t\r€.rd ---a 55(
liA'i:r
Ll' ll Cfta;l. At+rr &!€3
rt{A(!t' ;;;("c'rttr-''' "!6rr" )i
6€sstm ' SetAfhi*trt ( "o,tFY a"' " v'rr" ) 'l
afptlconon' serAtt';o'rt [""*t] "v'"rs") "
'l'7
It:-- &rroarA $e €?^esf'to B'isf
f.isP'. &r,r,: ar tl lzt-ge = "B"js? ' /z
193' Qc. on u,.b'o{ €s ---i frtui ---JsP --"+ Flcname ;B --+ Eru lt
/10'ist
Lt-- rcai r'fFfl bqft Va-trres -->
Lb>
atlt L
0J+17
\tf\ 3
Fiol]n 6 isP LIb> LbrT
vaue-',- t't.z r€9&e9 l' ' 6erA*t;st-^-t'.€ ('' ar* t" \ t'z zbt >
v6lrre'. t/. = kess on ' 1urkrr'tsuw ('**" ) ^t'> zU,,
yojttt'. /t =W' gerAit''t5t^tt (" arr'ra") z'z
Ci.P -->
5rP-q!"
$cp8b
J-n""t d
Pn"rrc.l d
&dtt€'i€ s
.ll c.isP
Same
r\e tclre s+ +6
grrXe." c"sP" 1z
,-_; NeUo -
as G'i59
/ l --
Lifl,.
R'c .m
Q.c-c,n or$gc',er ---e
llo'j'tSu-rne
Skit'T I fzr.n rbe pr".]at
Pe?-rest Ua-L: Caive
0n d CbSt'rv e fre d6ft' Ot
hrPr ll rrorbost
d6hr c'lr& cn
Pirs t rel,wrt
&tfribrreS'
rro>olJrrRPe'"ll,j:ic.JJPD.js?
*;5.Ues i- 6tri 8./c5 rr on@,-^ and
9cr['t' c'th: b"""cor)
Sarg e
YD?e
crecrff di?? 4fe5 4
crh ;hilc-g t &IlP\lcdlon
iS letP sLoPe
-, ,r*r", "c''rt'J '],-ff: *"f*.
G$;&,.R ?
*;
grrSeGnrxt' 5e-iA'u1rb"t" ( gu'l "vo]a ,,
):
e\."1t
r" s. fu ^l-3 Ess I9N=IALE ) ;
---e C"rc*<S "6+r B it' &sslon- 3co0e
h toroJifY pateG*e^t a1{'kllyd*:_<*-"\.ptgeCvwxr' ser[rrlhr'rc('c''rht'; wlJa r'
f\tr.o '--' 6sP
-- Ft€ r'orf\e ' 2 '-' B-n" 'L
as D.jst
PrDictF -) R'r) aJ
+o A'iEP aod $rue o$cr re44ost to orf'c" i'p ln'is'
Nolviq j Dith Poge Cot*t" r
.' -> usinl IEE-b"'{"'6q1ect ae
P&8e sdDPe 6161i!/e5' Ser{ldn
'Y&ipest oihib'leJ fre ' dePt"tt
---, rnodi pies olK 1 vallr't op f.u3 e &tf e
poge Gnrerr , 3*AtF'ilu'.t C **',
---+ rno&Pies artia val*e aP
''\hJra n,
Frge Gr*t.t
sessloD goP€ .
. sEs5JoN_scnpF
to rer.c\ FJeGr*t"f olkr;b-Lt-e Vature '. -
Sry-
Si,'ng volue : (St", ) ro3.Cot.', 'gt'ltt'n"t ("atr'r" ); -
-t wt\s " crl-|r 1" dlhirrre \ia-L{e Prot WIe sco P( \J
Snrns Va-rn€ = (5"rS)?cXeGnre"t' grAtr''u"* ('l'*"t') p3' G'0"'^t - gEss'otsteuf
--r rtad* c.[t{e a}SriUr-r-c Volrre R,'- Sessi m sc"ne'
T reYx-Dtr€ prgeG+crt ertrikrtt " -
pogeGnrext . tet**A tu"i g.*" ( "on r' ) ) \-,/
\\
--) rtrn6ue6 elftt " {,o- F:.ge scDPe \-'l
,a ^ / \\ G**t . Srss: oN - SccfL )) '"pagetrnxrt' Wrro\teAttnbrt€ t oJha, pa$eLot"",. t . (J*-"
-----, rerndr€J ''otltan .Ro- Se\(lcro .S@e '
'\./
To Bod efrlbufe:- - /\ .. .-/'^rr-"n',\, \.,,
Pcrte Sco?e -------r 6t-trs F ScDPe'----' g# on gcnpe --'-'> c-4pu rarl on Sone '
a'9-- " "*'-:^:;,i0"""'t)
{ea'cme*t'PinaArm'*"ut) "
K "*
is *e d;9P bl.o P3tG"t*t' 3u
; llo,***-t'' -** Eec'*chei & 6* *'T .#
#ffi"t'", ) paseGnrenr'f,'^aA",,-r farrrr'' )'rA*"rur.,rel artrt'' )) \"/
in rrulH ple g-rlPe6 - -Ihe' crJe'i is \'/
. r) q.nn-rr41 rrrr-rhoo{ Se"cher fu' ''h{- tln" ^Jt'o'n 'n \-,
uoheta Cts the i' ncJ' frtn:" \ / ' *' \r
vnrrt$Qle (CrpeE,
re hno gn{i5u}es thor a*e belon$ng to tcoo d;Pf<wnr 3o[<5 o-e l'-i'"3"
4
$<* ci €t, afin*trt in
Same\^nrq€ i\t"', ftn1flffiih'leL) "ret'ts $e lo-otn (co1e aJt.ribL'*e'
JtrArel,
A.js?
ll A'jst
B'js ?c'jspD ..tsr
1t' ll cno:e orhdulJcs
Pogc Gnrt^ t ' soA tttt k'te ( ''a*tr"'
pg"Gnrt* t' setAtt'it.,r-< C ara e':
11.5'o'l ("a*rf lcLLue j5
zl-- l-.*a rhe
4isP: Rr''t-rr^rd
L)-- 9,",*'a
^jsp".4or*o11
FSeG^re^c 'PACIE-scoPE ) j
Fo6. Gru*"t' PEg'usoi - score ) I
t$e tl,ts+ fo
Pne =" c'ief,
lrEg-f,NF
|--------or^rcl . a-t
Vc,-t ! ,
\t1la,f.dc*'"''. .U );
goXcC-r.^t' setAtma.,re f 'arrrai "Var3", pa4eG''rcxu' SESSIoN --scaqE
pox.[".*., t . serArb,ilr.* C ; ; " " w+', ey G*' *' APpucnrroN -scoPE ) t '/,>
/ic-ur
gorne As 6uP luh terocre
//o.Jsr
farn( o.r C'isP,
" *pg"G*""t ' PnaAtvn*'t' l"c'rt-'l' )) ) 'l>
rqiresr to B'ilP -->
p'1e--'k'Jse' / '
lle'ise/l'-' 'rgd orm f*< \ldlries --7
zb> fto- 6 isp 4bt ,-o't, - .. t,,..e1r,,\ .t.> tb, >
o$i' \,.,rue '. L't'=*J;;^'" gerAuta :'*o')'r'> ts'>
.*? \,orre :,", = *,',,ff;:. :m t[,;rry"3:,'
:EwEcT -{"Pe)
t >'*
alh3 !o[*( : l/': pqeGnttxt' gtrr"'
ctu+r+ wJtte : Lt' --p3eG6* r' $"lAtr'lu'rt [-'i*{" +" ) y ?
C,Js? --'7
" /z
AsP',fort"ol > iz.l .
-> us€ tbe
Pm6rawrS
$aaun E* l,eds
trn
ln
like
n*p1'*'"'r
rclAes t orkihrlcs to t&ss rhe add, dooof okh- 6lto ltoo otL resoctra
ahan 'rhrX are
uL ute Sesgan aht**tS
inlddaflott . , ,
9*lon 4uaila"t
wsfcot Cosat .o< u*e
-)'f'.ro G^r.-. lArrt-o'"
aj#lkrkJ , '-,1o majn*o)q Abbdl ela
Fo., Sssirrn-liocrane / &r,-ltrrgeuvzrrt jse con ,.,su rl''e =8"*'''3 1ah*qta \r
CcoVe5
llw**t'"Ittt&Oon Loirb ull reqdl-'^3
--+ i|ese Kchrri$res irnpterne'ntcits{ cm
-Ib ctlrPlcr1 cfPler
Z.lsp 1&l0atL > i5
orrttl mcasan" IeW
I Frorne \e onl'cortoo l-
JsPNPt!
bwpv lolncleto )e"'t
-t€stA?p , jxt o-
1st1A?0 ' ctol6
el(!8 .is?
llTesrh7i< v a
oirh Ceirfra:
rte brrrtc,r toi ncfoco tr:e can t/-5e Zisp:Plr€ro> taA '
orb toi og 4sn"plug;o ' to-X h"o'^6 fia ab'ti1 6 J:'rQ
;S S;roille., n 9rn-r tet frmgramrnl nX
aagJen.
tD
3)
4)
of)
rhe
imYtarr
inWp.rlU c
L
\
V,blicot
q
JaLa'c'!.'Ple!' ft;
jesa' a'ot x ;
clu-tt -Tu, / tr €x re,rls fr1r,,l+
Void P-,nt ( G''"ctr'cs 1
v 1,yes+ , 5o ,60 )'
eerko,7w..od ( Cor^'*a);
f .d...ri*ig f"#.r, -< 'fr-^ "inl'"t n
ftpla1. j*zl"tmt>/bod\ colcx="Pinl'\ >
z4rP: P\io tgee = "aml*
tjsp . {ahot-tt-> L,raxa
zfYe , pL6;" 'zlkE"
4tuq,
''T"sn&pp . clc.ls "
9+It(f- aif+/ari
code -d.x: "ot
ra,j.r;e=" /o.sJaror""
.! itp , ftutb't- 2
re4a4l oR-l I
-> Fht-"r
&rn uSe
AruW)1ot13
[,*7,11 1rr"tk",+ ' toro l:/'ehrftUlelfl't'e
lo6o s anl *" ,hon n 4" 1^ of #nl',r< \X'a "e
- tLe L'uon atnJnoo'
Lsr:,p\;n, n * en% +lo'u ,$*s
...-/
1u, ,lo'* ryItltl"-ra r:; o4rt
ioidrh=3oo
h<i1r.r'"3r'i'
@,
fVpapn,
afpE 6 taLC tt, ro rto)3
tD +n 4$rD
<hb".l>aodtr 4&sl$r=vth<ao,>
E .fffiS -2 -r*.o,. l"?d *^d otrirrcS€orr4 a9*- +fu42-g c.?pLtll tf\eD ue, Crry utl- llapr pW>g efCQ( ,o Eh,,- Qz's'rrte& utfudoco-
:e 39t9t!!rg, hnp"-llluattont-rranfS-ttaVpz-/pt^X-fg
.
Qry:W
grbw vthst<-
9 + C*oo^64 a.a.+ C.,te Lid''tPJ tf,'I bwa4 Sdlpa'tl a"4 selfe'u ) 'n.]^^4'g^
9 .rh4- '-reaoLo 1""t*r* X Ju;r,aaeeD Qlar4 a'P'- osuj4 b*u Wop-*<
5 99aa+.,$+*Y,,xv coD '>'e'& ffi- *d'ta- p-o EzaoPrsfe*le4'
S 7&*e-/r"tbrxc-; e<lo r'ria ffi.' da'ra A \'eco Piv?''1-'"aat'
a *) Crurc, l?ean ela's na'{ not +t weni k's"' nn/ Xatn' e9o4 a-/
" ne-4 mtt 'LD Anf*arne f *f (alm- FDkL&cL"
ie t"^W^r.tt ntaan'! ereada'tl!' o4*A ' 9n Jttua &wiruornerrf 'ffr'q-
5 €o.nPan.erud a-- oalt4 bQaM
g
furb-w-wryv
lroporv Cduq. aftll}.*.fopn-
- io^r" . o,ut. i,
pul*ie &s TV9.AfP "nR^d/
Apputt " -t 'rr'*
' PWo rbd oonr- f,j , .i'trPv'U 1)f *,"*.+e-ut d.;;,ft'draufrn"nV
(w.|o o l^j
$lPrf,tq,io 'IYga =(r.r't .n Cod.=,,
gaJs'-ui'to':"
.. . f%d$xfrtrlldg=rr3*tr Aolgnr .=r:oor,>
Cl:c{rF:ordt. =-t;s'"w
(1!P1.t4raldd4;: Brru:rna d-ret oct- ky-g appltf <(Jtp.*1n^*,lttft l,tt-*r'>
q$-ot')t"
't&' .(Jc^&rrt[aoo.?clo' 4" it\.+--.-\-v trtv'
trrkfa c,lass (Jtrd-uVQeoo eqG
{ n u"* p,opa}r<{
pofva,h, e,f trnl
ncn - _Jnarzt olatta+' 'elsJ44 bzg,anlwa. Wft
ryh {bbfr tu*;( *s6 &*r"oo { Je}b"rt+ wn'as
1tln',.. *t =^fr jpl,Ltrtc {aa;- Ze+Mt)
{ *"rr ry! Jjl a*<.) wqen a!'u PUC- "tfr"",
r "lnod/
fr> Jat:a. Aeg',,^ Clalr U-^tltt&ii
-p *'a+*t sna' c,toa 1T y^f y.y-'-eQeMe>1lrtk- rrurD(,dla tt cdib4 &uel+t
O h"''r.fll"- FrsDz-dgzr e.-'/v\"F!_ \]/\-J\,-v .
ptx.le vatQ &F+no(tor_oo)
J *."Do-46-tF lo" 'mt- ffr(nacl
"*T Pna'rir^u>- io tnz' ?!y:a-+ ftw-'Zeeaa 4teh etdbtnZ&J
.1he&- at"- e Njp< 3 heen prvpe,4r<a
0s gt'rrpV po"p"i.Wu"(.ry Adlsta-D prtspeOeef.k) enAo*4 'Orrr+.**a.
3*- dUk"s o;rlty or,p, volya, at oJ lf/t)1.-.
?, int age-1put\tr- vord Wgsr_6* q",
^ ly"^* rytJ "z
frr-Ut- & ea+a t;{ rrar-' r*,.a , a
*.@!X*- tv*1ta'ttt't
), a |.i-dtJ^ut an$ hocr-con vddzt'to Lcao
) ? bo-*-a,.^ ctadga];
rclit'c- v'ld ttt|/,owu) 1 6661'-t) qt)aosnA )
) '{+ff.. rrufSd =,tatq'4 i !) l,ttl": b6E?,Q-L\ qa$Ma"4fanwn<lt)
p"rPg^ry'
D ty *Arn nnlrrw4l
b Mrw{y-(%.39r-D ) Aurr:l dr fep -ut;"y'"- '';al-u.og
ts 9, ,q"rt e*urfjlp potAnt v64 <*G*"s^(*;rV cxrDJ pr-u',pL voJr"t
l coo'9al - c"sil ): S>ct|,t')u- v6l r.tG,-i*- (s,rrf ;" au\/ lpet,ttc. vtJlrj tD q*.rt\3 {.ausqLtr1-cr.)=r*-; J
I r-h;!-*.
3!, P*\tt'c -
gtaYgt) qaLotrts<-t t )g {to-rn
o pu],r), 7^-y^riT#rl*n ,*,A
t t<*rr^rn Gc$4"-( t A^J,y
6lJt &rri;a\' Po?tt ca'--lurueotto^ uxnnnol bv ca^l:'
Jc f,u* 64r'-' t;"U
"6@uaJttr acd wn- twod lw c^ll r ztkdli' Xr*o ohl rrr,oa*ItV -
. .- ,^- t.?-t*#il lo'' X-u*un'n" (s'a',unitaweto us(oo ut<' (J&p:a*.,[<eD'
€ ' ' <oryr e*tpryettVs (Jfr ?+ry''il'> {'?<- '
* +gP to,8s3sg erys4gee-(Tht ur*BeA^>\r^._ -"\--\--\_-\__,
*Na,\: 1[W..g7'-s@n dffina]e,tt
tl\r4A W <"r."rnTf Uc.lno"7 *,"MHg
? at*!t =' ^ I G- +-']t rlttal;ly;cQ Sctucr teca gla*< nan\agbf+*'( p.ro f C.*.""1Klt"rg-l e1>fuv.hoe.n
( ( J'&{-t}. 3cl,p{8 uWSog
€
€
,9
*ter
*€
-tt"3L,fl,
f>6qt-Lt- $ car:oaegJ.) cr4"|( '
l.*peatt"W Afia lg>"- c6 tftz- ue-a elatt ap"l
WW) beet',,Jemo 'q b;icd':am'- F JdDo'. LQo"'t' CS
-.;- ---- ) Qp- --utvt5waco- clott +1p- n J"* &aa do* a21 tt *
.( j+f :u-u-anrl, fl ='it" Cio,l,{.= I pl.&rr&n}?eq6r ft12= \ln1,;onnl>
g th- d.l(/v<- &nF co€ol€J *tt-t aB; l*- pt, '+er&nlo<.o
clag al'A b.o.p<
t6<F c.fuorr 2n k4'.or, Scrsfi .
$'EAvW/ ..... e\/leala (e$4.v ,-, ,*frr"aa ao foroa€'D e)au 6Qi h nr- won * *
cu-
W'- \
}frrr?f -' a /u^,, P\"?r'*'f 'rnn^(xr6p*rr X rn.r.vx(t &/nqtna-" = t { tl b-'n t}d^ 4ir,"r^4 d d}f,cbuE v$h&-qv*n i',o fh- Sya-0,ue-=q u ll ,*tun- G! b.€-- ga* g beanpr",eil<t lfltp awnea',2 CF
- -fo*-=" r ll ",r4r* 6m""*; paromzku ;"Ly e*
NdL:' . t{\2'v&ilz' & p',,crror4
fu:- <itvl kk?t6ptt*'l nanr->vxc") W"fl =\!nou uc.0'uo- =\t6+q/7 G&
{"tn}s '-P"n"i"f @W .lv,
k*Lno.(2 rnerno{ on uttq sbi qqd o*tr"t A
Vdt- -'tsAY'-& +rr..- Lnon p*fAf ulno't. e*
tu e.a\-_:'._
.ra\>_j
&
Pl. tle&o-tfiQetth tt=hein ni. J+aaenf0".nCl; .e-u k' ,t4no-e 4f"- ts p1 ' ltr^&"rtra<"n .*
e^ . USC
t<t{rrcrru- Epr- l< pr.(laJqtfA<**).2Sr'. a^^ r> r'-r- e-\.Jt;u&{eor. ld=\!r{ {pr-.+ra.' elas =vp(. !fuJ-or*?.ean, tt.rspr-=q @D g=
39 M,$r sg& rh'gf[c- ( L =ozut p; , g[4r"m"""(.); \\ e
u 3L, .-5rn$*-n.-o- fir- fs nw- c.Q.{ e
uf *>ob.err- {YP"- tr pl. *Skr4a*0ezn c.[ag, e2 kt- pt.9adlntd€ h ch-.is e*ktAl kr,<> eac ela'15 . e:
beon c&K crrl .+, qr-'td4 lwp Co't h Lbc.tZ 'hR/', &dq :ry"64 &-EW e'
./ .1 C:a -, /{. (-sop ,. *rV>wp"t*y2 eF- -^
+o bcao at@Nfq,{ ,
br rtte, rPwY\ atna'te+l>
?1- <ltpi nqrni-'att'{ WY"t -trlharnlt
'n;s bto*ilt| a)A h*!mnt-.?) o"!k'P! 'n 'tgtq W
n"m*J' *a 1o*" lout'a'run be-" PrrycttV '
m;11 mrrho& tb K"4 val]'h &rv'n Seeo Pryede't
bb€
@:@)
tiert -0,=u ll
W"Jt>uryl < Itf ', ?.*Pntpettf ?rrr-ns:\ re'/ pri'apetrf *" bn,u /2
)Qo tw-&*t ;"6isof ilSlt>
J44b-.
6rrrom=(\ ltrprrtT}+o arh'xn Pho\d
(q"'- <W'. Ver;u?tlxt o$r,:B$lLl7
ll<*"n a,li nam,- )'f|u VdjJ&- dwr' 'm (Jfur uztBea.r;
Uctn pr'yatV ran{.
016bu4
"** :il dftpw " *:' Le"^,t pwryqf vcrtrr"- UU gcr(rrntr
Wkts) cn!-f\€d ,-n h^zn cjaq ,6iE#:Ce.uocts,a( (utaat6x"l) io 3tP Pry il tou,'l,t- nsr6< 6a'u4t4et-tute/eLowa *otAv> Liu*- it-(ao E- fuu4 Q:ffio-
gt" prry-rs b0 uih 4ru- Panos,,ft t |!ea-Wil,!W- kctn"vaqtvu'b".aatL<. +v\- U.tu4 a.t c a,l,fo Vigl.I< l"r'&hle,
lE , enetnp\2, oapu- g, c,t> W to gftk? Gmrntnicg6ao
bluan*3-!,v\.^.^,z*
4"A-'- -p',oV'tS 7 tpct4n-tt'tol l1l - U('
2Jaire( -d . gtt/,ldttaao. J:ar.:a'
G*,dAt-un:-- - -
bnotlft;": **fcQbwttf e,*vott---tte,4 lAnttol*,'7tP. clFltl-
?n tnP(']az. yt14v! \--Z\-/^+.--,^<-/
;t
-) % YeZctrF Pd^drhd€.r s'Emi4. o* ,n9lvy u6f6 &anporyeaV rn^u,< 4r1a,) Qletr-Qao lac'- pEw:6r ix,, {o <* ".nui* dt-rh W\M-aA L dc,opryranrR7' .&*!a^l?
e_
* ,lftty*W o*".w=q(k'4n prE^tx*.oxn 12 8-kgy' t*te;tirr.r^lrvwn
/;; .iw ! ao, ,,z t !,o^o _ e=
: -:==--' 'h^n 'l **-A*b
*7 Evzv^6 tleAopp&ka@ Ce',nair,- nuJlrpLa- 1*.-. ,, :(t> g*'g+Jge trytt-^@,ss- -' e-
g frt aa^'ffi8#,y*,,*a .*y,,rte 'i,r.,.-o. i.oy,"-, JaJ3 e-/A1 Ka.J"^' \odut4 onl es.'.'- At*u Jbt3v4U€{an lcrrr€< r -+-cq";+tu6; ,a,4 a:-tte-wft+r\"- b*,q\trv<'- cA.ru,f Q
/ s\ n..^y* arroil ft *T \,' i@' a"f$b6u ot'-(ost. e@ w*a lqse-+ fta crrar"n Co7"<- y all>Waltott #ak T.ennatea
".4uth Hr,.r [tm(l.z,+iv\flt ttt" ]gao<E-\"/ JryS&33: -%s+ ltL- l.Effc. tftah "roletaU u^1tt>
- do4'a- (+.tat*- cd,).G) *re Rsrc$''gu.- -
->'ha- Peit<. ffp-y *<tttsttlbe,6 dipry- dola.qfu.+AAqPs,'^ &pJAl= 4*;5tNel
t*eP'ta-"^ clih ctr6tj{'s
+l+tpSexccrn u8tb uBt- lptvS+?SrA_
/"n"c +" rcrakz- eu4- aflf4 rr'o.., p4d6erk clxx:laLLLuwEL,
?' CLly,\9lt Tmt'tst-Worn, mFfmF Z<]<.- .
,"--)I
I
Drt */a atd d)dr\tpulde4 6z
qClt*t ,in_n lrrtuJ.trpL
l€) pr<,tenla,tfa4 l&ae-t\-\.^\-^.-,^-^-..\- \.^v^J-!/--5W."- ,lag*e $.frI
=W a$utP4-.rruUde.alrea€ 3c,unt_"-\-,---.-.\^- *+ Tfte- 44e/8on-'.al
Pnvh n<Mh a,/ gzaz.rala uaa<'tfu$<e-
G)
b4D . q.'.arJo/r
rF,lJC4 .DVC2-\.,,\_-_; v}gv
) ar, we1 1nvr'c1 o-asiw}crz'- b"*4'tr*So1pr- mullrp\a- L$fA uSlt b'- I<rs/'j.
ord +D Ja!€!&p lq:e-t, i,> 41*u- La4r.7t
t,r'e uJz- rD trlSeplo- tethnolqiel,
Drk rnoM
. \./.v.\/_,ijt
7D ++tno^-s4kdrl PY co 3F
o'm_"!I?,*:#*€ **", <puotl- atr-tlyA c.'\ getrl-
V -{tq rftcD Jqx uirr hdl-
\s tot u-+./ ood wu)G- -\leL{'
ltuc' g.ho.uJ '"g+ **- Lo+tc
S $oa,Vt 15tP (,'r*trl 'fepa4
6b/
s-a
e'nE
-) he{..- tw'<, ca6 tr+z- < earLtF ,790 @kno07e4
-+op-!fu.'- a u'r-6-4g*" &uda/vr'.d$ '
i6 i" uxl*ypw 4ct'e,l-r'prna.trf-
Wd. s4tr-u1*91r"-@ utoLolpAn\-
--l'\/€^
s:ip- -r +% nd41- axit$kt|<tt<- a'a^V/ler'.lP.- $cra- cr<Irzcaotr.*p. Frfi*,tttL-rd
Onv€-fh,( ,r;lu+rl.a- ln?o"ex. J'b'' ta +tfi" u'e- Qen <.V n*nVL [%..-&-3 a*- *nd up-
_fu@I^,M--e f gfoc- tte' ffi. uP nu'il#-.,hba i- gwn' ltb F"z' r::<Qen *tr*
'a -" ^"^"':: tr;T"ffo ,rst"'tt oh'- !,.x+'I m'c$kib1fsla '
O ; ;;; ovrd z lnn'.,,\ant-eb W app'n r\ ca'"vb4'
p ? t@ awzufir^t* ft not pGYAhL ' to p'ataffiT e wV' P6(
- ,r) (t");-" ft;ddl!- (^frrL &.uJng muve b &apltmtn*' &' LvU- !- WZ.""t -..r n'o'waf lLx $va't Lturfun (b 'lha-- lttvlfime?"-e w*&^- . t
: iffi7., ,ril"ffd<'J-,,ra"^r'tz t< '*.t *+4"-:, +ii,-- nq4ura&7rrcn] fg adF *ur:W, rnuL6*pQ- prEe6rornee( on$-va'
t:
? rn clq -L orAllerkl"x- ,'r 7o"nl
lYVc:-\.r\.,.\.^.-.\,,.2
t4-+ r"te"A,-/
t*' f,"-U -(c4le- ux-b gp\.
^ -.rtl- ,! kk-a, A<tlrl*- d$rc--lq-" +Aon*.ins 6.Lr?t- qod pex5jp<l,.,_ 0o"yf-
;)o* Gn u,r<. joua, alaafLz_an, plLcs.fx, &pifra,
V--> vr",-., r,",x,-,,- _trffiHJ*,*m {turz-o"#c{' ' 0'
->u}a cq,, * \Tf"lj,? "d qc-, . fD Orr*W M..c->b^.rnl.l,,-. t"f- j&,trfr ro*u*., Ittv;cf e-snne,,t;vr*o /_.,o^o_
-.>r!4 (oo ur<- (e^!trt-, Cr.t"q,kl br,t*^ noJrr*rj'' -gtur 0,oyc- 9-j: n ??+ rr Aft -tatsbtc PdJc'"-'lqktp,''tvt1s7'-2'tngna41,Vn l-nf- k re*1nnt'Ua, .lD 1.U- |ho- Qorrvo<u?oh'ao t"1., (h"-
QeiouY]ol' T d*,o'n.J-ol) lnu.r,^W"^ lt+'c- r'nort'1t't't ,nd **Y -u'.'yawnly
Xft\._Wv\!.de,,h.-n)TW!,?,^ y,*y, * yT, hy. on"* ._, 7 P#; M4.,<*o4t
4nW"A qd [rq];rr4 nto ,r<uS+t tD Vlu-o Lo"f"* tr4o<#!t -
rUL+ Undp,xfanhhe-7 Y't5.:::qq ll:r eC{s: s5g53l1}+ b--nvq orc}u'44's; !.lrerah, ,rcrou'c4
uoftt l"- kj"o) ,t€- a&l <aye-+-bat sun-- ,r<!our{"- $"U qgt c4 V}ettt ;; ;'r_r*t ,_ layn.l^Laultt 4r
->W!" qrc^AiAauq>€. s+€.ruf,t ruourcr,( .,.,{rt b€- llw_ 7r, ,r1a&,4 e*r, (
g+t -db- ye{ocl?e{4 u-f ll t -- ^pA"_
hortCI )r<- rfiu.- irl c,.onv,, r44- ro",r __.
' viu 9u, !'rya/- v4a a<z- 1
+ ::
rnvey 3caL1!.t pry*.^A/W pr%( ttr,, alu- 04 vtpn ard a*aelWr- ,.t^nln4. , ?d{,q- ultrJ;t*^ l *u c",r,l c$ry!. ,^nt6 k/,e.},co{N q.J 4k" u'Irr a* az mn&, @r,- v40c.r<24.8n rnrc; o**
ry :qk @L a*rd*- lryr,- v4owr€-e-, Wf t..* t Z<d4-k d{ @r^d,,vti'u Lay.- rczau.<oa' ^4 ir*n-/"^"t oiLc,,nl?,!,aft'v vEtt l4r'f.Plhd-b apyl q^/ *-. a,,at, ag **7a G<t- w3o<-1r<4r,bya- vesour<a,
S{!-wWg+*
ctrettllAtlr<- ?ive4 clcaD
fi "'t nw) wlfo| u'k- mve > q,.,cliq.dq)<_.* )tr,,r.4- orc|tbJ<+.- .fs ?"-J ,f. Arxeir'p m_eAiu6 Ur-L *on'<^La- pr{uk lrwxf o I 4'x-'s Lr ')ctx trl{r$ +J..obr^ ,to Souryn Grnrrnru.cc*fon , ?pp 6 JhuoS€,a e& qnd,"'- r,lvet r't"cutqfu>- - ' - -t -* v .*'i-","rrl) \q6fi,{ru'<e]ton
Q4flpl& t{ndr",- rnvel ztrcArt kil<t><, _
pppa€
ssg$) ,NA wer&@ -41ry1.-:tF>
f::", cut',{our wA aprt g<t1"re,(a4 tfi.- ,r.1}r,+r +. Mbotfr\,gttt:** .|W,o t-'ap4)1d*&4 tfb,.*?\^a4.t aql ,il+u ,*cl!t Jr;
""_-yefrro &1a-
F+s n, ,.1),,! k 1o tfL,^
P"tp (a,r\ lft-, ><nctt+t <1nJ oLNo
Qlu.
Ja.iotrr PlilAfc{rn,
9 z)+ *Y ^,V
uEzt ln- "rh:'atg. lo*tc $'9,. _Yo @Y- l:'eo",1p,,o,,i
,
'tts) mrdl] (qute (;'^&;!: ;t :2"?";,"k n9 6-> bulnea eoap Xrn*t +r*-ryqu,(ll bqa, (b
( \ ^Alwla,Ahq-
nJo- exhltukY,.'i7r/v*-^-^-1, v\v' \.'\-,.v-.\./^\,^r
7-> Se{.utl}' Ptu7rorn u}2A tt -"- *>tgcatfo, ,b?9d +o lbw 4n"- ^xf q,tA +o
ytrrrr byaa--f -) fru- pyanlatfon lrfr,'c 3 vrLu loVea- -Parnah -l*|.- tuux+J ,^4 '
&ndl ++st<- a<t&Lk +o Lnt^t1ldr,c" at \(Wok-
W3ygqg-$ e!:z:-hlrr< aur Can
% alta,t lA,,-atWn*
-) rn"&&'t-rcn-.1 Arlr\u ,o t^- ht,"< T anjr Qa-y".- ADg ^.r_ "{51rqe{<L L.+a q- ana--tho"' bl"-, "" -L--'l
+ rnctfo{ar\i9-e- ir^d nn}*ru, ^n\l- 4 puge*- tc e^rX- e-
9 P*w a*earyru,* )s p6"rr:bL. 6 ^
,*a**;rro ,, ! , Q--;
->u,'frrt^ *re W,nn +"eh$t:b\e4. **;,ff' T'**o o- e- j
lropitcrtL- .ua.lcr..*"- -kt.fieoz. v '- .'c.o-.o- fr t A I
yffi$,'ff*ir /<rhns6r\a{ ts r<yoal :j*) &n pavrerul eo'x.a.'rnru- nuj-*fu1"_ p*Sf.,t{\e_k a*_ ><a;v.4 3L#0> 'lleu: an u-e- a-b p*r[o! da'<u{vt^ur a5f\ila- c,,o-rdl"tr. u,i+D Ar^R:-c-a,,]$kect\F- I
*{Yt*v v5I\9tP- ctsot "" 'T u{rrl'r ""\r-e I
w\L- fe-n U-dt"- e-fvtJ.e4 tn"- 'l€e-b ,lrh, {llo pe$J<{ ^l,ffi, W,H"tr*tffiT** \!ieu.,Gqz-, ;]
T> Y-:? Lrsr r N:)J v "1, rw,c,uwd)<a r 't - |
I
^H'Iffiffi'-FH ', ro*,* ,kiwn"t - et , .le.phnuuo1,tza o^d awayrej-^:_-"eJ
ft\dtl ao"1o."- {-ca'c+
4 @nco- p61o k* *t* Qevl vort2- FneXatT ux-Con t^V fbvakP/ -l
,&M--*- "e, Qp"W ,ki&n6.-;,'- ea.- 4enhschg'ta o^4 fun&l
::-
t"-
^r\n)
A-an!__:
I *r- ,fitu.- q-L,-, rou-tbltab[n Lnl#e ts Wtt+Ll"-
G^N1"4-- layta- {,bqrec{.
ft\AA ao"1o."- 0og".*
> sj$le- roortr.4 kith rrn/c1- q<}u i<.t*<rr- w<- twut fu&l.t ktst-"qlg C-'**-t', o* ,"r& mlv(e- ry'rrLa{' r ^ ^-IV ew^7 lef* k fu^'s4w4 t., pkcn-' Cgua'b 0oatl fu Ju'* Ao- -l+hw- 1n114 c,nd l,.a")rp Pl4ea- utxl 24h4' Wq . ii
g=i
<a) A*"tt ayea^-tton 'n apiil coA%ro "4alouJSuo aozt 96o514 laeq '/'ek* 6r.f--
;rd,t; c""r'q 1 *^,,a* (q4urtt- , {61-i
b) -n** hn V mtlhVw $z.Xlqycor b vlrr.o [nyr'- ar( tttuo c^\ b<- o ,
nult'fpLz- ')c,€rt,yt 3 h n J4 6y- k4 lftqs, ntt'vt h. ^V tno L--i'
, Je{rto,[- b ua*rvltv- !t,/o-. $L,(ul
"- vuour<r-* eg u,tjro- @,n Wrr,ttr/ .,o+ ink,-aL+ aA't'ih ' C,
^t
:" u*,T "fr3e{at-II-'
.rou/y1- iolaec* t^a't6 es.$ cqfw.r-rt6t6*fr
e,t-'t4o+w<a- flrcy.rJ.a nc+ Jal'le- trflb'njbdql
la-lt,- >€rbc{raj
.W; MVcr.- & tnAtfi'-(oo*- T PnA)'
$,",npg&y gy$iV(1-.t,
HS YxlY--" ry /- r,..- rac-*^^nr 3, r,
, ^ Add Bakler'+t>P1 d''PW cAU (!4AhvJfBcrnq'tr to u)466k!)t '
ruA-e+Dlr-rt',Pa&.-
\T *;;-rry aArJa4-ltknt,r)t Shorp4 l,e- wt,,i*at-,.4 a{ ,fuq{-.<.J
(.t tnu,t+, A"!fn, ,lfi'r,ath
U<n&a^/
eon6lle"- Jbrrr&{-.
{o drl:eX? taxy- gc*0.e- p{tfi
;O -o \f*ro p("n"tr h c:':<rnnap'- waWk4 (o+vs)
{r, -i AJ4 nut*- l>z_ c}"n"} "K" ^"T L szcl .\' +2] n::ul,*- tx- Aauei.po-l tt-.t-r : * ollaawVe! Lf,^<4 ott orvtts orcF,tco*^--, pt*ctni A,{n7r'\9 fo liarg,j"zzn
i:,*"LX^ffi"#*:;Y -*:##-s Po-tzio|- /lo t [l .
Df*t rst-oe 4 /Y"n; Pru.f ert .L)r-4stttsim> :-tlt*€ ) hr--;'k r- *t'ltd" '"tY*y-
c'{era qf- y': nekuadk'
:g e, k rfrt !eu)dJ"?dk\- q' to, 4&- &DDo,t- kd txt "b
,1O tr.etorc.rlc-- A&F t*. Coo Q"dt uew'4l S ucX*<<X @ve4' +L,
55 4 @f anc- g hia {<t-D &&ttten<'
{t SWU-v\,.!*'"-d, 0^'{ah hued 7 Aeu'+<a
-) Eowwu a'e,- lpx.tb.ltzaU-- oUQtk LU' de@ulk-> V<gt -teru TaAe- da'avz{ ffiy4, A'#y{? kr ?rllnte&
a .(&.lf'.n .,-,-J
-c"
rry n- 4ol* % ilpn-ekek hr Gftqwa Pqmap4- M-la-afutLalto"<_{t AM kd tnl-,t- JaJa$ntc*qx<- qe.,-. (6r, aol<'(va<.
€ ,N&.t +l Wle-plfa7 F u dowtvtal<b<A cl.r._ sp{&&?ary_4_ 6+ier*_g .9d-u-Ern', 9_ fg gndb4T <,la,g,aa qal ve_eoa n >J_d t7) u,t -ui' + 9b u'"- clscnt fu P(J.kdvr @t)tt, rcad ep".*norx an &:il,<thvo &jag #\a4 A< qob-lvna,r-\)k4 4.[c"*.1u"-,
4" aoo-6{llt+,Nl*zAnnp ard <l<_,, ^
qc'Hlft1+..-ow- tn -h4ilrt,q
€
€
)W Wu nna- l*ftff b p*["*-, bd{' q(ad, (^dtL apvrr]lory *onV {L
trffi, oo cl/lJkelfexn D( {f\a^ TFfg ry<-oo,,,monJnl fu utL W*"il4 e
w(w,u:t<* q) A
e_--\---/1,b=-
Af---> % o\)e4tom&, drw- PM;\an qU. <r!j, a<ao^d
az,t &g;ty.4 Surq, clas 6hi ord oq lffrt- 6Adqny !tlfr-. lru.ot uua- As*-\-4 "tox {s CaJkd
g- ,>aJlcilk Qrt tot)
h QethD_
+4€€ d& bTo (td.l€"- ftdrup_ 65il d"S. ffboaL<rat1.
3'.- l4z*-, llo,tff+aAt - ond el<-- , Q=
$ toa G,nrlat rrvv\e- a4eb ..tpod fi >aa* !*t b caab e,,an*-7 e.-a'fferUt4' L<-oo.r,ott<-- Q/2h -,r!n! a.,q-lu*- -,oo-tf.1gIt74r- *-f fu4 ,D'd6(. qtftzutt 'b,rl- €'-{A "ht* \ n ..w*rp cn^ [h,-c- oofa.- oh]4r-d*_d.r,h' e_
qqiceJq5,GI
*I*I*l*l*nqte;tc.[GI
I
4ttaatla- "larar,ry3.
/.1rfe (loAu* );
Vo aio,t (oD
+fih olaa ts
V,oc-lox/n-n" a'oa<;-9\^-^^ l\''''\'/\.*
fu)lfo Qiar\ Sft,'',&tlia4qr'a) ll u*n w4ilte!.i"S Poai
ln* tu*ig''*,h b& ',
/1 u6t T+Wvc> qrd -(r*boxc-l {t\a!N.:t-)
/ lq,z- d lvaut<.,,- W q !Y'-'d< btWlUo* VS= gt ,elLl_LLltlqter,/-(q4n+ *
usl';L'- (v1,Yr"r7- 79
! *ru"*oo- (t=rrtu gpA-nSa-ont);
ll "vzr,'..
o"-ch 6&'a.a4 6 Ortaa, U'W a'L;^! kC4,ktJoo (u.c"+g* tr1), ''3{ . k+!rnn^ (x . xu.i nlrry61Jl-, klUad{^. %k St\tr1<ri).''
? ^l,.aa Q61. 't>)/,
hDd.rn\t^\
'.
jor,,<. fo . GdYd1,'?-'^,LL
fiu- a]f,'/z. l.ef5ed haMl4/A .I^"- w.@dt
aM,rt/o ttmuf th'- okv. WfOn en<
'a PftuLH
t r'<t,d.,lteh e&'qt ,D
Etd4k! ,qr-^rr&'tt-\
AD ob&* 6 |r.tnt el;lr*olfeo nJ avea-.thz. dw'ru?dte-!U;.* ad'4t4
-lo {flz, citmw* c6 frr. Al $Attd t*, to.tuD d4, !euW2atJ'- 6+$erlx.
t#4,#- u*wL"- &tJ- Va+ u4"4 a.df<ilfq> p/,, dlr*,-lr'vuelu\4 io louw
7 WD2rqo,_Crrl ""er,r$fa0- reco'rd< orla- ,lr- n!-k/rc.r')e. * c+y- ,tr.u^ bb
. q".lrUse -; 9-rJ,"rlt,-. f?u- Jd-b.- arod4- dl+ha-$cJut- anJl,-, tlr *FV, O
^ Weil\a/ kl'- vr4- Lt'L ffu:c. tttf l.pryeilS&..i r -f -e--- ,-y -l -----'{€rfb rrninfuJo TNDtr Pbuge}r.%., nuil prvperhu U,e-, tLt4- 6rbf Dt,(ql 2o {ea&n,f,yd% {o rrlg.j*la-io roul.b}l* vattu< a./ &yd-
@.4, le-trtoa oJfifLuh" lvu/ut-\.
W*&tT- olXo;n,r4.U
Iu'Xz- qns:tnk + e+ du*V gnb eiluttua uArh,itrb!,lu\, a^4 ek-.
urAal &r**- "ro ffo,o'r P"{"'/'l !U!trsfr;L 6eu1"firX; trtu ct<w.,.k X cre{df{€* {o
q4o.\rtt- m n]ivt! t mrey 6pph.
trtb a4 hbqn"a Pu'tJ\t4* &au ,,4
{D b^b.l entir.^ dc&\ .$ Fewpfa-W U 9$erL".(z'8lf-a
LD
w@ofeow.<.
J4"H.
arp.!e, tfrc, .'alts.rrk, a-l&r-sri.slall.a- c',lsrcrl hl-
gt*rnrtu Qth" ffflr Bt 11
!Lt+ d no
on tl\,
V(atJs/ r{sq,r) A4 0r.Jl fr.- ta,
Ln pt^
r\}ffi:- ?h lh.- e]*j<' iJogzuro beu"A ot> n"- b-y
*;'** o ahosen iD 4o"") pa-sa ar/ watf
-l ^-0 [ul4-n' Ptp'F t3 Lt",.d lb ior'o]e' C--an lrL4 b\Ltr+€-' ) \ I ^'ir' ^j co4ru4 h .llt_rw3.aa *aod.rru
d31 &i,- bo6rL l"dr'rFon b trai *n! , ^ .,-r -r r.. r\rrT#;""[.""*i"i'.- qs-rarcol rrrJt* G/ th* prfnr<Ft' m,*"*+wd"
Grl>_
e_cGG+ssessiss$
Va.u>o.$rtle-tK'4r--=-- ^6k4tty, tl u*4
P +*- t*: T * ,-- F*,., vJr'J,,/fc,ru o'od $* lhn'
2 Sewu <o'rnv i! Y * t"-'
, ffi:[,,,:'-h .^o'L N'l6to eb* 4o 1"6v''a{*-'- 6'"- '7<t-&
Sxrutrrr'eo- 2:Yf#i p rr o6t- otc\a'nnra.rJ tu ry^d
S;ffi'H'--5 -'*'*T tp andttl'/'- Lo*te"- ry? &xrt* p""qnero ;; n<uv-l t.lcdta {o s?Pt( u^W aqtvt4c
atfl;ls,*t't'
-) \a,.-b PV P;* o/f* B f\ta4/ ,p ^ \t tt*.u- 1o ldc-oJvn' Ku- a4'oonk- an fh-o 4o'^t,e'dal'+, ePDoa) ,-!' f,qr d-rf,ttz,, 4,"q{@," b'td {nh'i Pd,o'k *e: !-
o{P\ vtan'a
+ F", At*r pa5- 5 letiavfrop ,o *K*'X,:' ,3'2'.. r*-larcnS'y .factlitf%,.
^ ^AV flvaSf-" (d'rr;l: 'Bukl-s{* ( +{'"-r Pqa)
[?) {baocaF, hYPe^rfn*+
(g t*wvl', lwalriPb (*a"t'*egS-L k""' atfi<t*- _ ,, --- -__----t6
Q" Whe'e did Yo. 1,1ss iovaBean
O nu v.o / or'o closs cohite
in gocrr praietro ')
gg rucnc{s ofI I&nS ketng
Resr,(,rt&t to Colteclion Ddjzt a,trtr$&{ e,
Hodel l,-rge{ .fttft:lxLe in $vCl , l"\rcl
[srmBarn clcrss ln giTtrfs oPPliftddh
dPrtco}t oo5 .
6as FBPe{51sKr)t clrrss ,
Formpcrgq a^5 Sngle
aS SPrir€B€oo clc.s J
SerS ;crrr Athri&rtt YctLueta lrord eo fire ddtu e
use Ja\jab€c{n a5 belrc1 ctas' tol-t;te dewloP'o3 rht lat6e'eole lttic5
I::'-cr'd'
rl-{.t
@T)
-ro *r o|pve diogrrr.n based ctn rbe
based crn rbe Lrrtio o tl-ot ts u9-d fu
c&taP\ cc.rne5 to Lrocose'r co\ndocrr
o, fu 1-r'inrobLe hrrt,t ta-gle en <x\r '
Loor cUz19cq9 i"e. oFroo sen iS Frrtr, f,ag e
iniilo'k y€q/desi- aII tE bYs L*trginq'f}
eirber &s d^ocorr lmda'ble f16-EKcc\ .PiLe
-@ rt.-@ at
SetA ct^Ttactt., .'9
Pt;* &t ( NebooPti'atlq. )&g1qB'*s(!sg p'S )
C(r.nrror rer )- @'lnlqrol+oD I ogi c
t rDde I
Se{ch (- )f
rrnE€J the fi)fsn5e
cs dcoolada5le r'6*9^&;
*i€ct 600k
hidarn to,,
sEtEc1=&tsTdtateEmrNa'ne k!fts So"rs"
ffl r].r 1,*-,,t JeC(# r4dh/ n0 'nel
a
keuPointS:"=:-
-> hete l'lv c? Qrchi lcctat e iS trSed '
-? J&lo gc{iPt i3 uJed +'" futrovatidcollons ar' d Ptt{ &'grniir'rg rqae*f
-r JcLra0on u)rl bc used a5 V' o ' class ro ' +rantkn 'rhe necc-d I c'P
ftrraXList'
is no+ recorneode d 6 &oi Resutt &t
d.ir€4rt6'
5t0t E l- ilregpe-Cli ve
the
rtePtrr otne
y".ei_,Oed
OP$6n , i5
*.. re
mioi PYqidt./ePe. rhe opPlidottdo O;et'n
iD Flfle No t @ tt @ '-
?to- 6ng Lrrtlt'r to
SQ"I!\ er PYDfl arD Frss€-s
hlebK€e Ptitti.
clo,on\octdalle
dic.grorn bax d
oP Nefrr:oc\< iL
onolher kqer
Rerdro Jo
Bilreo , oPti6n
Jsp's u5i.tj
le rheoe la
BesdlSelib
odeq-t
fi{Ars'l- aftt i b^l'c8'
rec€j u€ rhe resPor'se o-\
&'
-'t Atr, Te(rt oX|
ColuF\r6 . -lhese
their lDccfions
*-a Lr-rkm
hkr8ctr,( k$\e
St" $sreros'
projerts uflmded
uplcrrctecl ff'tes
ttrill b s(r.Ped
Bre drooloodlnS
Colurnns mrd
bfi les (oil ) nor
.otr\ 5; Scr.utd
'in Do-rajk*r
tttZ ll7 I tl-.=::3
be .Sated clrwutg in rhre
\-
\-Datcr.kn< h:r6ie
\-
-- *"t tt, "t"
) "- t"fl-'q Cd^rr'&YLrqr-t'&"n oe S G'" L;t'la
0 --m^*61, 9,Lmtt L&nt [+"- o"r.)
L4r' lt"'o
-r*#--fon'so;tr N.rU-rrt; )r-.//n
in S&ve{ tnaeh;ne f,re Sgsftra ar"'d
'lu/"le Colr-rmnS'
X re4arr"ed the loccr,lrtc,"o Srf* h-"
Bro urill h dotoolu,dect to
,,rill &
c-bc,rut
ug "iirenr'coro ,
\
Do1"oloroa'{ $rct':' t'.l*td'b€'cq''
rmclone
(o hteP = "ABc.isp" > Send .lt,>
%A.r.j5pzo lmP'- "Acc"isp
? p, --yo1l 4 pr=vala,,y ge.,d z/a7
send 5 reyres t to Aec.jsV kn; o1 relFarcrrDs ttpe Pt =VaIC, P>=Vcrra
,Ne
--) Ne
t(s e
Ld(nk
hini&aiet} p
Jay A zq.rm opj rhe ftreo+loaati" Pvoce.! s ,
toi# '' Cr,nreri-f - o1i566r16 or., ,,
?erp6n &e h31dd ohite pen k:rmrn3 P;re Jue"')*oun9
lslrzllotz
f;'re g,ptmctr and oloconloc.d;ng.dieai sid e
N,r'ro *e
lo Eerrve't
Qgisu Neu: ErnP'10'1ee bgfrno ttnf ,
\
kom cutnf
lsEf NetJl eopl6.ree
Drroloc<l prop 6u-,a
m{ri. w(bPo.3 e
Gr'pta.s Ere *o nlda
EfrPrD: l-_]o]_-fNc.rne: fl6q--_l
Aaat ss : I--teT--"1
Photo La;$tl @115Lrrne l4.l 5-J66 | ,-1 -;,.-- tgu"r9
n{c. hSd dqe",l*otGo.)
FdP NAME VE|40_ADD ; vp_pcsur,rE
c I lsrrre\'tsatrs\
C1\srore
0l ro (2J
0 End .u.', clict s on
@ b*"r." FrrS Le rfre
C3) kOi.r.n6e"ut"t pYdc'ram
diagrarn
iodxnlcs F le uelmcl-tn I
F-.o,€adj
ond Sulrn;rsIltrm r$ot, and
rhe rg&esrures JvoZcum
P4ge$e Aer ro &.nPleieFluql-U
I a-1\Jgn, *rve,r
'Ym"I''lne
recxd LaoinX th'
,ec*db L*"'"ts
al@
@
\ieto'isP +a r.ee *ds reeqe st n
vielrr'isP fla*'>z,ts a6L rbe recorrd s Nan*D ctahbcrse lzt'bte
Vieto'isP $e.Toorarcs cne dSoaaic '*brye ta sluo
d.,.,h lood hye.r[nus'
€) -@ inAicoles Ereduooload'rg 4t- 6t"'^ to cti'n'l'
@ ana,.ut'r clcl"s on rhe dcronlooavnwt'ov 4 d0no-'" af-b1*-1e
rfr iua! thor "o,1tes r ail 6n 'w
?|-lonovtr*t ott gwotvnoh*nQ
@S#rr*a otl ff*r*or, -na" 6olqmn
,-\ Fre s;srcrn l^-*r."-- .^ €,-,,,o rrn'ld Du 4," tff* '
^@) n",nf*j' .;rp .locoru l,rc 'n ftiveat"-"-' d'€ - .-, 4,
l St-ream [aszct tqic fo 6€od1"e .xoteL +il€ ro Cl\entr>aahsne
@ Dernlo."t'jsf utq! Strraro *-: .'
t $,ns'tr n- rl''",'5h T;ted"*'lad'\'
Reglerc.r Serv Kt Scrr.es rhe Rec;r-re d re&rrne, pl'orr: clcrcrrnen-ts
Fte65ercro.
f,awte*fmgram 11,ffi6 rhe F - d.o.ra in DB ta-bIe as
loccnc'ng a? plwto , Qesume d.oatrnedS,
@ a @ indtcc/6 Vie-oin3 dccrabase tc'bte vercds
@ End use'r cticvg 60 v;eto anA do(tmlu'd ernployee defails
a
1
3
45
7
Iq
1011
1314'15
1617181920212223
App!icaiion To perform File uploading and downloading
il;;;;;;;,;;;-------D B s c ri pt
Name Null? Type
EMP_IDEMP-NAMEEMP-ADDEMP-RESUMEEMP PIC
NOT NULL NUMBER(4)VARCHAR2(10)
vARCHAR2(10)vARCHAR2(50)
vARCHAR2(s0)
create table employeereg { EMP_ID NUMBER(4} primary key,EMP NAME VARCHAR2(I0},EMP]ADD vARcHARz(ioi'EMP-RESUME VARCHAR2(50),EMP PIC vARCHAR2(50))
body bgcolor-'$/heaD<center><h1>Employee Registration Page</h1><form actlon="reg" method="post" enctyp€="multiparuform-data"?
-Gt P'es"t'"l' ^<table> P15g9rse"varL-r"ltz6r) 'crz."A'915<tr>
25262728293031
3334353637383940414243441545474A49505t6253545556575a595061626364
<centel.><a href="Registerjsp">Register new Employee</a>
<br><bp<br><a href="Mew jsp">view and Download Emp Details</a>
<td>Employee lD<ltd><td><input type=text name=tid></td>
<td>Employee Name</td;<td><input type=text name=tname><,/td><!t ><tr>
<td>Em ployee Add<td><td><input type=text name=tadd></td></tr><tr>
<td> Em ployee photo<nd><td><input type=Ijgname=tphoto></td>
<td>Employee resume<nd><td><input type.=:!liname=tresume><td>
<td><input type=submit value=register><td><tr>
<form></centeI><body>
nP }!Pr of v&tt"s)
</tr><tr>
</tr><tr>
</tr><tr'>
<web-app>
<servlef><servlet-name>reg<serylet-name><servlet-class>RegisterseMet<servlet-class>
<Jservlet>
<servlet-rnapping><servlet-name>reg<sef vlet-name><urI -patte m>tgg<urlf attern>
</servlet-mapding>
<welcome-file-list>
i
(i5
666768
<welcome-file>Home.html</welconre-f ile></welcome-tile-list>
</web-app>
import iava.io.lOException;im port iava.io,Printwriter;import java.sql.Connection;import lava.sql.DriverManager;import iava.sql.PreparedStatement;import java.util.ArrayList;im port java.util.Vector;
im port javax.servletServletException;import javax.servlet.http.HttpServlet;inr port javax.servlethttp.HttpservletRequest;import javax.servlet.http.HttpServletResponse;
import javazoom.upload.MultipartForm DataRequest;import javazoom.upload.UploadBean;import javazoom.upload.Uploadparameteis;
public class Registerservlet extends Httpservlet(
// settlng telatEd to Resume uptoading ,.)"5 d SN','UploadBoan upb = nsw Uploadgean(i; I ^o,y+ Fgl. o99o< -upb.setF-oldedtoreii""uni.e.ol; "' | ,.-'.'V*' ,uf aupb.setoverwrite{f;be); ' \ tDlupb.store(nreq,,,!:rsu-me-I rrlofitdtetsfitesuptoding
'arlu, .25// s€ttins r€tatod pfloffi'uft"aing , fl dl e\"- C"!"upb.setFolderstor€(photopathl: ; ,-- (, cu t agcaupb.setovsMrile(felso); f- c/:i'^{rb'r o'- -'upb.store(nreq,',!pD9Jg);.-.) _! comptets fites uptoding?'rd;'L-l?{
/ get the tile name3 of tho uploaded fttes
String gResume=nrcq.getparameteil',L.rumu,.1; snows Hutt .l
Vector history = upb.gltHistoryl;;
9' k?r-r!!-'*:5t-"F" e;-;t-.t"t w"Uplo.a{p3y3ins1srs up = {Uploadparameters} history.elementAt(i); E"@fi lesName.add(up.getFitename0);
System.outprinttn("resume.'+fi les/ame.get(O)l;
/
ArayList <String> fi lesName=nerv ArayList<StrinO>();for (int i=0;ichlstory.size();i++)
a+
"ilt
6't ---------:------- -_____-_Registerservlet.70 //RegisterSerylet.java7172
14757677787980B1
a283848586878889909l9293949596979899
t00101102'103
104105106107108109110tfi1121t3174115't 16117l.t8119120121122123124125126127128
public void doPost (HttpservletRequest req, HttpservtetResponse res)throws ServletException, lOException
{
string resumePath="c:rstorelresume "-., gpa)o€$ 9'z glx-bt.n)g 9o tN g'a- ud'1t$A
String photoPath=' "ystor"lpnoi".t;:,
) hg. ct 92,&t> 'nah'rv $9< s# 'Printwriter out = res.getwriter{};try
(/,1 get sp€-cial request obj given by Java zoom api
MultipartFormDataRequest nreq = new'ttl|ultipartFormDataRequesllreol:rnt etd=tnte ger.parselnt{nisrrins eName=nreq.s",r.;:ls":"*f.;T;fi'l'iio"ll;7 *-:'u' e;;-'e"* 'Es'w^g ve<"s cr
Stting eAdd=nreq.getParamete("iaOo,.); " J &.n1 f'XtJ{String ephoto=nreq.getparamete(..tpiroto,,}; shows Nu
|.1f:'S.'g('.rt"'
129'130
131132133134135136't37
{I7qa
1i
b
$$
138139140141142143144145146147MA'1491s01511521s3
System,out.println("photo"+filesName.get(1 ))i,// store the patlrs cf the uploaded liles to c:\store fotder
oracie.jdbc.driver.OracleDriver");.Conneolion con=DriverManagerPreparedStatement ps=con.rjrelps.setlnt(1,eld);ps.setstring(2, eName);Fs-setsMng(3, eAdd);ps.setStrinlil,resu;ePath+"/"+filesName.get(0));1 .rDzz^(gry-\ r'- gzres+6s ol
"L' v9vs'
ps.setstring(5,photoPath+",/"+filesName.get(l)); -\ -r :/rr"J F"r,r,".^.,r--r,
j\r3l.r"-j e..r \'-4
int i=ps.executeupdate0; 49.- .9-e"9.6.., io Cg 3^S4*if(i==1)
out.println("Successfully uploaded and Stored in DataBase");else
out.println("Failed in uplbading");
, trycatch(Exception e)(
out pdnttn(e);!/catch
)rrdoPost 0)r/class
<%@Egg!i import=' java.io.Fite,java.util..,iava.sql..'.%>
<l- Retrlve records from DB table --><H1>Llst of All files under C:\store</Hl><Y.Class.foiName("oracle jdbc.driver.OracleDriver,'l;Connectt6fl coh=DriverMairager.getconnection("idbc:oracle:thin .,.,scott ',',tiger',);
155156157158159160161162163164'l6s166167168169170
PreparedStatement ps=con.preparestatement("seiect. f romEm$i6[ene g1Resultset r5=ps.executeQuery(); Gi;-\ aa ( h,J&.
. tt9
<tP<d>Emplgyee Name</td><td>Employee Address<^d><td>Employee Resume<td><td>Employoe Photo</tal><fti.
Vn
<l- diSplay e=ployee details as html table content-><body bgcolor=wheat><tabie border=l>
"ota A9J cr\teo4l -e&"'12''1b' )e e'
a*vr17 7 <%,172 while(rs.next{}}173 (174 0/>
17517617717A17918{)141 <%r./.>1A2183 </bble>184 <body>
<t'<td><?6:F. gefi ltdn g(2r%></td>
193 Class.forName{"oraclejdbc.driver.OracleDriver,'};194 Connection con=OriverManager.getconnection(;idbc:oracle:thin: ,.,,,scott.,,,.tiger,.);195196 if(requgsLgeJPqr?meter("resumeld")l=nulll
191 . queryText=r'aeleit emp-resunie from employeereg where iinp-id="+request.getparameter(.,resumetd..);198 else
1l: quetyText="select empiic from employeereg where emp-id="+rgqus5gt.tparameter(,,photold,.)l200201202 PreparedStatement ps=con.prepareStatement(queryText);203 Resultsetrs=ps.executeeuery(l;204 while(rs.nex$X205 tileName=rs.getsbing(i l;206 )207 /t prepar€ settnge to download the file208 File F new Fite{fiteName);209 int length = 0;
?1.9 Servle0utputStreamop=response.getQutputstream$;211 ServletContextcontext =getservletdonfig(i.getServtei6ontext();?1? Stringmimety!€=contextgetMimeType(nteName);
?11 response.setcdntentType(JTllniqpe i= nu ) ? miinegpe : ',appticatiortoctet-stream,. );?1! respgnse.setConientLength((int)f.ten9th());'
?1l response.setHeader( ,,Content-Disposition;, ..attachment;filename=..+tileName ).216
?ll^ ,, comple file downtoading using buffering?18 byteo bbuf= now bytello2al;?19 Datalnputstreamin=newDatalnputstream{newFilelnputstream{0);220
7?1 while ((in l= nuttl && ((tength = in.read(bbu0) != l)l222 (?23 op.vr,.ite(bbuf,Ortength);224 l22s226 in.close0;227 op.fiushfl;22A op.close0;229230 1/o>
231
*, aa, A o-'z :2- :lc't1 p'otl
4oerfn
- g2r'rl-!J <'^Pl La''
T"*"* .aa>- ca"@ fd)
rp:' Ato-s- "f :Yt'::Y' *eWlUxt^'W" ,
d\ag9rz
l---'4'R'4;*et!t,^'e'9*re^ia'l-"-t *t"e,k:"'t g* <9-u
5a.r^As'o -P9
dtrJ*{JLP<a/3J..t- cn,"rol.'\_,. <9.-.'"
6 o.r.r Z-oo"c- r:'d?\ )
.,pr *9e4 t^z' fr4'4 (f,-/\' --^,r':'0ern eeo''y't *'* n
t(glrbYc(Y$ lS a 1;frar!
Java closs ilrot oxtnd5 Ro-
jsp tu3de|+nes rtle f,.nctic.nou j 6( rhr i5
-> Ewj zisP> LLX &lr\kdn5 cTe 4rcgho.Otelt
Eve*1 i5p t!$ libY&\j Canrtrins cne
Xyn\ g'te h4Llir'3 $e tcrr$gurofion
-> th;6 Lld gle &rntrlns 4rruo;ni de'l-cti t5
-j fosmrn Jse tzrg [ibrc.r5 '"-
ft i6 c'l(lrl! $ Ye.cirneod€d iO
&1l- thr'5 Ca.n't 6s o&c;aved bX
lb cvcrtome this prodem uj€ cdn
and Lrse rhese cushnn Jsp fugs
jsp t .X rr-.rr€3, t<rg he'ndlc'u
gnfdrrre )o cleretop And uSe
rclol ,>ot>.
detrlop Jsp pogrc.rn5 os ihvc,codp lesS Jsp plqjirarns.
tisinS predegrr d Jsp iags" e,c. *rstr ar€ \€irJ /e.r5 iD (c(nr.
der'etbp c&sr-Dm Gr hjs jh currzm: Jsp kg tjbra €3.
ln JsP fmgraYns irai(ad oP Xavacocle.
-_+ Jsp
---+ -Ihe
$or conl'.dn 3 6et oP Jsn ta3s
CoI1ed
ctcds.
rcrglibrcorl d'is6rprtn hr"( tra prle) - *thts tld 6re 3
& jsn ta-gs'
anA erc' - ''cl&ss r&rnes, ojrh ltttr( narnes
fusrcrnJsP -T€\ib'IaY\ej i
Jovax' &r vicf , jsp . &ger C . IoSSqTs1t ,io,s .r"d
tct6 handle,t clal s
Step-r : - Des;gn J5p rug ljbYLYb
&df,Ua Tagllb'{"q
DewloP
LABczL^\ L7
rtre JsP ru3 bc'"atetl c)&sses LNEB-'rNr\clr's6rs Brdc,')
$-rp-ai
ABcTagiav q
clasg ABCratl exKndg javar . se'rvpr' jst'' tagex u'-ft$wrttttpubli c
{ dogk{t-lagt) Il erc's dh'n
/l*,* t^lbur
opo raS L""'7 enteust<JY|
,t .> ef,louYt'tex'clo&n3 t'r3 r-r ''
PLtbli(.a1,
lptbril
JL
-t
TJ
inr
tht
fet
9-na1"3 ( )
frdo
Pubx cq
. . lt"s' tou 1 ,, . jovc,r ' sqwu jsp iugtxt :Iq!+''^'t
clas5 )W10S qlrendS
Pub);c inr clo3rz."tTc.g t;{
_., --.t
Rr6lic if* cLoEndTrtg( )L.-....
x1).\
Srep'u iDeueiop frd Sre hurinJ Js? ktg6 con$grrcrnvr5''===-
h.lB-lNF\Serht.t\d
:-
L
LA?)L7 blt''lz> -->
bo 8!tP-s comPl eB rhe deuelorteot cP J6prcrS libronJ '
- cc,oP;gure JeP TqSlrb&r5 in Ncb'x'n) ftre
Zhleb-clPP >
@ Ltog!\b7 r;\zr&glib- uri > dioo z lf'glib-uri >
^4l &r3ti t" >
zlwcb -c'eP >
E\ca J6? ictt u i'r&9 i5 ide{Lhfier
u.ss cusrornJsP t&3\ibrat +Ies
7rc IIbraYt ir5 uYi rotrSt be sPac;Flt d
ABCTcIS - cl.r$S
XY7T&S ' clors
6lrf -r
ry-
@
8KQ-f,i-
z r.guo, locrrncro> l^* -i1 &.i: t" z l brr11)iU-loco'rco^ >
uirh
)n JsP
lrg
ffi.
tcglib-crxi (i'" a"-o )
in JsP fn%rar'l !.'
l,rt9," To clse dog 0t-tsturn $P
b0 *t"S U'@t"gtiu "/'> t.fi'
@ " f*f.Y' is r-user deh ned
ano rhq +cr3 when
htt ltlt
LaSs oF
Scrrn€ n6p1g.
tm alfPo"e nt ta3 lruravles h"* a0t
Ftotrr 6f €xeco*)ctn : -
O 46t'" /\lbc >
@ f'o- tk*
A] gc.5e d dn
/'1 n /_-\e E(9 Bcrsea
gl |to- ild
--) ruhite
v€lctfq
ktg encocttter 5
rrrg tl-e P,reFx " st
o bj eft is prtlte crcd tnem bet
Tclg*ltnuter cLals
ffieGnrcxi obie,1
" Loi tl be gortrrttcl
preAx rte f&3lib tttri '' der6-'o"
pog. Cor,t ^ t
ClCrsS. 50, ln €vet
PtF9. $iag ftla
eklt| in a711..'raw 31ia 4 *"3
SuQea,ue*t >, fl<tQqr"ret 1 6od elL.. .
EVAL-PAC'rE +eocdrlclc8 the ra'rrtninJ Conrtrtt '('fu Pcl'
SKIP- Bopy -------+ i6rvrts' d* b'g e:{ rhe -T1
.- 6t-IP- PAh E .-+ i6mre; the jsp PcEe qxa-ba-blcm
EvAL-BoDv-krlDE -.;
inctqla the hly 4 ft1 al1)te *1
the jtr *rt.
- bodg Co rer.t rElcrred p,r1cesgJn3
.-,---= doEndT.g t) ttPe.S ca'" oP Ooslni t(t3 YetcLKd procsssinS'
. Ftn oc$np\e afp\i.orcn on c$tc,m5 f.€6 deue-l'errLerut re&x o*iiJot" ,r,
--/
@ ar, 1 49 c > t'5 ot(r{Lf, €oes to bro(nsel coindcrtl as ves6aa6 v
on rhr tl8trb oii ' &m0" rbe tta 8[a n'c'me
Are rbe rrtme o? fie tc'3ha"dle"r clctts 'l"t
- a pcdiL o( laSl-nndtev c-tass exeurt€s cnkonr)
- @ a6t'.A]6L> tctS fccrpul: €t'} 'tt' bracost" '':;trLrt crs
derr loptnq -foarH"tA lex clat{ rhe, J 'U doX r* t-,-) t&3 merlod 'shrt' t 1
cme 0f-rhe -FrrocoinS
*4?ttt'ts
roirt bg Serhetd
c,nd lxcLrtcm @'t'
fu+*odbe
LftF)L> 1z('3 cd) l) bt 6srl''c'a
l€.srctflse'
l+l r' I t-trr-_:.-.-
vdricLble oP ;rre-aeP;ned nt3g'f(t'o
pgeGrr.^r obie[t ls Vislbtr c(s inhetred
@e Can Bef aLaEsS Orltn ;nPltdf
+he merhocls li l'e 6uOc,rc),
a-f,sit ( Jsp St,ndora f"1 L;o*"j ) i-
&Y€ lop;Dg cu*ofn J6p kgs
i5 ;ncbsi,t €hrnctcrcl .
6etoP d,fl ctf,ritctf;le
iS veq co^npiex. &+ nnk,ni ;l3p &S ,Io.r,a code
To ove''ca!-ne rhis poarem sLun mi(rb
J6rL.
CI{i
Ge
in
ler-s
(i) Cir'e toq ti Umtie s
*" 6ir€s ntlS &' Lasic ofrjl-4flcrn
--- t\d ftre is "
c' rt d
(D s6t.-49"*"-, giw' -f' DB
---: rld Pire i'5 i
oPc,rztdon5
Sil' bla
(9 F-t T"3Ut"'*t
*) dv€{ izr$s .P^ --!^'*rn^l n-nk^' AM o^A&-
o^w:$:ry*
Art $ese jrP -k6\iha'kl tT'
flo'+'J " Jr't/ ist1 ' jal -l,.'.'
f- r,tL- Pnte#41
irr ftfl l..^Ar"'t clo{ca'
o.J tl^"i'-b '*l't f'n"^;'" l"'lL hlllo
tld fl.,res, frrX brdJt,$ JsrL rhette ls
6coz thol o*WVyrt
CloJ leJ
Sres.
-r tlJ P;re isr $-t"rtd
--, t\d Hre is I * ^t\tr
--> !", ,,r* i nf-wtt{ an s^
no need o? dc*/uoPln5
cilt"A cu*lahle 'tn
tld I'rr* 6"ru ocztt bAe in
tk,ndand . iar, 6srL'ia'l
lexs Jsp t troqra,-.
$skrn i5 3Wp1gt^g
cu5rdm Csp Tafl librali€.s in rbe {rrn 4--+ 06rL (cmra; n5 4 irnprcr* ribrarriYJ loo;n5 rnrtiln)e .taflS n^dliot'U
Ltsin$ r.lrtS to-6s ur ca,n
The J6rL i(t0 libr.$le6 4're
JsP -I.13
daxk I [sP f'Dqrc.ms cL] &rta code rnYarfn{,
live Vo'iatl€ cl€a loroHtrn ' 6nnd-, rlonS' 0rnr'a? Fia,: c,,^J al'r." aPrW\-.
astr tt6 [''f"'"'tl
rr/-tt
procedG\.e t0 tcu'(v- ulif, J6rL tccXS :'
6rc0-r) krnr: &bcret JSrL t'!flS 'rnd it otfiA+<'L ( paXe oo '15-ltl )
gl€p-e) g.,6"i tld e1e5 P,'om sranda,d'&T, iott'Jc''l ord Pta'p rt'e rn io t'lEB-rNtr (%l&ry'
c.Lld, *'td/ Prnr.bld, 6?l Eld
, strlaf plnte.grao&rd'jar, jstt 'jal R'res in NFB-aNr\riu 6tae"/
-.6q2-4) rrnAgrre J6rl ta3 libYaY're: i,., ureb'xnr) Bre Lo'ei1 +<'$liL uris
- 6Kp-b) u5e rhe ta6s .P CsP ktl;bxlYies h sap prTs'
- tsrL Llse rnote ImP\lcit tlieor3 fo PrDararn e'{ lo usetn3 a'Pdl caH .,o daxloprr^'+'
$e 3Y wol,urem asl -G-^-'oco4g[cx 6sP
-fhls irnpl,ti I o6j4+5 ar€ c6e€"t *o rrp'i*c
-. Wtx't\
rrpre ;rrfric-r- f AhierJr3 o-'re .,^t u p .
- flararr) ---'---- -- fo !'Lfb€'t 6ng reofr€Jl fx'r@ tltvLue '
.- purarrVao,zs ---- -4 lo qat'\e'( rnutHPle 1-€44resi 1xictm vaL'les '
headerl +tt guttw or'e waa'r,ebT I'rcAen v abre '
- heocUnVor"rs ------r I' 6'+* rnc-ttfiple 'r€'pre*t h*a* volt*'
.'\ J-o c.tsY toi rb rellle"9t Aj+nAt4
- tt4iresrV,t€ -----' r(r L4Dr ** ' - ^l^,rnu^ oLtr..,bltt-s anJ erc .
s"sspn*4t +a uofi' Lctufl' a-{tplitolla
i-, To perft,um avirhFati c operdlloQs to ctuu crrr fi va^JcLA €'s cc,e necd to PWe
.Tarncocie )n J6P &'r ploce inJ Jtlljoclrtg in a6? ls c'.grinst o( indlsrr1
s r,.nd.&rclg. Q* rlus Jtp u5e &rprbft fo expr€5sjon Lt rS"oq e 1o p'ftfim a'arhrrattc
and lqior opc.raFcrns Lo)rh &;} u:lnl SuicLeode .
1ryI' $fzc"ren exec"n'te >J
9- f lat'"3 ----t ytfue "fttirh"narlc qxxa*tcnL'
----a {ie can ofptj a(f,€r$n b*"O\ e,thoi .'n
gorie hrrn€S Cn borh \
te.pbrc kxr dr ovt .rl;tL l-'as
/__'
-, At sxg6p\e o-pplira.ildn cm Jert fzt6s and exflress icro Lamntn1c te1ft't Wn43lao lb tzz.
@ \"lensPtE'e
4Pe
Vlvl>utz "-7
ApPl;CaHoo ftl ve1 S lcd
/rgm \v
Venctr{
!e{5ion i 6. x f r'x Ccc-panste Loirh J-dK t'+ #)
C(Jrr)rre1€-i(rl E[u]
dePcurt Prrt numbe.t s
qo6o
->QoSo ----------r
ft,. oa-in Cco*le \*'
9cry acceising ur€bc.PC'cafrrh \r
ktes -'------" exlrc"(t )It -:
o\lurls h Cwo+e dcrtr.-in 3 CPn'' ht€'s )
?."a*J";a slur '" .utPd ' ibm' ctr'T t
Jnstoil'r$n an prDced"c€
Dr,n\oo.d IBY\ cL<Je6?hew cr{f n 6e"rvrx 6'0 'tc''r
ule $e \nsrcdr hre o? -Wlt '%de^iu')r rr rL r'v
^ t ^ --"rln in r''rc]o*hrrte "" -
procedrrre to c<eo-te ugr deFne dorroin
srtrt -'tnt$1am
:-"--'-- Tgr4 Neb6PleD^€ ----^*:|::ffi
,:;:,;:ffi^ -''^'' :--- "xb -j pmP;te.am€'@ _-
fUext-----,Nexc=_-^p}reHurP?c.rrourn64'admincc"nsolerilrr/J.rnb2l"-.-....--9
Pex b -------+ NCxr ---+ Nex b
poce&ve ro depb gee ff"ffi#: .,[-I:,,ff -'{ff..ff u*
:-
q,q-,i,11'T:*.J1.Jsil:J,Fjt[ffi*S#ry*# e
nr \ pruqTc y'l Firrg\ Jbr' ,\'"--->_.- jdxt + sqqu \Y t'"'"' ' ";ffi[lir.'edrr")7id{a -vrrsru'"
rba^^D(1_ :;:.r^" et*&cK1r€ c( cr-.,ebaffDea$vo nmd \-
9n0-'?" creote d<ptoye rneru c[]rc$zD5 sr "*.-' \-
olso rnape Sure rhc't +e "lo$
F'res c.* &mprted b6 c'sln3 JdKl.+
gnvitcrrrY,,r,,f' | :
[ 1\ Dox Aee
F-----7 ,.rE6 -lN F
nDrc (9: rrr.r,e
*re @: 1.ru-v€
lieb 'xm I
-'-Z IDOOVPE
Derc,Sw ,j61ya
1\mcwpe..
Sare
gcr€
rlof
rtn-fl5 C4rnPtle d c.silg jdF l-+ env i r.."r)rnar+
-Y ;5 Plc.red in t^rc5'x,zr r Ate
,, ]. gotr*n fttt lub-.fp- e-3, dra g'r dF
' ) 1+o^^. xam e >\ rtu\ &rulef- api -ic.n/web-aPP-1-6'drd
LNfb-aPP>
:
Llw<b- ot?7
blcP-O'. prefrrre VJAP &re represen'rlnS 'the Luebo{'Pn'
DrteAt p . tnnr
p6[VDcmd-ln Sra-*'the kntd
E:\DareltP) iav cP
s:p'3"' s'ccrr rhe aL*ve cftarcd *"::- xvdxanu'g-w<,rs-------prr"f"!*
^
ilc,-',v
- TtrDfl<ms ""-'---n fufgfl Wct"61#E
-'--"'-1 ' '{r
2.opero q6[min Gntole o? tbe a)cffe Drno'n&rr't
sftnt 'PiDglams '-----------r I$M hrebsPhsretnf>
- r-Lru v"--.
Ys"r"" 1 wAclminisiralrr€ &msole
b'.- tleploXee rhe- uxha+r>n @
Aclmin C.aneole (ateftsr"re) --------vet1a>l/rall@e n Snrld{ neo 44pD =--)
Oiucnl Ste53s'6 +=---, Co"l'ri?'EroO
@1ry?DalcATf
- rfl€xt .-r nex L
-t
Cot1;atu---,neul rnexb ------*tex("----..FY'}/h.=
kne fii rmrKx @n(+nt'JtaH a'r/t ----------- saue
W
gr<e -+".- i.eep rhe dqrtoled uxbo,ppn iq nrnnin3 mode
c4pricaHcrns --r'EnKb/rde(
c4Pn5 ----t V oot"*'* ^Admin C66de ----------,
3F '{v '
S"p-u:: Tesr rbe
OPaqbfiurta
brrP'/l
Anlc&llot)'(oindo ot --) Nti K NS uv1
rr,rnrbost -. qosLlrvs<tt'p lrcst l-
-C*, p* rp.oP darnorogrnr't i. e. cj,pow &^\ *nx,. .-
to &€arc J-dbc coorem-lcrn f:oo I lo Jam(a-h Nclerwe'('pro rr&'re
fr1.**o*6icp0 :" Keep fte Srrot':ing lax ftres io Lrro.cc*-holne>\lib gld4/
CI{rcbe -lbr'{Gf - btfi - | "l '0'1 -bin'6ll4v
brnccr -.ldbc'icl Cgrrtrerrng &"" opccne -Tor'{Gr - 'Jo o- - t 'r'"
tDrotol -oluti1a't (orrett fu'n (torncaf -bome> lurn ure'rt'$ )
6t?C) :- wnrc 4trrulio3 Code iE Llor*ot-home 7 \c'-e \ ccmfcxr' xm) underl
-=- ' eYne obi€rrZcartrc*v> k?' _,*^.-n'ld* - f u/'-" .,
4Rescrrrce mTne - -*dr' -
tiJr€ -* iagl-94ry.r*, g'^r5', r!$a*rvt*''LL
+; = il"**e. brrcar.iauc.gool. #.'"""at*
c{.ave,.rClctsNc.rne = " olacle ' jdbc ' dtiuc,t 'Otaalc-h*n "
u+='' id bc', crrlrlle "rtun
: @rlmo'l hos t- : \5u i rrc\r l
--.t , q tr
USorno-rne --' ,lotL' ftrsSrocr.d = "ti$'r
inittcdsize ='o' rrnnA.ho = ")-o' m0D'Idle-'"1D" minl le=5
nraxhlc b = "toou
ftn'a,n*6*'v l-L-ra, opro.1 tOPtfcrd)
.' -O$bc t+ .Jav
LlConrc^tz
geue\oP the urboPn
ohj
bd *,",3 fi"6llotldfrttsurun Poo t
a-Iobcufool
\--'
e rcffJ:Dcpl
Bfarerrer*
l?es'r+-3#
5rye!LN$-ct+Pl>
WEB-ANF
i-------*w.a'xnn t
iodex.jsp
//,@Wtge ;v6p6r=" javax'raYnlr8' * , javal'E'] 'xt iava" sgl ' x" /'>
1t'JniiirrGrrrexf ic=neo Jnf rtaeGmfcxt6l ;
i/GretQrrasoc.vce obj Pro- €isr''t . -*ff.*!HT*lDlafoc.rce .ls -- COtr.,scr,'<e) ic'toortp ('Jovor lc"e/"tY /J-lSr'"'" )l
Illet ^o*
5. jcbc c'o Fol l'ntott" @ofl'*trGrrclcrn Cuo = ds'flu1rnneu*.on. ) j
llrddrc jdoc cocte
6; = ccrn . a*oPSe'r<tttlt"t C) )
YE = .Sl. exer-!-rl€ &tj ('S-r.t " &- 9k)e-nf.);
ilh:re Lrs.ncxrt)){grr-t
-an ['cs'ger].zr(.1)+ '+ts g*Sung Lt) n'
u
zr ,tr>
ogee fte dhue uxlo?Pn
h*prll lqorbcst ie&o
--.--
h mniio*k^xrr and
, :.-*r
/irae*-3sP
rc", rh"
+rs. g+5rrrng (a) + zarz)
,.t l
u-f-}o+Pr>,. .t
Se*n7 ;n V{etaPPlico*toos
--r Nerutfl. i€r€-l .ftcrtri! is not
-" PrDgfafrr/rs Cry€ re6porAi ble
----: Appucattto hrnr e"or"l.g =
rhe rego"sibl$ o? Fw6't"n,ets.
to l"n'nate aW lt^xl &carrlrg,
") cbect'g rtre
iScc.ued
ideohrq o? a
-fuOte-rrcr,rl on
') Chreclun3 the O.te55 Pelrnis6io s
&rrrtn-ri zatltrnr ,
**E rleL6ry fi1actcne6 perrntsslcrs of
pe'ft1atJt,l
us1 { tc.Ung rfie Uarmrne and pqssar.rJ
ofl a ur.^ 6n r€sOurces iS OUed
orrrhe"#cor<d to c'se &''HtJ pru.]e{- b+ ''E 4'- Ev.'J Ernplqee mut be
- * n*ott t't't " tft" iau c. cotle
ade{x- ox toSin opPlic"}ldoc
h, v<''foJ (h'.*^'^w^)+ fl6 inl"
-':,-::":T': ;.,:T ff'.;'"''J-;;:--5J:::il J:" :
--+ F^prirzrq m€c.r' da*t' aittle pm*crcd bx to.'b;5 -:::.:;*:***1 :
fr\5orirltrrrs. -I[ 'q' " fle6esctitr5 P\D(css
\-/
thBit Otc€sS p6rsil66lcrrtS t'ai t't
Vc.n;a.r *vclutet o( &^n"f, [*Rj*h'
(D l,qropp., scc.,trb Glso &al5 DlIh frrobrq'iq 4nd
Orrgiool Dart^ " ntv i
Encoded Dr*o' : lovbcr"cvd ilc;
Dt*a oPrc'r Decoc(cl'int i r&vr
(oe ccrn grgb\e rhe or'rn' coHdn lare'\
Qf P0$Y.\rrLi-tic aPPtcrnch "
"
s€c,'* t l or-1 ct*c-PPlt cc'hl co.5
\n ioe-bresurrce Pa6ram 5 -
v\-./
lr) rloar (o(tts- \-/
Auto^tr^n ^ -t y'orFrry;z^Hc.-w;-
@ ftuuror,u. a0prmoi' :-
----'r Use ul&6e1ve{ 8-4P Lied
NglE'.- Dectc.rcr,liv€ 6qptlach i5
S8'\lei S1>elihcc.hoil g-rPPort5
Ure-lc oPPlicoficnS'
O Bnttc 1- | .Ihe se crrt rnuch
@ prrcnrsr I
I
@ rr:rrn I@ cLlENr-cEPT ltr;ore orrb
Simile'(
Hlqg_q Poi"c"l ' OlfP<ran* N'-n Ot$'- "-tld* )
L, h**t ou." +J* searred sookr Late,r'
hlien Dclararrw &c"6t-3 \y-::
on on{ o-'cb r-e$out ce prcpJYam tE need
€ecuvi tX
fl('r-;cl '
/t mocle S
Palrn Cirnsep rs ttt-"3 h xrnl entde*' ' '
c+ o*o"ricoflm | S"ctt"lt$ mocle'|5 crn
erctb[edUnder6tandin5 Plocrl o? o<ecldso
0n UdreSO..r'Ce fn4{&m5.
\EL:- to enc!*rle dedc'ra'tr"ve &{rrrftj
€n#ea ln Walc'xrnl RLe
to cDrl-t€
mlddtt!'are Be6vlce
arr-r.lrorr'li cr# crr c^nl
okuch rrrtrnturns
aarlPa zattlc'tl
Sprc {: LLloi / rol eg
achvideE '
fM
-- -J ftct(\liJ l€atrl) i5 a
ftre rt{rtilvrd 'f"
yQnesy 16 &rlcr / JsP l>r fc,'nl
ierfdse
tglo,.|* s..,r'h)
[x4rmme : I y.rj4lF3rsodd ; Far.rt -l
f{"-! -teritr', haurng
vo.iq a---)'taDi (rote: eruploue e )anit <--j bqd (rore: crnplogee
dur8lt 8i"t'sn
4 S.ontetlirt f'tg
hh0o rllrtli ple Javc. Ncbcepticdtl dn6 C{rc &dt deflogee d ii) o
inoicrnces fcopies ) ol &..vctlet corr l.ritr€'{ J JrP rc'nn'iner
t cb ci-t)Pt ccrli 611 bdsls t! exe&rte , &rvler, js p rmrof(rrn5
k,r.to the
tocb cr4Plicall crn
Yhtriderrl l FleS 6rt0
&"ruer {z;, CXett{r'orr YrYJJfi'Pl(
.r:itt Sfar rcd Crn ccn e Pcd
t? thut ,txl"a4Puc&fto't ,
0)4O prsgrarnei deptoXe the
rec.cl5 tdcb'xrnl fifa and
1"r1yl1:. 6lerleilttiug Sek\i q '
h.oden'
Dlalog..e toxi
Sette*Co"Jz'nor rDarthe'
?oscmtd "+
in ut-loSctrue'r' -lbe
crr! resocote Prgr&m
Conlzdrx,l
is encr,bled
@ B,ros.,i c')nc[.tr' fivt'r relursl- lo T::t:tJ';:-O B.ros.ri co)nclOtr' fliuts
1t1qr3r ' u
Crn^ blocps the re-Wr b floin3
@ E6wc,,rdner tta{'t *tis 94elh
-,". rerc,.,rse l-rouripl orrdrotli&rrcEww %T^_._.-,"x rrsec,.,rse l'rouripS orrrbotli&rN
t & w.br'sot"ce wtam { ff'o"(]'o
gor"d - tf"t Crcc*PnricrrreBased on r',,o
the p'crlogre bor lo collctl the Lrso)nome
,^ ::"),",nn**n*o,
APr-x ScrbmirtrnS ll'5e'rt")Gtrr€.,
)( *'- \ dn2 (,
F*strrrrcL end uJed fc'rlclafet ' rlut'st Wfr
"r€sPdnse Yrcoa/Jl tbt Braisc' alhrrlocO La.ttr"ches
$lutrrr ustxrlcLT}le/ pctEscr{rocL rtrirh the @'
Secdtir3 realrn- Snee mcur<hed fvww]n]ost'a
t6 Lr-:ebwsocii Ce F-o3'rar4'
@
t(9,{n&rne/
a\l0tr"''S the
(l itt &',vt*
ot-1.lPut
ilt$atal 6ercrc*cd 'r'erolr B* f' B^,otaEuA;ndo- '
-, U6ex rotes crre lipe grnplogee drslSnoflons
I gsersernii o qe€s / er#6 deftr_; I S .-I
; 6rlls{5 o{)pl$
Ust^ names'
oh)*' oUd, u6 b Co+afl6n4
6"7
Arqhenz-r'tlcrn loB,* [c'sed on ggrrd'es Y]o'l- based crn
Everg €arver girles one &krrrb Securtg Potm Cntted
Irr Torncot Scrvelr lo add uJetr6, Toles ta &rurl tg
mUr€alm "
us€ ]-Fnfftt-bome>\ctmP\l*'c"+-us:rs'xml e;Le,
Nrin Sttotri''',3 cocte bmcor - (s€'!5 ' )\YD I S re fo adcl osers(roleb:-
in urder Ltrfr]rot - Usel 6> ir.$
ltole .rol€ Dome = '' eroplogee " / >
{rO} e rol€mm e - " &rfelviscr{" i>
4use'1 uY1norrDe .. koE ' Pa56 tlJota = " Kctlo"' roles -- '€rnPlo Xee" l'
Luy't il\orname = *rrxxrffa-
Sasa-oo<A = *rrarnsa"
YD[€3 = " emgiogeo" '' ' ' "'
zu4^ usernam e =^ 'ieshu' Passt,,ra = " ,u'n* u
trDl€s= ' ggnplogee
' Srf'rvRld 2
.
z-lttmts+ - Usors >
UnclerSk^ncling BASIC n-".fet
Ease 6 + Encoacli r'rg otgcm"rhr
------+ fume
.-)1q1fu5
ul€-r rrdfft€r Fostoo" d
Ul9rnome, PLL\! udrd '
PwrcLrinS
decrde
9 ftycrre is--> uses
-) Uslng
no
..-> tlc.res
Underetand.nS
Decoc^ding olgc*rhrn Loe c4'n
6e(L!.ri rb '
Branse. coindrro 3<rreraHnS
DJCIEST rudcl
cts BASIC nnclal
rnnd.el Lls€{nctrn€ i
Dohge box olr\ Sxecl looraoA k'e\
prscoorrl
bur useS $D5 [iles".-xePiXest) alSa'itf-n
;
Can'L k- ctecoaclecl 'So'$eco kf
$tpports
clc,toS' Hxed
ftr d+jgq f is or':4t-
6cr:n errr-t/ ff'fe
I .-fflis
h* is
Dfa pivc'1 rhene
-1 6r\q-.t Brocrrsex {rlindooSFeuJ
tbe P""r o?\oor o"d
FORYlUrde'rsKrn&ng rrrrle I
- L) Seme C(.s BASIC hur t''!e8(bor{ole tn P*So@
&' Q^-n4te to yrtreJ userrtLr"qe, pcrlstior'\ qrrd ['tS
S'''tr, clisV\ct'J gr(n msts !r,hc.r 4..*"n tlcrttl-
e Nldng Wcl5 ' xrn \ en Hie6 % kd arcLi-i Ve Securi rg rnoctel Orn P+gurufrooC
n€ed rD Speciq Tbe Srutl"g 3 inRttrrriHcms'
ti.leb'resclrce cotletHoo :- speo b tbe c'r-brescxrvce pt%tamo cn cphrreb U cq
.--
ul6-nt tD 6ppf$'ftoaxe'rivt eeluviq Ccrrr€tgurcrfrcms -
A"rtr'*;arrtcrn Consrre,in-r6 ;-Sruil rettm crnd qjc' " ctetc"i t s
}{btt
UL
o
e
(0
'--t S?edb k .;r5 ffoael and
U60"1 -Dilq Cc"xfrc.i nf ""-
---, sPeciq frr-o rhe end user
Ovor fte n<-Foc:rv'
g,1rptY trscnnc.rner Pdsuxrrd
h€ d{Piie A
gYf,'bleA 'NoNP --l no eonsr,oJr*
SNIF(;\PAL "-) Ddlto lYitffnrb
- CoNruDpr'il-JAL
----) D',k^P'iv€cil
(Dill
Loi ll
Loil\
&
Le erglledoitb $rne
w
5r(p-1 ;,- keep user6
Yefttr
yt:: Develop rhe uxb &Ppiic&l$c'n as sha,rn 'in the app:lica$on(D tf rht
sufplirnenry h.",doar Brx'.n
crn (rt ir>J "tr> )
eradei
' )at nrutrerrltcoH c'rr appWoltfoo
€) fo.,"arr. ro doetoP and e^eclLrc Forrn rrod e I autrerrltcoH oo al
yy ,5ame c$ pre.{lont ctppt}c{4icro
8t+e*th h,e.top t'-eb opn to..:rn5 userr i{ehneJ 'Bt- 0q}' ,
* to8t'
eho./rd nodld'-
encoadjng "lgT/t"9tPPatr'
Htt? P'ott'c"\ cu''A u* us<-
rMe: lte $oltr&Ll$ &\e IVNE,NU\e
odobng
L/rph !,WU 1t*tol.
INTEGIP,\I- r CONF'DENTTAL r0h1e l'co'Hn$
$ procedttre fu develope aod g^gclrtr- &ua e*b opPiidaHan
. OP rluth eY*icofi on '
{ e.euilrtl BA6IC Yroc/eJ
rec.drJ hatlios Yoles in 1-irrfcf &rver'
previoo,S clasg ( ltll!l)-ol2 )
G*t.f itt Towal - ut,rs' xn,t)
a* sb*,r
@) spugies fie crrbresot ,te rno4tra-.. qame an tah:cl-, rfus seorrttS sewlte ehorrd * g:{uo_@ n^f +" usas coho a'e L.o;*; emplu,leu yole on Ac.tl,e,,r$ tarc d fo #"::& "
>>>>>>>>>>>>>>>ExamplesonwebApplicationsecurity>>>>>>>>>>>>Appl: (BASIC/DIGEST Model)
.rava------------------import javax.servlel.*;import iavax.servlet.http.' ;importjava,io.*;public class Firstertends Httpservlet{public void docet(HttpservletRequest req, HttpservletResponse resp) throws servletException, loExceptiont
Printl,llriter pw=resp.getwriter(); - r r.a,tqg lb€ t-!rr-'rrlci. Ur{nnaaYncpw.println("page successtully displayed");
pw.println("<center><b>the user name is ,,+lgglgtRgrnqtgqser{}+,,</center><,/b>"};pw.println("<cenbP<b>the auth type is "ireq$GulfrTtFelt -+tk/centep<b>',);pw.close(); -- -_1-ir servicdi! t--j d.s7fttr3 rhe enalLe d' sr&'YI rB rn ctel lipe l]'$$r, Dr6,E<r.
y/ class
1345 icDl.Sest
ye1rrCst ctY I :
h.tn ', /h oc.,rhost : rcro | €ar-rcDiage-r r Are / swr '
<securiq,-constraint> ,l0git'j name c!,x\ b€ arrbftoa
<web-resourcerolleclion> f--<web-resource.name>Authentcation<A,veb.rcsource-name><url-pattem>El{L<rudTmfrt;Iir ftrn(,v- .,t e.^,i* Dyrrai am _
./*f '*""t*:'ffid',- s1,o; c", 4,.; s- ;;, ; d *,' be poab\ e d Nk'r'
io 5e'vtir flnir<t1n.<auth.constraihl> ,
.rote-name>Eltlfilllrote.name></auth-constraint>
<lsecurity.constrain b - .-r... The .otr.oag mo.ti rhat L'x toLtntl .o frr'>t'
<login-cotlfig> .----r6P€cih's<auth-method>BASIC<auth-method><realm-name>my-'tealm</rcalm-name>
.fl:in$;3"0n'-*E&Pa.r1 n'11n-, no-u *,''n r.o h-rch ort rls u kct's and uleg shlr ld be colle+eJ
-i.a*or*n Jnrmp*5e)-m 6arhe,r Os.{n&r,f lz?sL.-r^'l.-
<tiue>Security UlebApp login page</tioe><rhead><body bgcolor="fcccccc"><blockquote><h2>Please enteryout user name and password:</h2>
liim meooo="posr action='j-securit$l""r,,t--E Fr"d-AIol lrrt as e^{rectfd bb Qru'{
cb.t*iltu(.s tnLr (--) Lc.uA '/"/ten-
1
234567I9
t011
12t314t5t61718192021
2223242526272S2930
r.31
@ l::IuLrs
35a\ r37(9 Jrs
Lrs404142
.43444546474849505t5253tl555657585960616263646565676869707172
<tr><nable>
@ tt", crr-lRtut i5 g'xcd an d Ccmmon I o ,.tt Ktvut L' Fncottst-Tbase ncrrn<l o"n' 6^* ln Q'ouf ?et;Hag
</tF _-]-;-<tr> + Ffd (r'rf)Ptt (/nl rtr(r4c<td>Password:</td> (x\<td><input iype="p3ssword" name="i basdword,'></td><rlr>-7__--
<tr> L- h,red &,rng<flr,^f frdr.l e<td colspan=2 align=righD<input type=submit
value="Submie>4ld>
<web.app><servlet>
<servlet-name>sewletl </servlet-name><servlet-class>Firstsrv</servlet class>
</servlet>
<servlet-mapping><servlet-name>servletl </servlet-name><url-pattem>lsrvt</url-pattern>
<tservlet-mapping>
App2: (Form Model)--*--------login jsp<html><head>
<table border=l><tr><td>Usemamei<rtd> A<td>cinput tlrpg="texf' name='l usb+rlame"><ttd>
if nor {rro.,rrd *t*,nu
{;iae lo ,*t ffi"" A"t-^ '
73 </torm>74 </blockquote>75 </body>76 </html>77 ------------- ---rogin_f ail.jsp--{oil-\--9.!'-L---g!!.s.. gctt f )78 <html>79 <head>80 <title>Loginlailed</titte>8l </head>82 <body bgc olor=#f{flff>83 <blockquote>84 <h2>Sorry, your user name and password were not recognized.</h2>
<p><b>ii rriie"rogin.i"p,''J </a> </b></blockquote>
85868788 </body> \89 </htrnl> / 4- - - . l,\rjb;d.r n, enai\t Sec(tdq /99 ':--:------------..-!ditisp-CBlx''io--J:I-n:-l-:gt"ro orr ct)hl cln ut c{rr ld0F'n3 rcr crr.*91 <html>
<body><l/.out.prinUn("<center><b>the user name is ',+request.getRemoteUser0+"</center></b>");"/o><center><b>login successfull.., welcome to hoire page</center></b></body>
----------web
929394959697989900010203040506070809t01t121314t5161718t92021222321252627-2829303t3233u353637
ft
1
1
1
1
1
1
I'l1
1
<!DocwPE web-app PUBLIc "-,/Sun Microsystems, lnC.//DTO web Application 2,3//EN" "httpJliava.sun,com/dtd/web-app 2 3,<web-app>
<servlet><sen'let-name>servlet2</servlet-name><;sp-f ile>/edit sp</isp.fi le>
</servlet> L, conpi5o,i"g jsp
<servlet-mapping><servlet-name>servlet2</servlet-name><url-patlern>/securityl </url-pattern>
</servlet-mapping>
<security-constraint><web-resource-collection>
- 1091('J rome<web-resource-name>Authef, ticationl </web-resource-nanre>
:il#n:ilTf+1ffi.- '. P.n ,;na ne : rui
</web-resource-collection>
<auth-constrainl>.rol.-nam"tWSt/role-namet
</auth-constraint></security-constraint>
<login-config><auth-method>FORM</auth-method>
-E?nuhtes FoaH rtrC( I "f arrtLolr}lranc"t '<torm-login-config> ^ p ^-^,^.'_,@e .hLf dt j zcd .
<form-iogin-pag-e>/togin.isp</tormlogin-page> )swha dx E,mft'3e {cttorl{-9< to" *'<form-error-pa ge>flog in_fa iljsp</form+ iro i_paqe> !<form-login-config, -
n
r- <leflctu tt 1.r!dnr n(,m( u,<realm-name>myiealm</realm.name>
</login-config> --</web€pp>
Fc'ntv?}IEB-T N F
I iocb'z.m ]
tq;n -F"t. j tedit'j s P
re1l1osr L{yt r hq,.ll lorc,thDsl : zaxi }lr-A0e/ &cttrtt5 t-
@
C[rrur- CFRr ..-
., -) Thr6 rftde I send 5 D;gitol Cerrifrcate to clien$[ 6rcc'\sed d in'locds) akng cDirb I\e fe?rats'
-'-'+ ro prelare rhese EiSrqr ce'ri 6(crf€3 &\e can uie ctl8aorhn-s )it'e PSA ' " '
.-, -+ Thi,5 is nol 6iv.n to ve''l fo auhe nricotl on' ar i5 Bnrro tzr deot u:irh Di8;tcd cedri 8c"lq
.,, to ictnt&tr rhe cttenr6 '
, ---r -this shurrd be rred ol{,.)3 &rili HtrPS PrDlo@\ (, HrrP 6u€rr 'ssL) on rFp-f ,
--.-> qre goner.oil,t trre *Lls rnodel al'"ng artrh BA3rc melel 4 Seornr3' "-
BA6rc rqocle.{ to-t+es care .,F o'*hcn'ti catf on &r- anJ cLLE\r'T - cFPl roocLel &m4s
the dar(,- c^.Krr $e rr1.rdrk io rhe Setotttd enlironrnr-n* t..l tttc."g rbe
g"r1ii:rr ,+ )r3ir.t Ce'ttficr"l+ amd S6L'
- @ rn*.dur. rc dreveioe clief*-ce.rr + BAS'C rrDctels encroted uboppl'lca*{oq
rhe . , . ,',- loi'1-m bard DiSil-'Ll
ry=:^- use ;4p &rrrptted gf'"f lo y'rerafe df PsA att
Ce"{rrPiro}e' :.rrnu} -pqcrlg BBB_
c:\ue.,5\rrrrarrh > Kgtoot -ss''keu -Gliob T****.
" l+ olgoiirhm'
E *cr fqao'e Pa'$utt{d i ro'jcrYo'ic!
Re - €ntol rlgr-u fxiJs oc\td I rqjarqj a
t,ll.nl is goc.r f;tst ^a last rllme : v'Ej a vao
!Jh* 15 the name & Wr Srnc'sniza1111n i whga
he qhlue lool gcrrrotes Are wflesen$n3 &6nc're'ntff'o+<
c: \ ureta \ <to;ndrurs L15{,,rnaro€ ) Sf ae,t > ---,-,--- <oioeloos f--tlt f in uin docas 7 er,v;rcrnmoy.+
SrPg- ernble l-lctps prplual ;n lorca+ &nro envirdnmo^f.
Ztorocof -hrme r \ coP\ Srwr. x"r, I
qclcl, ire {llo,rin3 too act&Hdaa'l
z.ConDe(r( fi3{ b - 6++ 5 f.lsi.* P'te Ls a,tYofito\
kqotzrrcFre =
t<erlSrrr.ePos6 ='' vqq<lt^' / >' -I -* aHrc c)"olv-aPaftasld
g rnctil't sur thor wr< crnd roles ae +,s.r in -lorncar-us,rg.xrnr 4e.
firn *---r rerror,z'l Cornrne{fS Prrt 5*L l.nne$vt} ta'J
ollnelrres in rhu \'ftr. attve
'neaEd "
,|" 6: \ u5ere \ sarrtz\'rei6u'e
fef<r Privic'r+f exc"'q'tc
l'-5kP-q:- clqlqee $e BASrc r6:odf) e.rcrmple 64p\icaHcro
Pesfc,.rr rhe lovtst kvv ett
$q-ol Test $e ux,ho4picayl un
ljnder6randirq rhe ,Fcro :
Client give$ fqn€Si to
-J ctieru cr((q,rs rhe
pYD0mm- Jn rhis pma6
in +ortfat krolt@ '
( Blsrc Oi,to,usr "ne)
\-
uxbcc,,t,vt --+ &nr,r c€nd.9 DlBff.lr Le,rh*e€arc" "jl**_.*"-X
0xlrlg CLJEItt)-'{r{ '-
\ /DlBi tcd Ced &.(af,e cli.n f prDrecds 7be relralt to rceb,rtJrxrtt€
fbe cttnf s4rpw d &fc. 6oo ro Senyov in &ctrved errvinoornr'16 v
u.tirf 6sL, Rsfr "lfldtt/"'-
\,
vU
i,
I would try to update our site JavaEra.com everyday with various interesting
facts, scenarios and interview questions. Keep visiting regularly.....
Thanks and I wish all the readers all the best in the interviews.
www.JavaEra.com
A Perfect Place for All Java Resources