0% found this document useful (0 votes)
221 views124 pages

Web Programming Hand Written Notes

The document discusses how to interact with a database using the TuBC API in Java. It explains the key interfaces of the TuBC API, including Driver, Connection, Statement, PreparedStatement, CallableStatement, ResultSet, and ResultSetMetaData interfaces. It then provides steps to implement database operations like creating statements, executing queries to retrieve data into a ResultSet, and accessing and updating the data in the ResultSet.

Uploaded by

harshamom28
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
221 views124 pages

Web Programming Hand Written Notes

The document discusses how to interact with a database using the TuBC API in Java. It explains the key interfaces of the TuBC API, including Driver, Connection, Statement, PreparedStatement, CallableStatement, ResultSet, and ResultSetMetaData interfaces. It then provides steps to implement database operations like creating statements, executing queries to retrieve data into a ResultSet, and accessing and updating the data in the ResultSet.

Uploaded by

harshamom28
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 124

,.:.

~og
>:t~rt ~dd~ e.\o~ s

'> \J~ l C.lo.~~


> ,cp soctet s
') uop Socl<E't

'> j(\\J (\ Be<m~


> Rtv\J.
CJ) r0t90!) eo t tha.t e_ !l Clb \PS j C\VO. Cl pp\ i cQll b[) to
\ote<act uJ!+h .\he Oo:\11buise .

-i ,~ res O-+ JD Be '01°\\/€'fs :~

.1. . '.}t:, le, C - 00 BC e,'nclqe d'iwe f ,:,-


~ 1he JN1c- oc:,,i,c b,iclqe O"'i!e, l\ ~l"'l OD~c d~ver
r1:0 Ccnr,ect 'l o "l_l,p c\o:l(l\xt~e •

lie Tue 1b'el c - tl \l12' c \-:n f c\Cj !' chi veI C. on\/e IT s '3b e, c
h')e--\-\")Qc\ C.O \ \S \'()t() -\-he OD& ~l\OQt\Or) c_a_\\3,,

e
IS h ow

--r

I '{ \

I
11 .....

'i

I
, I
\

j
l
('rt 0 ht:, 1n <lhtl

4 -\. \

J ./\P1

I I lo.''"'

/' I l l

-+ lhe "-let Loew\::

CorNerts 'JD Be
dcrtabo. ~ \)Yatoco l ,
\/enao'Y - spec (t;-fr
"{h,n dY"\teV
-w,e ve.ndov - 5 pt'cfi c
0~ -ct,~·,,
.t 1nat ,c \o.oguoqe,
+tl l\~ lD'fitt e>n \n

1n-te.'<~0..C.E' S 0-t TuBC A-Pl--;,~

1-, D..-i \f e" 'otet ~ o c e


2· Connect1Dn ''h,\..e'<~Ce
3. st:o.terneot irrte'<:fo.c.e
lf· '()fepnnciS-to.te..rnent fn-\.e'ffGc~.
5· Cc\\a'ote swternent
6. Resu1t Se l \'r')-\.fr(-fOC'E?,
0

1-· ReSL\\-l Sel \V\e:lO. Oc~o , rr\.eH0-.c~


'B. Do lC\ bG Se ~I\ clO \)O lCT \ n-l n -fClC.E'

q, •R0msr,t <nln \nee .

C\C\ SSt' c_) 0-t- 1DBc APl ~-


\ I \')~\\/(''\ tv\ C\ no cy 1 Clcv. s
1

'.). BID b CIC\ s c;

-3. Cl-06 eta s,.. ..)

-4, l~pf'S cto~c-,


~'JbBc .!\v\PLEtv\Et-..\TATlON / lONN E: cn-oN
~TATtMf~Ts :--

,0

Step_, ~- F,y5t we oeec.1 -tu ,rnpo·d: --\he


Poet
.,,
t .,
date.base \t- namel~
\t
-\-t)'( 5q,,l JO-\f 0.. s-9i

Ste.p-2 ~-Naw \f) cwder ca \aod ~\;e d"fi\/e-r



' LOe
be u_g,ng Name C) 'fOe-\-ha c\ b~ Ld'{f t\' f) 9
~1 '"' c..c Y\').,,.

ete.p - ~ ~ ~ow J c ~o.te CJ. Stat ement , the Statttr)e 11 ~


0.."fe O{ ,-\--rr,ee "tl\P eS. Tu e~ G '<e :-

1> Ne'iroo._1 Stcternerrts ~ '"Che ~O'CYi)o_\ . s+o-te.rnet)t-:s


foter {o..oe ·t q )1e serrts the Sl:aHc- S&, L Sieiernenb
)
ft he.1ps ½Du tD C't~o:te o.. 9eoero1 pu_"<po~e

~L St<1terne.nt s usrrg JCl\/Q,


11 ..

t\ >P e ra~KI
1
StnternetYts: r 6 e_pcwed S'tQ{emer:rts 1'epYeseo\s
O. Ye cern pfle d SQL S-\::.m.e.rn e_n'\ s ) tha.t Cun be
e:::cecuted men~ Hrnes.

i,,> Co.l\a'o Ir St:Qternen ts ~ The CG.\lQble St-ate rnerrt:s


,ote., to.ce P•D\l Zdf' s fl\e\-hoc\s · t0 €'X.ec.u ~e> s-tD1ed

D)l)Cecktws.

Step-s ~ Once -lhe slate_ff)ent-':!! is c__,r<?O.te d, now u:€

l0r,1 be exect1..tl'hg ~e quey~ i'n ou_i dato.taJe.


st:\\! , c..\osrn
~ree u~ mem0ty rresou.rtCe ,
~ rote< +o.ce ard st:o.te. 'Oem:
0

:::;7 cr.--1c.1-t'.1'..t-l.€J b A-il\~Mt' ~E''s\lL\S:


i .i ihe SIS/ L G1n.te.rn en\:S ·\:h1-I. 'f ea.ct do..t Cl ,:: -roro o..
II c1nta.ba.~ q,u_e,tJ ~ •w\:u.ni -1\,e c:la..t<l in o. 'fesu1t SH .

i 1he 5~ LEC.T Slote.rneo-\:


\S .-\-he Stancle..~ o lDO~
~
1

(\ a. t-e. boJ:,e o. nd '\J t UJ th e.tn


II to 5 ~ Iect "oCl\JJ s ~ ro 0-

1o o. --c esu \t s '€_* .


.
Ii'" ihe JClVQ ·sci}• Resu.1t Sel \r,t-e 1 ~Qe "fel)Yesen\:'.:c> -\t)e_

1esu d. :;e.t o~ o ao-to.bO-Sf' 9/J.. e~ .

\i4
1
Tue me .\h:\cl s ~ ~e_ 'r"' I< e s u.1ts e-t \ n'I: e ' I ~ e <' c1x1
Ii \:,e D'lllt en &:-u:i0 fn'l:O .i,+we e co-1.e_~'f1. inJ

\'. 1ne~ Q'fe :

i . 1\\cw1Cf'ti Ol'lC\ \ vn e th oc:\s : \.J s e c\ '\:I; VD\l\/ e -In e <'..uYsay

Q'I OLH\6 •
--\D€. ~a-\:-a 'o ¼e
11, f\et methods-:. \Jsec\ \.-a \ l \<Q W
b eJ' og ?Of I') 1\1'0
(.n\ U YlW0 S 0~ .-\'(\ e CJ_\"< '( i:J)~ "<\J \...0

b~ +n e C. U'< ::oy ,

111 • \'.lpc\Q\:e -\\. e me \hoc\ s : ,_1q ec~ 1\) \J10c:\ a.t e .\h e c:\o.-\o.._
,n \ne c.0\\..1mos o.f --\\-)e Cc\"< ·ce.ot i:aw.

