Sie sind auf Seite 1von 15

FPT University

Source: Exported from FU-EOS


Subject: ADV !P"#$%&
'ener(ted Time: %$)*)#$%+ ,:#*:,- P.
.U/T0P/E 12O01ES 3UEST0O4S:
345% !%$$*6& T7e met7od 8et9riter returns (n object of type Print9riter: T7is c;(ss 7(s
print;n met7ods to 8ener(te output: 97ic7 of t7ese c;(sses define t7e 8et9riter
met7od< Se;ect one correct (ns=er:
(: 2ttpServ;et"e>uest
b: 2ttpServ;et"esponse
c: Serv;et1onfi8
d: Serv;et1ontext
A4S9E": ?
.A"@: %
U40T: T7e Serv;et .ode;
.0A 12O01ES: Bes
345# !%$%+$& CCCCCCCC is t7e =e;;-Dno=n 7ost n(me t7(t refers to your o=n computer:
(: ;oc(;7ost
b: computer n(me
c: D4S
d: ip
A4S9E": A
.A"@: %
U40T: T7e Serv;et .ode;
.0A 12O01ES: Bes
345+ !%$%$#& T7e send"edirect met7od defined in t7e 2ttpServ;et c;(ss is e>uiv(;ent to
invoDin8 t7e setSt(tus met7od =it7 t7e fo;;o=in8 p(r(meter (nd ( /oc(tion
7e(der in t7e U"/: Se;ect one correct (ns=er:
(: S1CO@
b: S1C.OVEDCTE.PO"A"0/B
c: S1C4OTCFOU4D
d: S1C04TE"4A/CSE"VE"CE""O"
e: ES1C?ADC"E3UEST
A4S9E": ?
.A"@: %
U40T: T7e Serv;et .ode;
.0A 12O01ES: Bes
345- !%$$E#& 0f you =(nt t7e s(me Serv;et to 7(nd;e bot7 'ET (nd POST (nd to t(De t7e s(me
(ction for e(c7F you c(n simp;y 7(ve do'et c(;; doPostF or vice vers(:
(: True
b: F(;se
A4S9E": A
.A"@: $:,
U40T: T7e Serv;et .ode;
.0A 12O01ES: Bes
345, !%$%%G& Bou 7(ve to send ( 8if im(8e to t7e c;ient (s ( response to ( re>uest: 97ic7 of
t7e fo;;o=in8 c(;;s =i;; you 7(ve to m(De< !17oose one&
(: response:set1ontentType!Him(8e)8ifH&I
b: response:setType!H(pp;ic(tion)8ifH&I
c: response:set1ontentType!H(pp;ic(tion)binH&I
d: response:setType!Him(8e)8ifH&I
A4S9E": A
.A"@: %
U40T: T7e Serv;et .ode;
.0A 12O01ES: Bes
345G !%$%+G& 2ttpSessions expire on;y =7en t7e bro=sin8 session ends or =7en t7e inv(;id(te
met7od is c(;;ed:
(: True
b: F(;se
A4S9E": A
.A"@: %
U40T: T7e Serv;et .ode;
.0A 12O01ES: Bes
3456 !%$%#,& 1onsider t7e 2T./ code be;o=: 97ic7 of t7e fo;;o=in8 met7od c(;;s c(n
retrieve t7e Hem(i;H v(;ue sent from t7e bro=ser< !17oose one&
(: 8etP(r(meter!Hem(i;H& of Serv;et"e>uest
b: 8etFie;d!Hem(i;H& of 2ttpServ;et"e>uest
c: 8etFormV(;ue!Hem(i;H& of 2ttpServ;et"e>uest
d: 8etP(r(meters!Hem(i;H& of 2ttpServ;et
A4S9E": A
.A"@: %
U40T: T7e Serv;et .ode;
.0A 12O01ES: Bes
345E !%$%%-& Serv;et 1ont(iner c(;;s t7e init met7od on ( serv;et inst(nce CCCC
(: On;y once in t7e ;ife time of t7e serv;et inst(nce:
b: For e(c7 re>uest to t7e serv;et:
c: 0f t7e re>uest is from t7e user =7ose session 7(s expired:
d: For e(c7 re>uest to t7e serv;et t7(t c(uses ( ne= t7re(d to be cre(ted:
A4S9E": A
.A"@: %
U40T: T7e Serv;et .ode;
.0A 12O01ES: Bes
345* !%$$*#& 97en ( 9eb server responds to ( re>uest from ( bro=ser or ot7er 9eb c;ientF
t7e response typic(;;y consists of: !17oose one&
(: ( st(tus ;ineF some response 7e(dersF ( b;(nD ;ineF (nd t7e document:
b: ( st(tus ;ineF ( b;(nD ;ineF (nd t7e document:
c: ( b;(nD ;ineF ( st(tus ;ineF some response 7e(ders (nd t7e document:
d: ( st(tus ;ineF some response 7e(dersF (nd t7e document:
A4S9E": A
.A"@: %
U40T: T7e Serv;et .ode;
.0A 12O01ES: Bes
345%$ !%$$**& To send bin(ry outptut in ( responseF t7e fo;;o=in8 met7od of
2ttpServ;et"esponse m(y be used to 8et t7e (ppropri(te 9riter)Stre(m object:
(: 8etStre(m
b: 8etOutputStre(m
c: 8et?in(ryStre(m
d: 8et9riter
A4S9E": ?
.A"@: %
U40T: T7e Serv;et .ode;
.0A 12O01ES: Bes
345%% !6%,$& Study t7e st(tements:
%& Every =eb (pp;ic(tion =it7in ( =eb cont(iner 7(s ( uni>ue context p(t7:
#& T7e context p(t7 (nd (ny directories you c7oose to cre(te =it7in it cont(in
resources t7(t (re (ccessib;e t7rou87 2TTP:+
(: On;y st(tement % is true
b: On;y st(tement # is true
c: ?ot7 % (nd # (re true
d: ?ot7 % (nd # (re not true
A4S9E": 1
.A"@: %
U40T: 9eb App;ic(tions (nd T7e 9eb 1ont(iner .ode;
.0A 12O01ES: 4o
345%# !6%G-& Bour =eb (pp;ic(tion n(med HF9orDsH uses Speci(;.(t7:c;(ss: T7is is (n
unbund;ed c;(ss (nd is not cont(ined in (ny j(r fi;e:
97ere =i;; you Deep t7is c;(ss fi;e<+
(: F9orDs)9E?-04F)c;(sses
b: F9orDs)9E?-04F
c: F9orDs)9E?-04F);ib)c;(sses
d: F9orDs)c;(sses
A4S9E": A
.A"@: %
U40T: 9eb App;ic(tions (nd T7e 9eb 1ont(iner .ode;
.0A 12O01ES: Bes
345%+ !6%G$& 97ic7 of t7e fo;;o=in8 is indic(ted by U"/F =7ic7 is used on t7e 0nternet<--
(: 0nform(tion resources!sources& on t7e 0nternet
b: E-m(i; (ddresses for use in t7e 0nternet
c: 0P (ddresses of servers connected to t7e 0nternet
d: O=ners of P1s connected to t7e 0nternet
A4S9E": A
.A"@: %
U40T: 9eb App;ic(tions (nd T7e 9eb 1ont(iner .ode;
.0A 12O01ES: Bes
345%- !%$%-#& ?ro=sers typic(;;y c(c7e t7e serverJs response to ( POST re>uest:
(: True
b: F(;se
A4S9E": ?
.A"@: %
U40T: 9eb App;ic(tions (nd T7e 9eb 1ont(iner .ode;
.0A 12O01ES: Bes
345%, !*-#$& 97ic7 interf(ce you 1A44OT use to obt(in ( "e>uestDisp(tc7er Object<
(: Serv;et1ontext
b: 2ttpServ;et"esponse
c: Serv;et"e>uest
A4S9E": ?
.A"@: %
U40T: 9eb App;ic(tions (nd T7e 9eb 1ont(iner .ode;
.0A 12O01ES: Bes
345%G !%$%--& A!n& CCCCCCC en(b;es ( =eb (pp;ic(tion to obt(in ( 1onnection to ( d(t(b(se:
(: 9eb server
b: D(t(Source
c: 4etbe(n
d: Ec;ipse
A4S9E": ?
.A"@: %
U40T: 9eb App;ic(tions (nd T7e 9eb 1ont(iner .ode;
.0A 12O01ES: Bes
345%6 !%$%+*& 2ost n(mes (re tr(ns;(ted into 0P (ddresses by =eb servers:
(: True
b: F(;se
A4S9E": ?
.A"@: %
U40T: 9eb App;ic(tions (nd T7e 9eb 1ont(iner .ode;
.0A 12O01ES: Bes
345%E !6%,E& T7e s(me serv;et c;(ss c(n be dec;(red usin8 different ;o8ic(; n(mes in t7e
dep;oyment descriptor:,,
(: True
b: F(;se
A4S9E": A
.A"@: $:,
U40T: 9eb App;ic(tions (nd T7e 9eb 1ont(iner .ode;
.0A 12O01ES: 4o
345%* !6%6$& Study t7e st(tements:
%& U"/ re=ritin8 m(y be used =7en ( bro=ser is dis(b;ed cooDies:
#& 0n U"/ encodin8 t7e session id is inc;uded (s p(rt of t7e U"/:
97ic7 is t7e correct option<,,
(: On;y st(tement % is true
b: On;y st(tement # is true
c: ?ot7 % (nd # (re true
d: ?ot7 % (nd # (re not true
A4S9E": 1
.A"@: %
U40T: Sessions (nd /isteners
.0A 12O01ES: 4o
345#$ !*-#*& 97ic7 of t7e fo;;o=in8 st(tements is true< !17oose one&,
(: Session d(t( is s7(red (cross mu;tip;e =eb(pps in t7e s(me =ebserver)serv;et
cont(iner:
b: Any seri(;iK(b;e object c(n be put into ( session:
c: A session c(n on;y be inv(;id(ted (fter Hsession-timeoutH minutes of in(ctivity:
d: To use sessionF t7e c;ient bro=ser must support cooDies:
A4S9E": ?
.A"@: %
U40T: Sessions (nd /isteners
.0A 12O01ES: Bes
345#% !6%6#& Session de(t7 c(n come (bout t7rou87 (n exp;icit c(;; !in Serv;et code& to
2ttpSession:inv(;id(te!&:
(: True
b: F(;se
A4S9E": A
.A"@: $:,
U40T: Sessions (nd /isteners
.0A 12O01ES: 4o
345## !6%G*& T7e session time-out v(;ue is contro;;ed in =7ic7 =(y!s&<GGG
(: App;ic(tion Server ';ob(; Def(u;t
b: 9eb App;ic(tion Def(u;t
c: 0ndividu(; Session Settin8
d: A;; of t7e ot7ers
A4S9E": D
.A"@: %
U40T: Sessions (nd /isteners
.0A 12O01ES: Bes
345#+ !*-#-& 97ic7 of t7e fo;;o=in8 st(tement correct;y store (n object (ssoci(ted =it7 (
n(me (t ( p;(ce =7ere (;; t7e serv;ets)jsps of t7e s(me =eb(pp p(rticip(tin8 in (
session c(n (ccess it<
Assume t7(t re>uestF responseF n(meF v(;ue etc: (re references to objects of
(ppropri(te types:!17oose one&G
(: re>uest:8etSession!&:setAttribute!n(meF v(;ue&I
b: response:setAttribute!n(meF v(;ue&I
c: re>uest:setAttribute!n(meF v(;ue&I
d: re>uest:setP(r(meter!n(meF v(;ue&
A4S9E": A
.A"@: %
U40T: Sessions (nd /isteners
.0A 12O01ES: Bes
345#- !6%6*& T7e =eb:xm; fi;e for ( =eb(pp cont(ins t7e fo;;=in8 A./ fr(8ment for
confi8urin8 session timeout:
Lsession-confi8M
Lsession-timeoutM+$$L)session-timeoutM
L)session-confi8M
97(t =ou;d be t7e session timeout interv(; for t7e sessions cre(ted in t7is =eb
(pp;ic(tion<GGG
(: +$$ minutes
b: +$$ seconds
c: +$$ mi;;i seconds
d: +$$ 7ours
A4S9E": A
.A"@: %
U40T: Sessions (nd /isteners
.0A 12O01ES: Bes
345#, !6#G#& 4(me t7e imp;icit v(ri(b;e is (v(i;(b;e to SP p(8es t7(t m(y be used to (ccess
(;; t7e ot7er imp;icit objects:6
(: re>uest
b: response
c: p(8e1ontext
d: out
e: p(8e
A4S9E": 1
.A"@: %
U40T: (v(Server P(8es
.0A 12O01ES: 4o
345#G !6#6G& SP CCCCCCCCCC ;et you insert (rbitr(ry code into t7e serv;etJs CjspService
met7od !=7ic7 is c(;;ed by service&:6666
(: script;ets
b: dec;(r(tions
c: expressions
A4S9E": A
.A"@: %
U40T: (v(Server P(8es
.0A 12O01ES: Bes
345#6 !%$%-E& 97ic7 st(tements (re ?EST describe out imp;icit object of jsp fi;e<
(: T7is j(v(x:serv;et:jsp:sp9riter object =rites text (s p(rt of t7e response to (
re>uest: T7is object is used imp;icit;y =it7 SP expressions (nd (ctions t7(t
insert strin8 content in ( response:
b: T7is j(v(:;(n8:Object object represents t7e t7is reference for t7e current SP
inst(nce:
c: T7is j(v(x:serv;et:jsp:P(8e1ontext object 7ides t7e imp;ement(tion det(i;s of t7e
under;yin8 serv;et (nd SP cont(iner (nd provides SP pro8r(mmers =it7 (ccess
to t7e imp;icit objects discussed in t7is t(b;e:
d: T7is object represents t7e response to t7e c;ient: T7e object norm(;;y is (n
inst(nce of ( c;(ss t7(t imp;ements 2ttpServ;et"esponse !p(cD(8e
j(v(x:serv;et:7ttp&: 0f ( protoco; ot7er t7(n 2TTP is usedF t7is object is (n
inst(nce of ( c;(ss t7(t imp;ements j(v(x:serv;et:Serv;et"esponse:
e: T7is object represents t7e c;ient re>uest: T7e object norm(;;y is (n inst(nce of (
c;(ss t7(t imp;ements 2ttpServ;et"e>uest !p(cD(8e j(v(x:serv;et:7ttp&: 0f (
protoco; ot7er t7(n 2TTP is usedF t7is object is (n inst(nce of ( subc;(ss of
j(v(x:serv;et:Serv;et"e>uest:
A4S9E": A
.A"@: %
U40T: (v(Server P(8es
.0A 12O01ES: Bes
345#E !*-G$& Bou c(n set ( p(8e to be (n error p(8e eit7er t7rou87 =eb:xm; or by (ddin8 (
p(8e directive CCCCC
(: LNOp(8e isErrorP(8e5HtrueH NM
b: LNOp(8e isErrorP(8e5Hf(;seH NM
c: LNOp(8e errorP(8e5HerrorP(8e:jspH NM
A4S9E": A
.A"@: %
U40T: (v(Server P(8es
.0A 12O01ES: Bes
345#* !6#,-& 97ic7 jsp t(8 is needed to ensure t7(t imp;icit v(ri(b;e PexceptionP is (v(i;(b;e in
t7e p(8e t7(t is me(nt to be (n error p(8e< !17oose one&EEE
(: LNO p(8e isErrorP(8e5HtrueHNM
b: LNOerrorP(8e5HtrueHNM
c: LNOisErrorP(8e5HtrueHNM
d: LNO p(8e errorP(8e5Ht7isHNM
A4S9E": A
.A"@: %
U40T: (v(Server P(8es
.0A 12O01ES: Bes
345+$ !%$%-*& 97ic7 st(tements (re ?EST describe p(8e imp;icit object of jsp fi;e<
(: T7is j(v(x:serv;et:jsp:sp9riter object =rites text (s p(rt of t7e response to (
re>uest: T7is object is used imp;icit;y =it7 SP expressions (nd (ctions t7(t
insert strin8 content in ( response:
b: T7is j(v(:;(n8:Object object represents t7e t7is reference for t7e current SP
inst(nce:
c: T7is j(v(x:serv;et:jsp:P(8e1ontext object 7ides t7e imp;ement(tion det(i;s of t7e
under;yin8 serv;et (nd SP cont(iner (nd provides SP pro8r(mmers =it7 (ccess
to t7e imp;icit objects discussed in t7is t(b;e:
d: T7is object represents t7e response to t7e c;ient: T7e object norm(;;y is (n
inst(nce of ( c;(ss t7(t imp;ements 2ttpServ;et"esponse !p(cD(8e
j(v(x:serv;et:7ttp&: 0f ( protoco; ot7er t7(n 2TTP is usedF t7is object is (n
inst(nce of ( c;(ss t7(t imp;ements j(v(x:serv;et:Serv;et"esponse:
e: T7is object represents t7e c;ient re>uest: T7e object norm(;;y is (n inst(nce of (
c;(ss t7(t imp;ements 2ttpServ;et"e>uest !p(cD(8e j(v(x:serv;et:7ttp&: 0f (
protoco; ot7er t7(n 2TTP is usedF t7is object is (n inst(nce of ( subc;(ss of
j(v(x:serv;et:Serv;et"e>uest:
A4S9E": ?
.A"@: %
U40T: (v(Server P(8es
.0A 12O01ES: Bes
345+% !6#E-& 97ic7 of t7e fo;;o=in8 SP v(ri(b;e is not (v(i;(b;e =it7in ( SP expression<
Se;ect one correct (ns=erE
(: out
b: session
c: re>uest
d: response
e: 7ttpsession
f: p(8e
A4S9E": E
.A"@: %
U40T: (v(Server P(8es
.0A 12O01ES: 4o
345+# !6#*+& 97ic7 of t7e fo;;o=in8 is true st(tement (bout t7e (v(Server P(8e ;ife cyc;e<
!17oose one&*
(: T7e CjspService!& met7od is c(;;ed from t7e 8ener(ted serv;etJs service!&
met7od:
b: jsp0nit!& is on;y ever c(;;ed on t7e first re>uest to ( SP inst(nce:
c: jspDestroy!& is on;y ever c(;;ed on t7e ;(st re>uest to ( SP inst(nce:
d: A;; serv;et met7ods (re (ccessib;e from t7e jsp0nit!& met7od:
e: Bou c(n override or provide ( no-p(r(meter init!& met7od in ( SP p(8e:
A4S9E": A
.A"@: %
U40T: (v(Server P(8es
.0A 12O01ES: Bes
345++ !*-,+& 97ic7 is t7e correct se>uence<**
(: sp p(8e is tr(ns;(ted --Mjsp p(8e is comp;ied--Mjsp0nit is c(;;ed -MCjspService is
c(;;ed --MjspDestroy is c(;;ed
b: jsp p(8e is comp;ied--Msp p(8e is tr(ns;(ted --Mjsp0nit is c(;;ed --MCjspService
is c(;;ed --MjspDestroy is c(;;ed
c: jsp p(8e is comp;ied--Msp p(8e is tr(ns;(ted --M CjspService is c(;;ed --Mjsp0nit
is c(;;ed --MjspDestroy is c(;;ed
d: sp p(8e is tr(ns;(ted --Mjsp p(8e is comp;ied--MjspService is c(;;ed --Mjsp0nit is
c(;;ed -MCjspDestroy is c(;;ed
A4S9E": A
.A"@: %
U40T: (v(Server P(8es
.0A 12O01ES: Bes
345+- !6#*,& 97ic7 synt(x is correct for SP Expressions<****
(: LN5expression NM
b: LN expressionINM
c: LN expression NM
A4S9E": A
.A"@: %
U40T: (v(Server P(8es
.0A 12O01ES: Bes
345+, !*-,G& 97ic7 of t7e fo;;o=in8 is e>uiv(;ent LNQ < !17oose one&%$
(: Ljsp:dec;(r(tion
b: LN5
c: LN
A4S9E": A
.A"@: %
U40T: (v(Server P(8es
.0A 12O01ES: Bes
345+G !%$%6-& 97ic7 st(tements (re ?EST describe contentType (ttribute of LNO p(8e
contentType5R:NM directive<
(: Any exceptions in t7e current p(8e t7(t (re not c(u87t (re sent to t7e error p(8e
for processin8: T7e error p(8e imp;icit object exception references t7e ori8in(;
exception:
b: Specifies if t7e current p(8e is (n error p(8e t7(t =i;; be invoDed in response to
(n error on (not7er p(8e: 0f t7e (ttribute v(;ue is trueF t7e imp;icit object
exception is cre(ted (nd references t7e ori8in(; exception t7(t occurred:
c: Specifies t7e .0.E type of t7e d(t( in t7e response to t7e c;ient: T7e def(u;t
type is text)7tm;:
d: Specifies t7e c;(ss from =7ic7 t7e tr(ns;(ted SP =i;; be in7erited: T7is (ttribute
must be ( fu;;y >u(;ified p(cD(8e (nd c;(ss n(me:
A4S9E": 1
.A"@: %
U40T: SP St(nd(rd ActionsF A./F(nd E/
.0A 12O01ES: Bes
345+6 !6#-$& A (v(?e(ns component 7(s t7e fo;;o=in8 fie;d:
priv(te boo;e(n en(b;edI
97ic7 p(irs of met7od dec;(r(tions fo;;o= t7e (v(?e(ns st(nd(rd for (ccessin8
t7is fie;d<%$%$
(: pub;ic void setEn(b;ed! boo;e(n en(b;ed&
pub;ic boo;e(n 8etEn(b;ed!&
b: pub;ic void setEn(b;ed! boo;e(n en(b;ed&
pub;ic void isEn(b;ed!&
c: pub;ic ?oo;e(n setEn(b;ed! boo;e(n en(b;ed&
pub;ic boo;e(n isEn(b;ed!&
d: pub;ic boo;e(n setEn(b;ed! boo;e(n en(b;ed&
pub;ic boo;e(n 8etEn(b;ed!&
A4S9E": A
.A"@: %
U40T: SP St(nd(rd ActionsF A./F(nd E/
.0A 12O01ES: Bes
345+E !6#-+& A be(n =it7 ( property co;or is ;o(ded usin8 t7e fo;;o=in8 st(tement
Ljsp:use?e(n id5HfruitH c;(ss5HFruitH)M
97(t 7(ppens =7en t7e fo;;o=in8 st(tement is executed: Se;ect t7e one correct
(ns=er:
Ljsp:setProperty n(me5HfruitH property5HSH)M%%
(: T7is is incorrect synt(x of Ljsp:setProperty)M (nd =i;; 8ener(te ( compi;(tion
error: Eit7er v(;ue or p(r(m must be defined:
b: A;; t7e properties of t7e fruit be(n (re initi(;iKed to ( v(;ue of nu;;:
c: A;; t7e properties of t7e fruit be(n (re (ssi8ned t7e v(;ues of input p(r(meters of
t7e SP p(8e t7(t 7(ve t7e s(me n(me:
d: A;; t7e properties of t7e fruit be(n (re initi(;iKed to ( v(;ue of S:
A4S9E": 1
.A"@: %
U40T: SP St(nd(rd ActionsF A./F(nd E/
.0A 12O01ES: 4o
345+* !6#--& 97ic7 of t7e fo;;o=in8 tec7ni>ues =ou;d correct;y put ( be(n into (pp;ic(tion
scope< !Bou c(n (ssume t7(t (ny necess(ry p(8e directives (re present (nd
correct e;se=7ere in t7e SP p(8e:&
!17oose one:&%%%%
(: Ljsp:use?e(n id5H(pp%H c;(ss5H=ebcert:c7$6:ex(mp$6$%:Address?e(nH
scope5H(pp;ic(tionH )M
b: LN Address?e(n (b, 5 ne= Address?e(n!&I
p(8e1ontext:setAttribute!H(pp,HF (b,&I NM
c: Ljsp:use?e(n n(me5H(ppGH c;(ss5H=ebcert:c7$6:ex(mp$6$%:Address?e(nH
scope5H(pp;ic(tionH )M
A4S9E": A
.A"@: %
U40T: SP St(nd(rd ActionsF A./F(nd E/
.0A 12O01ES: Bes
345-$ !6#-,& CCCCCCCCCCCCCCCCCCC inc;udes ( st(tic fi;e in ( SP fi;eF p(rsin8 t7e fi;ePs SP
e;ements%%%%%%
(: Ljsp:inc;udeM
b: inc;ude directive
c: import directive
d: Ljsp:use?e(nM
e: Ljsp:for=(rdM
A4S9E": ?
.A"@: %
U40T: SP St(nd(rd ActionsF A./F(nd E/
.0A 12O01ES: Bes
345-% !%$%GE& 97ic7 st(tements (re ?EST describe n(me (ttribute of Ljsp:setProperty
n(me5R: )M (ction<
(: T7e 0D of t7e (v(?e(n for =7ic7 ( property !or properties& =i;; be set:
b: T7e n(me of t7e property to set: Specifyin8 HSH for t7is (ttribute c(uses t7e SP
to m(tc7 t7e re>uest p(r(meters to t7e properties of t7e be(n:
c: 0f re>uest p(r(meter n(mes do not m(tc7 be(n property n(mesF t7is (ttribute c(n
be used to specify =7ic7 re>uest p(r(meter s7ou;d be used to obt(in t7e v(;ue
for ( specific be(n property:
d: T7e v(;ue to (ssi8n to ( be(n property: T7e v(;ue typic(;;y is t7e resu;t of ( SP
expression:
A4S9E": A
.A"@: %
U40T: SP St(nd(rd ActionsF A./F(nd E/
.0A 12O01ES: Bes
345-# !*--G& 97ic7 2TTP met7od is used in FO". b(sed Aut7entic(tion<%#
(: POST
b: 'ET
c: FO".
d: 2EAD
A4S9E": A
.A"@: %
U40T: Security
.0A 12O01ES: Bes
345-+ !*--,& T7e bro=ser tr(nsmits t7e usern(me (nd p(ss=ord to t7e server =it7out (ny
encryption in =7ic7 of t7e fo;;o=in8 Aut7entic(tion mec7(nism< !17oose
one&%#%#%#
(: 2TTP D0'EST Aut7entic(tion
b: 1/0E4T-1E"T Aut7entic(tion
c: FO". b(sed Aut7entic(tion
A4S9E": 1
.A"@: %
U40T: Security
.0A 12O01ES: Bes
345-- !*--E& 97ic7 f(ctor =i;; you ;ooD (t =7en you need to m(De sure t7(t t7e response
stre(m of your =eb (pp;ic(tion is secure< !17oose one&%#%#%#
(: (ut7entic(tion
b: (ut7oriK(tion
c: confidenti(;ity
A4S9E": 1
.A"@: %
U40T: Security
.0A 12O01ES: Bes
345-, !*---& 0n =7ic7 of t7e fo;;o=in8 Aut7entic(tion mec7(nismF t7e bro=ser tr(nsmits t7e
usern(me (nd p(ss=ord to t7e server =it7out (ny encryption< !17oose one&%+%+
(: 2TTP ?AS01 Aut7entic(tion
b: 2TTP D0'EST Aut7entic(tion
c: 1/0E4T-1E"T Aut7entic(tion
A4S9E": A
.A"@: %
U40T: Security
.0A 12O01ES: Bes
345-G !*-6,& 97ic7 of t7e fo;;o=in8 e;ement (re re>uired for ( v(;id Lt(8;ibM t(8 in
=eb:xm;<!17oose one&%+%+%+%+
(: Lt(8;ibCuriM
b: Lt(8;ib-;oc(tionM
c: Lt(8-uriM
d: Lt(8;ib-n(meM
A4S9E": ?
.A"@: %
U40T: SP T(8 /ibr(ries
.0A 12O01ES: Bes
345-6 !6+$E& 97ic7 e;ement defined =it7in t7e t(8;ib e;ement of t(8;ib descriptor fi;e is
re>uired< Se;ect one correct (ns=er:%+%+%+
(: T(8
b: Description
c: V(;id(tor
d: 4(me
A4S9E": A
.A"@: %
U40T: SP T(8 /ibr(ries
.0A 12O01ES: 4o
345-E !6+$6& A SP fi;e uses ( t(8 (s LmyT(8;ib:myT(8M: T7e myT(8 e;ement 7ere s7ou;d be
defined in t7e =7ic7 e;ement of t7e t(8;ib e;ement in t7e t(8 ;ibr(ry descriptor
fi;e < :%+%+%+
(: t(8n(me
b: n(me
c: t(8
d: prefix
A4S9E": ?
.A"@: %
U40T: SP T(8 /ibr(ries
.0A 12O01ES: 4o
345-* !6+%$& 97ic7 SP directive dec;(res t7e us(8e of ( t(8 ;ibr(ry in ( SP p(8e<%+%+
(: t(8;ib
b: t(8;ibr(ry
c: t(8-;ib
d: import
e: p(8e
A4S9E": A
.A"@: %
U40T: SP T(8 /ibr(ries
.0A 12O01ES: Bes
345,$ !6+$%& 'iven t7e fo;;o=in8 SP (nd t(8 7(nd;er codeF =7(t is t7e resu;t of (ccessin8 t7e
SP<
SP P(8e Source
L7tm;M
LbodyM
STA"T
LbrM
LNOt(8;ib uri5HtestCt(8;ibH prefix5HmyT(8HNM
LmyT(8:TestT(8)M
LbrM
E4D
L)bodyM
L)7tm;M
T(8 2(nd;er 1ode for LmyT(8:TestT(8 )M
p(cD(8e ex(mp;esI
import j(v(x:serv;et:jsp:SI
import j(v(x:serv;et:jsp:t(8ext:SI
pub;ic c;(ss TestT(8 extends T(8Support
T
pub;ic int doSt(rtT(8!& t7ro=s spException T
return EVA/CPA'EI
U
pub;ic int doEndT(8!& t7ro=s spExceptionT
return S@0PCPA'EI
U
U
Assume S:t;d (nd =eb:xm; fi;es (re correct:%-%-%-%-
(: STA"T
E4D
b: STA"T
c: E4D
d: E4D
STA"T
A4S9E": ?
.A"@: %
U40T: SP T(8 /ibr(ries
.0A 12O01ES: Bes
"EAD04' 3UEST0O4S:
F0// ?/A4@ 3UEST0O4S:
.AT12 3UEST0O4S:

Das könnte Ihnen auch gefallen