Web Programming Hand Written Notes
Web Programming Hand Written Notes
~og
>:t~rt ~dd~ e.\o~ s
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
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
,0
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.
D)l)Cecktws.
\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
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.
) (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
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 )
} 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-
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::
Co110 e ci f C\ ll .
J
==>l'NEi At>O~E-~ C\...oA~~ ~
tr~ {
C
Cal c. h £ 'f.- c f p\f CD eJ
lsorne\-M1"i9 6m ,t. 1
s.'n aYttne,r /
1°'t'~C)\...\"<C~ \1'\/r~.
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->
• I
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•
)
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:-(.)
c C
Rec_ e_ \ \f €'< • j Q VQ -::
8--e_~p+ioo {
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{
Co tt ed O.C(Pss.-cw.
}
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() {
1
pu_'o\ ic \I a,d set t=-(Y s-t ~lQm e ( 5-n ing -?{ r5tN.Qla)f) {
}
}
r
~ ~ IRIV\:r ~
t>e+rnMon : RM J .9-\a_nd~ {o..- rRernotc.o ""{t
:rn\/oca:tion . It
,0
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
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 ~
~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 '
~ \_,~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
1
~~O€rrate the d~ncJn,c cxmteot. Tt -run~ ,0 ~,d~
; bYoUJs€ir Qf\d worKs at C.\feot side-
des-½'o~ ( j me+t-iod /
IC>
rn i'o,·\'\,-; ~~ed .
[ frno.ge pfc--\-UY-e;
. \/Ofd \(')\t ()
pu'o\lC
}
pub\fc_ vord po,ry\: ( Erw,ph,c s g)
J
}
1rn0)rt io..v~·C\\'.'.'?'~\..~ 5
p ~ 9
\(6')0)1 t j O..\IQ, C.LIJt. ~ ;
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)_ ;
°'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
ar Lt ·cw c ., ,1 · 1 t 1t l, l n
A c+fon E~eot
Muuse E\lent
<I 0..Pple.t)
public cJas. s G9 e x tends -App\e-t
'
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
{"-dd Ke':\Lis-te.ne_,(-thb);
[
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,,) ;
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
=>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
~:
Cont.a,ner_corn¥0nent-5el La~out (new
1
g_x ·.
Coo\:ainet _ Camr--0nent .sei La_~ou:t(new \:=.lowLa~out
( Flow La~out • R:r: 9tli~J
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_./
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
~
<
- 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~.
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 ;
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;
Coo~i e. c_ 1c. j :::: n et.o cood e C'-·'- u_5e.rrnarn e 11 \\?<1.'-to..ni ''); '.>
,itt- p S ess, on
1
.. ~
1
lfA".:1,u esL get Se $S10 rx )-
1
:=; ----v .)
* ~ea:1-LLY-e~ O{ 'JSf-) ~-
;).' 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_.
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
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).