~ 'JbBc pro\l1c\es --\-\,e ~a\\GuJ\f')S C..O\\oec4-{an n")~od~


~0 Ctrecrt e Slctl.t'ffle_nlS Lu\-\h cif'she ci Resu.ltSe-t:-

) (ieC\\e S'\.C.\'te Yf) i;:r)t (r f')\. 'Q.s T\\ p e ) 'fot 'Q s G::if)(U_'f'(ef)(gJ j

'> \Yff('>C\\e Slcrtcrni:n\ (s~1n9 ~L, 1nt ~'S1'Jpr>


,\) 't Rs eonw He.n C~ J;
~u~~:t~~ -
"
c.onn~ction you, Dtt
\, ~St0.b\1sh
tQ

II
I
::2_. ~h-ite S~L q,-U:€.tt'1°t1S~ t)ependfog- tin ·~e ~~ ·~
1'! dat0ba.se you a~ us.\"'09 , yti Lt UJOlH d l0'1\e i
J, G\,Ue-.rfJ . ~~

C.onne +·
c ron, 9,L~e,uJ (' Sc-Lfcr ~ \:="R.ol\,,,
,v, i~
0ser3 i

..f u )

unci. ,m) ( C'Y'vOY i fr~uli. s J .field S.J

rt ( 0 ) C'Y) .\{,'IN(' enor. _;


•• I-

} j
tr c.,to~e ..\-he C..Onnect<"on
c..o~ne~+fcn.€.f\d();

~/ N ETWORr-It-Jq ~--
pe~oitl'on ~ ~\ e..tu.JO"/~\rig \s; ?YI1"<nYi I\J Ochij! 'Hd ~u.q \J
,nrP C-1-1':l\>ecteX't. lmo:'ik~ Pl\\tnC!l1J \s a_ ()T\ltllC.OI -tha.-t
1
f c1e+i oes 11 ow Cl f enl a rx'I s.eJN us en= 11o~entE' O\f e~
~he ,otexoe.t ·

~ u,oc.ert~ Of "-le.+wo,~roq ~~
1, +rn r 'R e::iu esit, : c_\fen ts CQto s.eod clf-Hef en t ~pes m-

.\-tTtP Y E9ll es\: s to s. ei\f e.lrS ·


I
.I
:>. · A-JM :-Asi ':jrx:honou'I jc,\IO.<X"1pl ·o.rid )(.M L \5 Q te<:.hn'l/-le
-\ta.t- CH\ G LOS y t)\J to S:. ~nd \--t1TP 'fe..C\,Ue~t-S --¾'YO\'r> Q

web P().g e UJI-I-ha ut 'f e \a(). di°() C\ -\he_ en~~ P0'3 e .

3 . Fetch -Arr ~ ·me \="etch API is; o. ml)Ge,o :§l-110 "C'<ip \:-
-AN 't\,Qt \)Yovldc>s: 0.0 i f\te<+Clce %, rn <1i::io g \\ HP

~ue~1: •

~ · Rc~ T-t-U \ A?J s : Ri:::.s1 CR ef-Y~ PS{:T)\::O. Ha,n l s \:-Qte "TYU ns-r ei1 _)
",s on C\Ylh\ tC'c~\-t.x<c, 1 S·\cl\ t' -\-hC\°l c\et(nps o. S.E'i::

5 · l/\leb s.0ck'ct-:. if-..\~bsoc iccl \s 0-. Cornrn1___mko:\-f"an ?YO-\-t)Co)

'tnC\ 1 pv,w rd cs -~l\.\ \ • C\1.J\)\e.:r C.anrnuo\ e_o. +\"on b e.t-wee.t)


C\ c.li' ~,,t C..\ i\c\ C\ se::w e, 0'-l E:, C\ sf ng \ e , \oog -livrd

Co110 e ci f C\ ll .

J
==>l'NEi At>O~E-~ C\...oA~~ ~

Qe-frn,Ht\n ! '3 o.va I net Add~~ Clo.~


n\.lme11icoJ :rr o..dd't'e!~ ano dorrnfn n<1Yl)e
h~~1:.
~ lv\e,\ht)(\s 0+- lne-t -A ad 're~S Clo.i~ ':

>.Iri~t -Add~ss ~et B~ ~to.me (stY\nq \,D~t-J ~


R_ettt 1 n3 "fue. ins-Klnee o.f 1n ft -Add r@ss
LlJCcn +t1J ~t l-P ond n atDe .

'> -Irie-t Adc!v-e~s getlocnt \--tost() :

\ Jt 'o E:4\J-rns. -lche IDStOl')C.(? O+ Ine.t


!I \'()c_o_, hast f):lvne ano C1dd¥t?ss.
I
I

> s+r,rg ~et.\--i ostNa.,nec. J ~ _


:C-l Ye¼ Yns .\he. host oo.me. o-t- -+he -IP Odjrg
8,:s.

) S-+ring qeH-!1JSt Addn?s~e_ J ~-


.:n. 'f e¼Yn s .\he T p AddYt> ss 'f'l S-hin g +D1'frlat.
~O'°\p\e :
, lfr)~ -ct
p
!0-va.,o*. /

I If'f'\'0)'< -t 1G\IQ f) f"\. t j


u

I Pub1, c. c.la~s .In€.-\. b err;'Cl


I{
I

tr~ {

Tnet Add'rE'ss ,p:::: 1ne-lt\~dress ,get9y~o~


Cf( lUlGl(), g~°:1\('. C.(Wr/, J ;
s'1 stem-i • ciu_ ~- pr1n'tln
(', ~
-\-\t:Js.tNC.Yl)t>; '' ip ~ qettt~tN(lll)e0/
gllS-tE:.~
::i 'Olltu~~l,Y\.lf)(''
} t?MdtPs:s : 1J-\-{p, get\-\os:t-Addi-e9soJ;

C
Cal c. h £ 'f.- c f p\f CD eJ

{ .;l\,; t rn,, o u\. p, i ry_lr:,( e);


_.Oll~:
+\O~t t--,lome ; wuJLO, goog\~, (()rn

::C.\? ,Ac!che.s. s ~ ').()6, s i., ?-~i, \ \..\.'8 •

\~1 URL- (L-A~~ :--


oe+-io~0'oo ~ \JR'- SlC\t'\c\.s -t-a1 U\"\\ta1 lo) ~f'S~IJ."tre loca.tt1Y
{$ g i ~I':! c. SJ.-1-nng M tPX\ -\hcit lcim\-i'I-(~.,, o11 ¼e
rre~ouv-ceg oo -.-\he \n\~rt-r,-et. 1 t~\.\.\n~ us "the adcl~as a-{
e 'fe.s.auYC~; 'riaw +o C.timrn\1(),CQ\:e IJJ\'.'-\.1--i ,t:- cv,6.
1 ~-hi'\/ e

lsorne\-M1"i9 6m ,t. 1

s.'n aYttne,r /

4 Corn-pone.r:its o+ Cl l1RL o.os.~ r:

\s .\he 0'm tti Ct-,\ \,e'<e_


l• \')'ffitO C..0 \ : t-l TW
2, ~l\S. '- \Y'lnw ", "-.\C\rne C\~ .\-\--\e ,o e
IT'(\ t h OG Lu\·<k.n <\ne.

1°'t'~C)\...\"<C~ \1'\/r~.

~ · t="i\e~crnw ~· '\\)(' Pn\hNC\ff)f' \1J ½"le ;,\e t;Jr-:i .-\-'r)e_


inCH.h,ne
Ct, rt,,\: "-''-\H'\\)('\ : \)t,, \ N\.\'<~,bc t lti t.\...,n,Jc..h to C.e1f>nt::c.t
C\.~\:>(co\ \.1.! r ,,?\ f t.\no t)
Mol~cmoE'(j
'elJRL c~t~ioo addn,s!i) ttrroLO~
· :1 ~ 1.. object "ttovn
C- •
i::-~cep::ron: Tt '- VlOa.te.s a. \_'.)
t'I
11
:

5+ring.
"ng host: 1 s+nno {f\ ~
J. ~R L c~+rl°ng pyutoCol , ~ J ~J : .....
C-reo:te.s a. lJR L o'oject --m, rn --\he. <;.peei~-i'ed r->

nost , and ~\\e_ nome .

B •lJRL Cs-tnV)g protocol) t!mng ho1- J Tryt ft)Yl) S1Yfng {fi


C"iea_tes °' \JR L obiew; +'l\ll'I) prntoc_D\ , hti<:,t " ')~
, r--Orl
l

Qi){) .\=-\\ e_ mrne . ·

L\' IJR L (URL Cnnlext J s-m"'ng spec_')~·- C''feQtf'~ Q lJ~

abJ"ect 'p~ PQrs,ng +he g,v en s pec iD 'the g·Ne_~

• I

De+i','),Hon ~- Te p 5 +eV')&.s -W"' 'Ti C\n'.:imfs~i'tf'l Cof'>+n:i i

poD-\:oen\, w\1 ,c.h O. \ \ OUJS {Dr Ye\,able C.,Ov-cm\rnka.li'on


6etwe.en two arp\,catfons _, 'Te. P is ~ P1Co_\l~ ~ed
0\IE:~ ---the L)"'tel(l'"let p"b'DtDC.01 ' w\ri rch (s \?Yh c 're_f en ed

tO GS. Tc.P /-1 ?,

~ Tue 9e"' \f E't 1'()s~cn)\.10.\f'g o. S(:~\Jt'6 Soctet objf't\,


dent:i ling wh,c~"', rr.y.L
u '--
ll \.l.mbu,
~0
co~,")IY)u.nkatf'Dn 1s to
ocrni on.
7l lh e S el'f \le~ t'n \/ ot.P .s +\')e Cle c..~\YtC) ~Y) e-tl, bd Of -the

Q,n\/e"~ ::;CJC/c.et C\o~s ,

* lhis C..IJett\s unH1 a CJl°e.1-y-\.. Cnnnects to


--+he 9i\/ E'n PDn,
~ ~e. t
oc~et Object , sPt'cr~tn~
0.-
pO•
.,t n u.mbet< to C.OYW') E'C'l \-o ,

-rc.P P¥0<3 ra.m ~ ,_


:,e.l('\f eif. ja.\ta_ :
!
,.
. \('(')fOlt jO..\I' (\ •V)€_'\:, ~ ;

' jr<,'(?Ol t s Cl\tQ. utfl .~ )


(> ...

\rnpai't JC\\t Cl, ,a,* ;


0.(lS.5 Set<\f er(

t pub\l°c 9Qt\c \/Did tnoJr, (stilog o.vgst Jj '1\y,ow,,


s~teptr'on {
g-e,f'(\f ~ Soc_\(l_et g .$ ~ 'Oellj S€.t<\/ e¥~octei: (5 s-ss:) J
RQ\"\GDrn '(= new Ro.nd.oro(:::i;
t.Dh,(e Ct<u eJ
l ~()C,\Q_et s := SS.,ClC(ept{_) ;

g,cJ03,eC);
}
}

J II

0 ,tnt. -
JClVa:
, rr,port jct\ra, n e"t, J ;
impel\: joSIQ ,U\<\.~;
\U')t-'Q'i'\: ja.\~Q. fo.*;
Closs Cli\~xyt
f

E:x.c.ep,fOI")

{ ( //
g 0 CJ<'-ct s :: ne.w Soqut '-" \Dml ho~t . , s-s-ss-J•
)

!npu_--t S'tte.u_ m r.s == g ·get .In \0 t.rt ~ +r e_o_ mc) ;


Date.Jn '(:X.rt ~ -\-'n:o ro dr.s .=::_ I) e.w Da_ t-a lrw.)ut s+r~rn (·
Is),
irr\: i' : : - dtseread.rntO; )
glls,'te_rn, D U1·
J
p'1"1Qtln ("
I 1
'r(ll")c\,ow---
11
J
\ftatue ty'e_( •
t.t. vrd is::.\

~> UDp Soe_~e~ ~-


De-ffoitl°nn ~ Uf) p Si01;ds ,wr l)sef( Dat:ugrQfr) Protoeo1,
Q Corioectfon- \e 1s pmto c.o1 4-h at U \\oLos +tir
pactets o+ do:lo. tD be -hansrnfttrd I
between
ap p I'i'co '\:<'on~,

1• Cx:rl:G gv-a rn PCl ct~ :-

4: Jo \..Jt)p"l s le'f•rr)s , CJa-\:a t'YClt;.s{ened Tu enCQPSUloted


,n a l\ni\. cC\\\{' d do:t<l <J¥ Qo.'),

4 \(lJ\J CCl.f"i c. ~o. te O-.- tJa:\GJj'\'(] l'D ~c_tc.~ abJ E'Ct- b~


~\s'Zo9 (\XJE? O-f- ~e ~l..t~_{)t'ng Cons+n1c.4-tol"JS .
if· oata3rom ~ct.et ( b~te t: 1
! net -t\cid~ss ot\c\r~s~ ., '\ht ()Ort

;i, pa.to.g-ra.rn 5CX'.Ret: 0


0 -

~ \fot1. use t:0J0-9iorn <Soct M. *~ ~~d Ot\c.\ "(()c_e1v(:)

co:tQ~iro.rn ~c.tet~ ,

7'-- '/OU. (OJ) C..f€.(1\:.(' a.. ~Q\:QqYciro Sac.tel Ob1 ect bq U,$\f)g
o()e o{- +he {~\\tHDing Q..Gnstrucmr s .

l • DatQ(JYQY'G Sact.et:-(.)

,, . DoJ:e1qya IT) Soc. t et ( , r'\ \. t'C) ot ) .

c C
Rec_ e_ \ \f €'< • j Q VQ -::

frnra1t Jo.\~o ,n e·L, * ~


,rn(X)'!t jn.va . uHi.* :;
1mpDrt JO..\r Q. fo . ~ )
(JQ$$ R ec_ ef\/ E'Y

{ P\\b\ [C' 5\:ot1c \l~\d imf1;(s-moq Cl~Q,s [ Jj 'l+\YOlD s

8--e_~p+ioo {

ba-\-o..q10.!o) S octet d_g_ ::- f)eUJ Dcilog"fa~ ~tict.M ( L.t );


444
b ~tf' , bl\f [ ] ::o Ot>tD b~tf'(GoJ;
LO f)\ \ f C-\-m f'J {
b crto..goCllo) ra(let dp = \>e\JJ 'Oa:tQqml'Y) ro.c.let
( bll t 7 b u,_f , 1 ~f')g-\ti) ;

c\ s • Yec.e.i've ( cl p ") j
SHYi' ng g -=- n e w S +n o9 ( d p · g et bQto c).) j
.:_; \\~~·au\ ~ p'<,o'\\ n( s") ;
1
.S~u . j°'"°' ~ tp


'rnpo1l java. 11et , ._ )
0

'f'C)po1t jo.\fa.utr1.1t;
(I

1~Y-t 5m1a.fo. t ;
I
1

I
C.la ss. s.er,de~
i{
I
Nb,,c. ~i-o+ic \~"'°1d
'I l-'
rY\Jltf"
, , M, J
(~+-vinoJ o:vqs['JJ 4h..
., ''b~i
I
I
8'.((:pHoo{

\)Q-\.Q.oYQYr) Soc,ltet c\s ==- new DaiQg,ot)'") Stitt.He


J L
1n-e.t -Add'fe~~ f =- .Inei -Pi<ldre1.s · get 8~~QtlJe("\t) '
Co.1 ~~
b ~ te 6 u.:f [ J ::: oY-9 $ [ DJ, get B~ te 3 C);
~'\:o.giotr) PQc.1::et dr = ne.c.o DoJo.groin PQcte-e
Cbu -r-, 1au:f , \e.ng1n ~ r·' 4 ¼~ 4J .
)

Det(n~tloo ~~ -A J Gl.fQ Bean \s O spec..t"o llJ C.ons+n.t.cted


0
-1 G.\tQ C.Ja ~.s u:rn ti.th
.,,
fri 4he. JQV u OJld C.oded
CH Co 'Y cl rn to +h 1:. ;C\va Benris ArJ
9

Co tt ed O.C(Pss.-cw.

2_ • ge.--lPtCJpe1 ~ No.mec '.:) •. for e:::carnplP, 1+ pYope.tY ty n~me


fs +f'<si: ~lornE', l1 t)ur m0hod no rne Loou1 d be

sctn"'fst t--ta r-0-1 ec ) \-a ~ 1te +nat p~ore,~ '> +his


fY-)p '\t~ o d fs co.urn rn~tQt-or.
•c C\C\ ~S
pub'\

( P"l"ate shioq -rffit 1--\ome == nuI\ ;


_ U3 s-\-1,oo \a5-tt----\o.me =- riu\\•
t)'f\\lQ\.~ J J

plNate tot o.ge ::-\) ;


pu.bl1C s+ud~o~9€CH)l) {_}
\'Ll't?\1C 5-\---ciog qe-\: t=\tS'tNQrneC ') t_
w-\u10 .'.\-\1'3 tNoJne ,. )

}
pu.bli'c ~+n\"\g getlost~Otl)e() {
Y'€m'(f> ~O.~i: t\l.nrrie )
~
()U!o\iC \f) t q e.i: Age() {

"few, "ff) o.q € j

1
pu_'o\ ic \I a,d set t=-(Y s-t ~lQm e ( 5-n ing -?{ r5tN.Qla)f) {

¼ (s • -t-io" s \!'lo me -= ftr ~t ~\Gf'Dt: • )

\'Ub It c \t O,d s d LGst \\.\OJTH: ( S+nng \Q'.:, i. l\lQ\'D e) {_

lh 1s, losn..torn() :=-to 3tNO.rT\e )~


1
pub\ i'c \fo,"d set /i\ge(Jhteger Age) {

tni S, age :::: G.g t' j

}
}
r

~ ~ IRIV\:r ~
t>e+rnMon : RM J .9-\a_nd~ {o..- rRernotc.o ""{t
:rn\/oca:tion . It
,0

\5 a me c.hm,is n") 'that


$~s\:ern to Qcc~!s ( r
Object Te~fdFo~ fo ~rie

' Cir) Object Yunn,ng on a.no+her J\f~.

~ Avthttf'ciu_"fe o+ (lf) 'RM.I !-

D'e~(~~
I ,
I

l
0

I ( \ \ -tot-
I

I
15~
,ey--
~~
'€_ 'Y\/ I

T
'V

S'tU 'o I

I
f'S"Kfe~
"
I- :s.l____,

?-~ ~
\/,i tUoJ
- -
tG fl '(')(? c-1 fon
-4 RRL
I
11QDSFt)o t Lo.~ef'( r we\v:l\l'/i" Uln rw ct!on ~ '\ 1 o.n~ ---
t lay-er
\
\
I
po1
-- _I

>Tca.nspa'it Lo~ -e Y ~ lh,s Lo~ e,y lannects ~e Cli°er.it


a nc\ -the se"f\/fy ) , t rncu~grg ·-\--\-)e ex.fst:fo
9
Co nner1fon ard 0.\.9.a sru Lq) De lO ne ll""' Cannedfovt .

) St ub ·. A 5-\-ub is 0 €r'Ye~ ~tYtO.H'OIJ o.:r


1 €.lo)trte
0. ~e- i
ObJ°ect o:l C\1cr;\.) .:r--l 'if {ff')' 'Ye.s 1df'~ \0 %e. ~
C\ ,n(:: ry\ S~Si. E'rf); 1\ 0 C-\:S 0':.. C\ gotel0oy WY .\he
CliQot \J'ct:Jq-ro m _

> ~t-e \etoo: l"hi's is +he 1'"'bfct t___()\,ic.1-) aesf'd~ oo -+he


Se, \J ef Si(\p, S-+l~b C..OIT\l'o)Uf\1 c_a."t-P~ wf-\-.n +hfs s~e\ettlO

GbJ<?<:t,
l,JOl'~fo~ o-t RMI :-
Comrnuo\'cotfon be tween e_t r~t on d SeY'I et is
-me.
,:odted blj usi'og ·\J..OO i'nte.rrnedf'at e ob1ec.ts: stu.b

11
, t or1d s1:.e1eton oPiect as o.1so co.n be
I o'ofc ~ 'o €.low ro,e df Q 0-..::i ~ \ \.. oUJ5 ;
.deP'rted ,YOV'O

C\knt
I l
.----
I -po.,on1~tn / I Remote
IRemote \ p:imm('te1 LJ - lsr.,ie\Dn - - - • 1 Mefu\)d
!'l\e'thod llst:ub I
{)o,rro.rnettr /Tu,, orot1 (m !
1 ' pcwo:rncier ~ .. I •

I ObjecJ~
I C.Q\\ Of) l obtCt
/On $~1vff
' [ c.1\en"t IL \Xl~OtM1er '.,~ j

j__ I
"I
-
()U'fO!'MteY
-

·L_. -
I
I- - i

be W\\GlllE?d Sec.iuen-lfall~
~ ll')es~ Oie {he Steps 1D
cif {-\''oed 'o(: \itJUJ o._3
to fm r\ eJ'D ~_r)t , 0-\ €_tf-fo ce os
-W\.\OUJS ~

.s-le_p- ?>.,• C~eal,f'lj


" "'>lltb ar,c\ s\'..e\etori objects -hum the
-'' rnr\e1l)en\a'\. ran c_ toss us,·ng ~rnfc_.
ut
~ P s---: Cteate Qrd
Pn'.Xjmrn .

s tep - 6 :- c leo.te o.f'\d ex.ectttt° the


a.pp\ico:tft10 proqra.rn,
rt\1t :r ~ APPLE TS

~cWO. --1\pp\~t 5
,.;, 1..iie c~c\e o-f Qr, arp\et
. ..
/1 f\c\d(n~ W-f\Clqes -\.o o.n cwp\et.
,;;; r(\ $S\-~ ()Q"l(.\ff,elevs lo Q\'") C.W\~t.
,;, AO oCng SDlmc\ iJ) C\f) Qpp\et '

~ L\f E:Ol ,\-\()J')d \ rng .

--"7 V--.\ or f'.lfXJ w i\h t.0lric\ol0s , E'\"fQph\'cs ancl 1 ext .

~ \_,~sf ng f\ \N T Corytro\s .

Cl S e"(\f let
~ Ufe cy c1e
.-)' '"the s e.1 v 1 e-l A'() l-
-,, .\-1ori\\log lc\TTI' l<.equest o..ncl Respons e

·➔ \Js, n g coo'l:., es

....); Sess. \· on 'TYo.C.drxJ


pa1t-..T ~ -APPLETS

~ T-AVA A['PLET r Javo. Applet is o. Spetro1 ~


1
ptogya rn that is embedded ,o 'the UJebr-o.g~

1
~~O€rrate the d~ncJn,c cxmteot. Tt -run~ ,0 ~,d~
; bYoUJs€ir Qf\d worKs at C.\feot side-

St:oJtC) method ~<(- - -..


l -
f POJf)t() rne.-lh ~ .

des-½'o~ ( j me+t-iod /

\. ,n,tC) rne-thl)a -:, .It b used ta rn,\ra\ized the


-App\-f."t • :r-1.. is \f\\lDtec\ on\~ tJnC' e •

\\. StCl"'tC') rne-\ hbcl : :Jt fs us ed to s lG,{ i.ne. A--Prte.t.


:I t fs \f'\\J tit ed C\{t et -\J)e ,oft C ") mnhod lo'<)
\;)GUJS(: Y \'S V'O(l'X IV6J,aed.

·UX\ l Cao be.

'" • Slorc ') n)e'l.htKI ~ J l i , \..\ S( c\ i.:D sto p t\;e +\ppl-et,


'l \ )
\rW ~Wl ' C\ u:,\") en /\I'\)\ Ci 1s S leir Ctn) b~U)SfY
~

IC>
rn i'o,·\'\,-; ~~ed .

\/ · de c::_.-\\cn-1 ( ") rr)·flhod ·: J l , ., Uc:rc\ \t1 Ges+ro~ ttie

/\r:,,lct. -,\ ,s \f'I\J C\l::r c\ c-,n \y tince.


tMc ctoss Arroos ex te.rias App\et
pl\

[ frno.ge pfc--\-UY-e;
. \/Ofd \(')\t ()
pu'o\lC

{ piclute = g etfrno.ge (getDatu_vnerit&iseO •" im9 i· 5P<l);

}
pub\fc_ vord po,ry\: ( Erw,ph,c s g)

t g,d,row\rro.ge (piduv-e, ~D, 3c,, thic,);

J
}

-::::)-ADD:.rl'-\Ej 50L1ND TO AN APf>LET~...-

1rn0)rt io..v~·C\\'.'.'?'~\..~ 5
p ~ 9
\(6')0)1 t j O..\IQ, C.LIJt. ~ ;

1mrort In\/(\, Ol\Jt. €.\fet;l, ~ /

It <_ a pplet code :::- '' A rraoE/' h-e,gl-)t == bbO CJ,'.) fdt b :::: 6oa>
< /np r\e.t >+/
~Ub\ic (_ ((1 '.::,S ArP006 ex.vnc\s
~) n \ ,-
,t, ~,t:J lI\.\.
i:,-1- f rn~\E:.TT}(:J) t 5

t
8 txllt>ri 'o1 ~ b)_ ;

-Au MacJi-'p o.ud\oo,r • )

P u.b\ ic \f l)id , "i't ( )


t
b~ :::- \")e_t__O Bu.ttt)r:i (\\ ~\C\~ 1) j
1

°'d () Cb J .) I
~(1 II)-
Lis-\.e!Jet (' tM ~J;
b1 add l Ac+ r~n
b :i.. = new nuttoo('t
e,
stop'');
:
add Cbi);
b).. o_o.ct ActfonlisH.oer (tMs);
· A" (\\()(~ct
Cl\.ldi\)c.\ip ~·ge--t Auu\O I""
I 'r

· P\.\
j, b\ i c ta ro ( Ac\-(ori E:\teflt a. \
\Jo f d ac+foo ?ef 1m eJ

{ 8~o Sou.Yee:::: ( '2iuttDOJG.e,


"' r,e-t
'<l
Source() >•

1-f. ( Sauxcp. g ct La 6€1 ( ) , €,qUQ 1.3 ( ,, PlQ~ "Jj


{
Qu,dl°o CJi('•P\a~c);
1
e.\se f{ ( SQLlYC'f. ge-\: Lo.be\ C.). equals ('t smp''J)
{
Oucitti CJ,p. s-mro .
} )

::;;, PAss_:rw '?l_ _?~l<AMETE Rs '"tt) .p.,~ -P-iPPLtT ~-


'frnpt>·ct 30..\10. Q~\-:li et- i\\Jfl \('t ;
~{o)pcn t jCWQ · C.UJt · f\'fQpn~CS;

I* <o{:)p\e-\. Cacle ~ H iL\rrooy '>) l01d'lh ~ 0Do heigbt :::400>

Pl\tMc (\C\~s -/\p'?OOLf e_x.·\:.erids Arr\et


.f
c;h,nq s 5
f)l\\:Mc \ft1,d ,n,t ()
!
" <_'7) - CJel ?cna.rnct o (tt Gsen'>of-ne .,,:J;
\
P'1b\iC \IOid l'(ltn\ (t\YO_t>rits g)

l ir dva.u.)Shing Cs, 100, 100);

iE:v eo-l +tor)(.\ \iriq: ·1 c\.\/CT

fO ) hcrnc\l ing / p, ncrc1,c:.,nq

.,1. 1 01a'lll"\t"\C\~q \'n C\fE'o"\. \'"'Onc\\fnC):


, ,; u,cr :· Li Le 6L1Ht1<,, c \-iectbc:,x , orp1 el e K- .. an ~ohiU-,
0
ltS n ho -=> g enr,C\ t n. l -\he c\/ E' n t
c., ic._ t s 00 G buttN))
l \J c ! Y\ : ~;>..Om\)IC ,{ -\he u se ~
c-\ e.\J ~ r)\ ,e, Co \1rc\ Q,..,, -\-he oc t-fon ~\le nt•

J{ Jf € Lt ',C\ ( \ic t c• (H) ·\he ( \PP \ ei , It Is mo LL Sf \'.~ent

}Lt, -01,n: lhc c <oss(s) ,,,1,0 c,'>n\: \ '.l t P:Jto 0'oo11l Cl

( ,,l n 11·, \._\'•I)\. on(\ '\ve.rl\\\d

> [ \[ rr j\ 1 n/ ~,0\lbn: ('1, , ctos:t,-•f' l ~•h\_"\ \'\ <:_:' f n\.E:H' .S\:.f'c\

I, r l\ r ) C\1 C' 1 >1Nr'. •ir"'q ,,,,q hJ\"t' Ot t;:,.\/E'n\. t)f)

ar Lt ·cw c ., ,1 · 1 t 1t l, l n

l t \/r- 1 l . · lr(J \ ro, II\ l~ '1e l : t ,, ~, (I f) ~\Jen


<"
\s
~ r ,,\ I
\
, \~ ' ; l- c.. , ., \' ('if'-'(\\.(' CH ) Cl'D~E(l

r.t \h e i,.. , hn 'moii tin


f ,l ·, :\. C\ "' e t"i-\h
-; "lo -\he
'\ \...r -t \

"\ "f ' I


I
'
I
•IC'\\H,'l~ , \ !--i c CtY('t' C"S po()di~
~'10 I. \I- \ I \ :\ C..

V'\ I \ ,rv Hr '-"<'nl


'"" \
ll
~ E.'-lent C..\asses o.~& Usteoe.t

A c+fon E~eot

Muuse E\lent

ke.~ E \J e.nt ke_~Vste_~~i · ·

·l J tern E \/ er, t Ttem Lis-\:.e_ne,r

Tex-\: E\re_n t Te.:c-1: Ust.e.t)e~

Adjus\ ~h'l \::\/ errt -Ad illstmerrl lisi.e_ney


1
\;'1 fnd ow E'\/ e.rrt l~t\nc.\ow Usi:ener .

~ .\--lo_"d \f o 9 ~l\tillSE' E:\f en t_g - ~"-G.mpte : -


//maid ng use D-f' 1rrnev c_\ossfs
0
1 "' ~
"l()D·c\ __\C\\lQ, Qpp\e_t · ;
lfoipoy t 1°'\10. o lLJt. * ;
1mpa~-\: 10.va.. owt - e_\lel)t.* !
II <applet c_ode = le o..9" w1d+h -::o 4Do 1-)e_fght,,., 4oo>

<I 0..Pple.t)
public cJas. s G9 e x tends -App\e-t

pub,ic Va id 1nit C")


{
0 dd Mouse U'6 i.e.'ln ( rieL0 1\1\Qust' --/\dopterc )
{
f->tJ.b\,c \tofc{ rnt,u~c-i Ctictrcl ( \\/\Duse E-\/e rrl roe)
{
,t~g "K.,qwo,"'
1(\\10 ' (\ (>p\ f\,.. j
,,,,,.~1\:
,,.. !o.\Ja. C\tt,t. ,l )
f1')~-\_ I
t }o.va,o.t.0\·~"en\,'\ 'j

'
ft)po" el code = n o.6 ,> w,de\h =- <-n'lo he,g-,t ~t>~ <-[ a~tt
I/( a\?l'\
11 ,. cLac;.s C\6 e~\.etJds APP\M ,m-p\~m~1.s
pllp\1C
ll~ l iGtene'f

l fot '.:L = 30 , ::! ==- 30 'j


g.wi 03 s = u. ,, ;
pub''c vo,d io,t()

{"-dd Ke':\Lis-te.ne_,(-thb);

jpubllc \/oi cl kt':\ T'l'f'ed ( te~ lc\/et,i. 1:£)

[
St = Ke. ge-t. Ke~C.hnx c );
1q,0J11t (_);
}
rtt'o\1c voic\ ~e~ pYessed ( te~ E \/~1;t Ke)
{
SlnDLDStQ-lU.s ( 't K e~ pYess {'d '')]
)
public \m,.,d ·ke~ Re \e.().sed ( t e~ '£:.\fe.r/t 'K.e.)
{
Sno UJs Lo-Lus ( ce te~ Re \eased,,) ;

Jpublic \rn\d p:110'\.(Erro_pl'ic.s g)


t
g,d YQ t o S-\"(fn3 ( s, x_ ) YJ ~
}
~
.:rn-tro c\u e110 n
,. ·ro.va AWT[~bs
--) :I AVA -A\NT DEF..!N!Tlt>~ 0

APJ. -t:o d e\t~lop


\A!inc:\oll) Tao1~;t] f5 on
in Java,
lDifX\o LO -- based C\~p\1ca+fon 5

ch-ectc.bo:::c.

c. nofr e

... Us t
cont-dineY
~ .
I ~

wif')GOW f)OJ)-€ \
l

,,
A pp\e t-
+="yarn e D\C\\')CJ

41- Coo\.0\0E?¥ -g The Con\.Cli',w, \s (l l"'orn\_)Oner, t "In


ti,tte
-/\lNT \.heft C'Gn ((l j)\Cll'n nnt1lhc~
hut (ons , kxt -1'\°elds, 1Gbe\s t'lc

~ Wf()c\ol(1 : 1he '"\i'i-)c\oll is +he Corr\.ofoe 1 +hcrt ha_ve


n l'"' \ )O, c\ c, s l"1\.\ n cj1 \Y)E'l>U \)(\)S. \/DU '('f)U~-\: P·~
Use nullle1

llCL\\ C1 C) Co,') OnC11h~, loinc\olt'" -\'o, c \1'o t-t~n q , . .


v-..
windouJ,
-· -\
~ P(\nr1 ~ 1\,E' 1--0n el ,s he Contoine, +\,at does n1t
l')C'1Y\.l.11· 1, Jftle h<1, Of'ld r-Y1~nu bo.fs _ Jt con ~1°-"e
ru .. , t,n, 1 nnen'\S \ke- bu\101)> t~):-Ur'e!d e\-r ...
I),;_Jbl:E:} _ -Aill-C. 0 Ni RO l ~ :-
',!/ ,, 1t is used +o dis p \o~ o.. ,;,in~\e lfne t,
~a~1s
I· on\ u le.!)c__-\: ·
1eo.d J
ush E,uttoo ~ C.oolaio.s o. \(lbel and qenerntl' 3 <ll'l
ll' pt wh-en pYi?ss.e~-
ev e..t?
\o_'oe\ a.no Usro 'tn ¼ir,
~ec.lt Ba.x__ ~ con toJ' '() s o._
11I• c.nns1s-\-s ~f (1 SroQ\\ box
oJ) or-rfon on (o~) Oi--f . :r:-t

IV• C-hoice L(e,t' T\: (H'Qtf'S ()_ ropUp h)('OU whe.ve

use}< c.noo seg _

'/• Llsts: Mu1 tipl e dioice o.od so oufo3 se.1ectiori \ist -


vi• Sc\'011 Bens ·. Scm11 b<\Y s me used to se.\e~t CJ:lfl-li'nuou_g
'('f)\ () \mUm ClllC\ ,no..~tmum,
vntues b e'twee.D a.. spec_'tt-1ec\
haiizon\.O.\l~ CJYYJ \J e-<-tlCa.\\~ ,
sccou bo Ys mCl~ be oy'fe_ntc c\

vii · Textt="ie td; Si°flg\e \1ne tex-\. ~otry.

\/111, 'Tex-tkea. 00 Multi\ \'()(:' text e d t 1tf(,

=>LA 1/0 LJT t--1\ -AN 1-\ l7 E \'< s -AND \\I\ E\\\\J's ,
1, 801de, Lo.yout ~ Jt i's u,;ed ~o an<1n9e -\:\\e
Cornrooerits io {ive Yeg,01~ s ; ntJnh '.l South , ea~;l ·> "-Dest

Qnd C.erYt'Y e • f:QC.h 1te q/m ma~ carY


te110 0 \")e
C.0f6) ?Ori ~nt On \~ ,
I\ '2 • 9rfd la~but ': !t r, u.s~d to
C.Oll'\ptments in YP~~anqulM' qirf'd,

~:
Cont.a,ner_corn¥0nent-5el La~out (new
1

\J.Jf>\:u,n~r _ c.orn ro1,ent. ocl uA (en111~onerit


11 -
\- -
i) )·

3. ~loLo LayDu t ~ 'Tl ,s usfd i.-o &no..nge


c.o""'l""V"\nJents "', o '-" \foe ? one oJter OJ)O"\her • .,....i..'t r
,0 J ,-\.),
A

+he. ci do.u Ii J.n_~Qllt M cw,p\et CDY) P<ll'le.\;

g_x ·.
Coo\:ainet _ Camr--0nent .sei La_~ou:t(new \:=.lowLa~out
( Flow La~out • R:r: 9tli~J

Y • U\1¥C1 Lu.~aut ~ cto~s rrxtf'IG.q( fs +he_ Comrnnents ir)


suc..h o. \oJQl"loef +nut Of'\\~ one_ CDrnpOIJer, t rs V\~1'bte
a.-\:: o__ -tl"f()e .

c ==-getCani.eJ")\.PQf\e~( ");
en_" d : : - l)e_Lu Cm d Lu~ Cu.1. ( t..rn) ?iaJ ;
II Create Co:·«:Ho~ou1 Dloiect lun-h lto hor space nnd
~o VeY spare. set Lo.yaut (CaYci'.J_./

b .1- =- r-ie LU 'J~u\\on (''Ar> tJ \e 1, ) ;


b..1 =- f'ielL) Je,utttwi (" nDl)(J //) •
C · o. M ( ~, a 11 , bi) - )
)

C· o_ do C'·' b '', b.1-). )


M eri\l f too new i , a rtn '.) o G~e ~

-t\l e. , Clod ( ne uJ J ~ ne LO \\'i ~\"\ u ft €.tn ('' \\.le. uJ J) 5


1
'

tfte,add (opeo~ new M~nuhe.vn(''op~o'?));


~le • a.dd Coo~e 2 oeLO Mmu~b:m(\'C1tJse11));
rnbo. X• a dd C-me J;
Menu ~c\i t := ~ew N\e.n Ll ('\ fdi-V');
mbo:(. o_da Cecl1'\ t·
Opes), 006 Ac.-\-100L\~5\-- l"'ooer (-\'rib);
C.,l02,E' 0
ac\d Ac+fooL\stl°DOelf(-\hfs);
f.)U'o\ ic. \fOfd Qc_\ioo ?E:'( ~no ed CActi'oD t'\/ e_n t- Qe.)

t
mss:: (string) a.e . q el- A-c+ron Common an;
rf'troio\ 0 ~
I }

{
g• dYo_ t.0 s+n'ng (trisg, 1bo, 10 0");
"" y

~E~VLET !
C'ICLE 0~ A

Loading .t\~,,
fo9la.n+\'otfon

--

f nf tio.\ia_ ed
\\..lOLO Y©.<l:! .fui Serr'J{c e

End O+
I

✓•
µ o. nd tf 09
Req,lle_<:,t- __ l
'

End o -t--
,......_\f-t-e C.1•cte
~
<

1 -- Se:~v\e-\: C.\0.~5 is \OC1ClE'd ,: The c.loss \ao.deY is


Yes.ptinsf b\ e b) \aacl int? SeY v\e-\: C.\Q9,s ~ 'Tue Senl\et-

ClQ S$ \°_s \oaded wh~n ¼e ~-i,st Yeque~t ½r -\tie.


Se_w\et- Cs Yecd\red b'j 'The web Cbolafri-er ,

2 · s e... v)et , ostaoc_e f_s CJfe.clted ~ 1he uJeb rn ni:6.1'ner


c_YE?Qtt<="s - -\+>e fn9:>lQoe_e o+ a. s.e•'f'v \r--t. G{t-e\" locMrig
+~e 9. ~ty V\E?t c_ta ~s, ' 1',e SeYV\M_ ff) s·I--OJ'i(e is Ctre.a.ted
O()\~ onc_e i"o --H,e se'lv \et H'-e C.\\Ue,

3. frlt c":) voe4hod ,s \f'\Vc,r_ed : 'The 11'! e b Cootathet'


Co.t\ 5 +he. , n ft n->es\-hoc\ only once O.-f-f::-e_r C"fea+f n3
+he Se'f\/'\~ fos--\:O..nc:e d ~e \nit me--1-hod ,s u sed
+a \nf+fa\izr -fue se.w\et- -
· 5e:<v\et D€.c-lo:ces \He~cle me.-\h 0ds --\hat
I'
1
I
\ Q\I se,\/\r-ts rnu~t ,rn'f\e.ment.

-- r11~\{)W 3 Se"f\/ \el \:1), q et lnfrln\r</a\f;n I


fXHO. meteJr.s . ·
- --t-

i r~ 0 \/Id e $ Uf~t aeGi;UJ'3 t


0
\O¾'i'fOQi-1\JO to Cl Se,>t\f\et ·

~. Sertv\e-t Resroose As.srst a.. sew\e.t , o swdio~ a...


1Y'esraose tt> the c__\te.nt ·

- c lO sse.s
- q ,c
1
• eoe, 5 e.Y\/\E.'t
,Yravfdes Cl. bo_src _,"(\1plemerrt0.tftm
01 -\--h~ serv le-l fntev+nce +a'i
?YOto(o \ fnc\_epe.o deol Se..rvt e~.

2 ,Se.vtetJri\'.)ut SheG,n rYD\.f\Ot'3 C\1> \11~U-l s¼€Ql'o.l +-01'


'f0ad(ng b,nm~ dohl ~m o...
Cltt.lY\: Y-e.Ovete~\::--,.

p,D\I\GPS OD OU.\-rU-t s+reo.m -tt)y


g~ndlf9 'ofno:<~ dntu ~ the C..lfe.nt :
-- _,
I
oetrnes q e.ne.,,.a. l ex..c e.ptron ) o..
Seyvlei:.
Cl..

c.._<111 -¼-wuuJ when It


I
e.ncounteirs dftt{c.u 1tij •
and c..lo.~ 4-Yt,"'
0

fntet{~ace~ \ () JO.\fO X. Seryvlet. 't..


J'W')f}Ol'tO nt 1

> 4--t \:tP Se,rv\et Re~Uf'Sc.


> l-lH p serv\et Response
> Ht-l p SeS$\OD ·
,t.. Imr1wtont c.to.s~es \'ri Jcwo l(, sew\et- 'ott P Po_t~,

> +-1 ttp S exv \et


> CoOl(.ie ·

' ~ -\--tAND llt--.1q ,\-rtT\0 Rt~\JtST3 AND R.Espof\_\s~ ~-

* me +-l1,f> .sef'!\/le-t ct.a<::.s po0\~l°des srecr<11ia_ed


roe+hDc\~ -\hcrt \·v1nclte -+he \to.Jou~ type 0+- ~rrp~~~

~ ~ S~q\~-\: Q(:\/€.t\Jp0>t ~pfc_o..n~ ~\fe.YYl~de~ Of\(2_ Ot


-these me-1ti1Jd:1 : cl O De\ e-l eC) , () OEt et C) , cio tt e.Q d(J ,
<lJ:i o()H·on sc J , cl_\) Po st c) , d.orut c l , o.o d cl.or. we c_ j
~ >(Ovn ~\ e:

// 5frn?I ~ c_C\ ,cu lato" f X-(lYX)p\e_


fm ~ ·ct Jcwo. i o, 4 ;

l0-\1ox. sew \ r i:. -~ ~ ~

jO-\ro X, Se'Y\r\f''l , riUp .'-ts )~


(-)ll bl ic C..'-0'.:IS Se 'l vG extends ·-\--H~tP SeYv\e t
(
PY D'tPctfci Vat c\ do Ei et. ( +{i:i: PSe.rfv l M R61A..t~st- Y'e...,q,,u ejt-,
+-IU P s~'Y'V\f'l RC:"s.ptil)se Yespan.se:)
-¼J'IO"Ds Sertv\e{. E7'ceptZoo ~ .To E:x.e_eptf"on

t \ot 7- = Im eci ~ c po., 3e_ \nt ( ""-'vU.est . q eI: p o.r O. l!J('ter(• H "]!
;o l ~ :- i 1;{fge) , \=><W se \ryt (-reo.,u_~ 5 t . get pc.lo.rnetn(\1 tJ..'') )
op1~~,qUl°!\.•~tctel\tll
9
~ o('"''
.a,.f\',rr>C) -
v ,
0~ :::- ,rft.eCt' • ()(\"<Se.\~ (Qf)YJ;
tot or
e5u\ t ,: o ;
1
:ot
~1t(h COP)

i co.$e i- ~ -res~, t = x; y ;
'oi'E'O K ;
eo-~e ). ,:, ,y-e-su\t =- :x:.-y ~
'();ea. t ;

C,0.~e 3 ~. "(e Sll\t = X. \ ~ ,'.j

1a1e_Qt;
C(l S,e. l! "., "CeSLl ~t .::: X (y;
b1e.QK;
}
p;io-t-w1fte< puJ =- 'response ,get:WYfte-rO;
rLl'.l•~'{\()tln ('' ?_eg,.l\t :::. I)~ ,esu\tJ;

:::> \JSTt--lE, C00\<'... -r E- s ,:


p
\S 0.. b\ t
0
o-r fri{-cwrno tf oo c. vm_te.d b~_
t CD 01de OJ')d u__i,, sent
+\'fS t Clfent "'f'E:C\,U f9. 1c
gel'{ver ¾Y -+he
6 YO LOS.etr,
bo.cr to ttie c_,t,en t
1- C~ ecr\: i nq .£_ send! r, q coo\:'. i"f S. to C. l~t :

Coo~i e. c_ 1c. j :::: n et.o cood e C'-·'- u_5e.rrnarn e 11 \\?<1.'-to..ni ''); '.>

tfes-ron se. o..cld CooK.i'e ( Ct',,i);

11 Ace e'!. si oq o \1 coo \:'.f <'~ coml'rl9 ~ orri CJJ'<:>nt '

P11o-tW'I\ t.et( Olt t ='Ces roosei . ge.-\. UJYh ~rt O >


C.OaKie C.k t l ~) ~ue st- ge:-t c..aor-fe~c ) ~
{ Int ~,~Cl; \<CCK.-\e.ng\h;'++)
¾r("' "' C

Ot.tt , ?,iot ( Cl'--[ I]. qet~Q '<De C) +-tt " ) ;

! Otl\ . ?'t\ ()\, CC K [.i] • qet \f(l\tl e o);


!
t\tJ
., Tmpl~ ffl o.n
tf'me.
"' (l. lCl\~ tn ~ ..,\G
~ Ses~il\n TvtH. ~r"'CJ 'C!
n~ "
:r-t \S C\\~(' 'f: f\OLOO
CdQtO') Ci~ use~•
\"r:o Y)('l ~ e_ro €J)t fl1 S e 'f V ' et ·

~ C1 , tanc_e o-t- c.un en-t doJe Ond ~


~Crea~og o 05 o~
<md s+orin9 fn Se.!!.Sfon ~ ~

Dote di ~ 'ne UJ Do.tee.) ;

,itt- p S ess, on
1
.. ~
1
lfA".:1,u esL get Se $S10 rx )-
1
:=; ----v .)

.S.i . s e.-l: Atb1'ou-te Cte. m~<\ate,, ? dL") )q

-! -Acc.ml'og .-\-he clu'l:tl (<iGte objec_t) +nlh)


+ttl~ S,e~$,\OO ::- Y~Ue&, g e{:Ses~3an(-ta\3eJ J
DQ-\:e d = (Date)s . ge-t -Att"'oibuteC~~~do.te 11) .J
Ye spoose . g etLDrlte~ c_ 1. prlntl n(d J;

:rsp DEF.:+Nl 1:co~ :- Jsp st0rxls 'tD¥ Jo..vo. SeJrver


p:iges., n. fs a. 8err\Jete-sic\0 'le~hno\og~ w~,(h LS
L\Sed -K)"< ~rrro..Hng UJE: b Cl.~\')\ icaHoos ) ft:- h used
4-o C.1r-ecrte llid harnk L()e b Conte.i;'t-.

* ~ea:1-LLY-e~ O{ 'JSf-) ~-

'7 Codtng If\ 'Js P .fs eag,~ ~ As it ,s Just acid[n ·


3
JAVA Cod~ tD <tlTML ( XH L ,

>- Re ciuc+ro o , n ~e \~rig+h Dt Code ~ =rh :rs P we Ll5e_

o.c+ta n t.o.g s , C.UsmYD i:& g.s E:'lc , . _,


~f\OE'el LO~b ft
(o'tJ LO(,'\:() data '°°
'(toe\
l.nte~OC+\\f e UJ~b~~tP~,: :ln -\-hi" ::,
e
VJ ~
t.o e.b ~g e~ t..onrc.h he\..p~
tr m~ e..l'\'\/1"1'Qnrnent .

J.· f )({),.-e~ion ~ We con us,,, -H,is mq ~ Du-1{'\lt on'-l


~t(J__ oo +he gen E'x(Jttd Poq e. 1hese ciol-a Cl'te
au_s-0 roo.t1 ca u y (ci nv e rrro 'tC\ ~ nq on c\ \'."i rftt> d
1"h e ou+p Lrt s +YE1o rn ,
00
I ,G~OtflX :
'}SP EKp-re.s3f DfJS ewe ~ < o/o =- t~ An~\h,ng ,, o/o >

;).' Scr,p\ ets ~ ·: to .-\-'o\3 {:es UJe cn.o \f)se_,t 0.J)'j C-rnaUJ)t-
o+ \J'O\id 50,_vci C.ode a..nd ~€.S.e c_odes Q~ ?ll\ced fn
-r1 e
1
j s P ~ e·N,ce Y""6) E?°\{10d b~ the Jsr e..rg,ne_.

G~ \1tu::ic ~ ~ 0/ '/J // Jcnr Cl c.ad e3, /0 > 0

. Dir ec-1-fves : -A J s I? ~ Oh<? c1iv e Y s-\o \-s ~ wl \JJ <._ o/. Ql


3 _u... dfaoAf.J"y ,:, r, ~ lOe Co.r, \ '('(\~C'Yt
~
1
tf\(f{QC.tet-c-.Si' .l=n ',l)e 1.. l.TI \. ,

pacrog es' and de-Cine <c_YY 01' f'(\,d\inq \:'Qse", C1n) -l+ie
c;!e~~Joo fomrrnotfoo o-t -\--he ]"Sp Pog e_.

~
·111 Is tO g is us ('(I
l1 • tl edCl.'f o.:1-\Dns +ti Y d e_Wh Ing .\he
-functt oos CVl cl \ 1C\"<iClb 1.,.~ w be u,;ed ('n .\-he 1S\" ·

S~t)\:,(l.::c_ ~
< 0/o \
// jcwo coo rs
o/-o >
➔ ~ n o. gff(){)\~ ! P f'a~e i

Stt{)-J. : Scwe 4he Jsp +fie u~Jog ,, •S P


e.~1:ens.ion Ce:x- - " he \lo J s p' ')

st{p-i -: g,-tavt ~e 5e'f'\/E''f ·

I~ -?,~ p\o.c.e \JO\!.'< a('P\(catfon fnsl<ie Q. "¾


i
1 s~-4 ~ TO exec.ute ~e. JS p sc.~rpt::) sfrnp\ u
J ~~~
tarnc.a--t s.e1t\Jer and ug,e a bmt.oser
Cln URL G -t the JS p PQqe Le·, mb\
http~// \acci\ho~1: ~ pDrt "~mbe'Y /yo.u_y ¼P\1\ 0L'l 1
qDI')
tontect R\Ja'l / J~ P+f1e_ ~ en '::\ au W1 l I seC? 'th
e J°sp
1
~fl e f ':::, b eJ°rig e.o m() fl ed.

cX.C\ro ?\e a-t Q 1s p LDeb ?0.9 e ~

I <. i--1 TM L ).
-<_ 1-l t:AD >
~TITLE> A 1~ eb P°'9e <ITI TLE >
<I HtAD>,
<B'DDy)>,
o/., DLrt -r'(fnth;(\\
<._ 't-te\\n .u..
U .I I )-e~
'\
~ n ) ) o /o0
>
'( /BDby).

-< I +-rr"-11 L>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy