struts natraz notes

197
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

Upload: javaeracom

Post on 04-Nov-2014

190 views

Category:

Documents


25 download

DESCRIPTION

Nataraz Sir Struts Notes

TRANSCRIPT

Page 1: Struts Natraz Notes

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

Page 2: Struts Natraz Notes

As an admin, let me introduce myself to all

I am Anil Anil Anil Anil ReddyReddyReddyReddy from Hyderabad.

the fullest, loves programming

Why I started JavaEra.com

I was a job seeker like you all but I was not sure about how to attempt an

interview or various companies selection process. I had searched many

Portals on the web & joined many job

was getting the information regarding latest job openings only but not

any resources to chase job selection process by improving my skills.

Why we need those skills? Just

Once upon a time a very strong woodcutter asks for a job in a timber merchant, and he got

it. The paid was really good and so were the work conditions. For that reason, the

woodcutter was determined to do his best. His boss gave him an axe and showed him t

area where he was supposed to work. The first day, the woodcutter brought 18 trees

"Congratulations," the boss said. "Go on that way!" Very motivated for the boss' words, the

woodcutter try harder the next day, but he only could bring 15 trees. The thir

even harder, but he only could bring 10 trees. Day after day he was bringing less and less

trees. "I must be losing my strength", the woodcutter thought. He went to the boss and

apologized, saying that he could not understand what was going on

"When was the last time you sharpened your axe?" the boss asked. "Sharpen? I had no time

to sharpen my axe. I have been very busy trying to cut trees.

Hi Friends! Welcome to JavaEra.com.

, let me introduce myself to all of you.

Hyderabad. I’m a normal guy who lives life to

loves programming and lives a happy-go-lucky

JavaEra.com?

like you all but I was not sure about how to attempt an

interview or various companies selection process. I had searched many

Portals on the web & joined many job groups. From all those sources I

was getting the information regarding latest job openings only but not

any resources to chase job selection process by improving my skills.

Just go through this small story...

Once upon a time a very strong woodcutter asks for a job in a timber merchant, and he got

it. The paid was really good and so were the work conditions. For that reason, the

woodcutter was determined to do his best. His boss gave him an axe and showed him t

area where he was supposed to work. The first day, the woodcutter brought 18 trees

"Congratulations," the boss said. "Go on that way!" Very motivated for the boss' words, the

woodcutter try harder the next day, but he only could bring 15 trees. The thir

even harder, but he only could bring 10 trees. Day after day he was bringing less and less

trees. "I must be losing my strength", the woodcutter thought. He went to the boss and

apologized, saying that he could not understand what was going on.

"When was the last time you sharpened your axe?" the boss asked. "Sharpen? I had no time

to sharpen my axe. I have been very busy trying to cut trees.

I’m a normal guy who lives life to

lucky kind of life.

like you all but I was not sure about how to attempt an

interview or various companies selection process. I had searched many

groups. From all those sources I

was getting the information regarding latest job openings only but not

any resources to chase job selection process by improving my skills.

Once upon a time a very strong woodcutter asks for a job in a timber merchant, and he got

it. The paid was really good and so were the work conditions. For that reason, the

woodcutter was determined to do his best. His boss gave him an axe and showed him the

area where he was supposed to work. The first day, the woodcutter brought 18 trees

"Congratulations," the boss said. "Go on that way!" Very motivated for the boss' words, the

woodcutter try harder the next day, but he only could bring 15 trees. The third day he try

even harder, but he only could bring 10 trees. Day after day he was bringing less and less

trees. "I must be losing my strength", the woodcutter thought. He went to the boss and

"When was the last time you sharpened your axe?" the boss asked. "Sharpen? I had no time

Page 3: Struts Natraz Notes

If we are just busy in applying for jobs, when we will sharpen our

skills to chase the job selection p

I don’t have many friends who can suggest me or who can share some tips. I got irritated

like anything. I thought that like me, there may be millions of my brothers and sisters across

the nation facing same kind of problem.

So I strongly committed to start a special zone for all job seekers & IT professionals where

everyone can sharpen their skills to find their dream job & in their dream company.

As a result in 10 months nearly 15000+ job seekers joined our family. Thousands of people

got benefited by utilizing our resources.

This is just a start, what we have achieved till now is just 0.1% in our vision which is

“Creating a perfect place to share

Now I am not alone in chasing this challenge. We will work together by sharing knowle

giving a ray of hope to millions of our brothers and sisters across the nation.

My Technical Skills:

Google SEO (Search Engine Optimization) Certified.

JSE (Certified), Servlets, JSP, Struts, Hibernate, Spring, PHP, Zend Framework.

HTML, JavaScript, Jquery, AJAX, CSS, Adobe Photo

Flash.

My aim is to provide good and quality articles and content to readers and visitors to

understand easily. All articlesare written and practically tested by me before publishing

online. If you have any query or questions regarding any article feel free to leave a comment

or You can get in touch with me On

Regards

Anil Reddy

Founder & Administrator

JavaEra.com

Email :

[email protected]

[email protected].

www.facebook.com/JavaAnil

If we are just busy in applying for jobs, when we will sharpen our

skills to chase the job selection process?

I don’t have many friends who can suggest me or who can share some tips. I got irritated

like anything. I thought that like me, there may be millions of my brothers and sisters across

the nation facing same kind of problem.

to start a special zone for all job seekers & IT professionals where

can sharpen their skills to find their dream job & in their dream company.

As a result in 10 months nearly 15000+ job seekers joined our family. Thousands of people

by utilizing our resources.

This is just a start, what we have achieved till now is just 0.1% in our vision which is

Creating a perfect place to share Java knowledge”.

Now I am not alone in chasing this challenge. We will work together by sharing knowle

giving a ray of hope to millions of our brothers and sisters across the nation.

Google SEO (Search Engine Optimization) Certified.

JSE (Certified), Servlets, JSP, Struts, Hibernate, Spring, PHP, Zend Framework.

Jquery, AJAX, CSS, Adobe Photoshop CS6, Adobe Illustrator CS5

My aim is to provide good and quality articles and content to readers and visitors to

understand easily. All articlesare written and practically tested by me before publishing

ine. If you have any query or questions regarding any article feel free to leave a comment

ou can get in touch with me On [email protected], www.facebook.com

[email protected],

/JavaAnil

If we are just busy in applying for jobs, when we will sharpen our

I don’t have many friends who can suggest me or who can share some tips. I got irritated

like anything. I thought that like me, there may be millions of my brothers and sisters across

to start a special zone for all job seekers & IT professionals where

can sharpen their skills to find their dream job & in their dream company.

As a result in 10 months nearly 15000+ job seekers joined our family. Thousands of people

This is just a start, what we have achieved till now is just 0.1% in our vision which is

Now I am not alone in chasing this challenge. We will work together by sharing knowledge &

giving a ray of hope to millions of our brothers and sisters across the nation.

JSE (Certified), Servlets, JSP, Struts, Hibernate, Spring, PHP, Zend Framework.

shop CS6, Adobe Illustrator CS5, Adobe

My aim is to provide good and quality articles and content to readers and visitors to

understand easily. All articlesare written and practically tested by me before publishing

ine. If you have any query or questions regarding any article feel free to leave a comment

w.facebook.com/JavaAnil

Page 4: Struts Natraz Notes

Struts

www.JavaEra.com

Page 5: Struts Natraz Notes

1

0';

A116:

I

i

i-t

', ')

)

f

I

)

-\

l)

l

)

J.)

Under 6ran din 3 tbe bosicg oP

Nhar is rhe dif e r.l(,,

tl)eb GpPlicch on

OeboPPlicadob ar' A - * coebs lte

6rl u I rorr

.e-,* orF bt [o"ilg Jor-oltNebapp rrtBc.rion lbar is

na-e ' (WruW. xYz.comr').

\(oebcage t€g €eneYorc tutu

Ne.lo6irc Conran6 hoth

---+ €or in the de.eloPment *

{.rjdo re$rp{Ce py$5 Wit I be

boeted on rhd'I internct---f---

L> floced

is oerte d os Nebe i te '

o aJeboppricarion is a colrecri oh o? oebre6oor ce- Pro$ orn6 '

-Ihe4 e (reSvesour ce p'o€y ams lervnare cltb?c'XQ-g ' Boscd on rbe tgpe of the

Gye kDo tgf,€6 og uebreSosvcr PrD6r ams

Srclic ond dgnomic NelPo€es

urlc oPprrenXon )i bJh

used,

O Sro-ti. NebreSoctrce grgs :- :

$enerarc stah c crrbpo6e5 |

E$' ht-r prg6 .

Dur:oml C NelreSO c,rCe fJTt S : -

Egi

irroges

be.@use

genirri.,tc Dgmnlc wJcFaBeS

t.'Servlei prqS/ jsp prgS , Php Pq6, asP'net prgS

ftres, te"t Btes a* butg.-t NubYes'urce PrgS fo

to 'ehfngeb &recrl5 "

fhe5 Can'f €ercral€

and ete "

Otber c,r-b resarrce- 1-55

rlu ndrn lc-(l

_.il)-, I

To Deverop o.'d ere(r!re uoeb opp\icortorl oe rred fottptoinS s)Pi :"

O Rrooset slilc [ro q.r Broarser 6indaos os ;r,eb cti€J)6 )

@ tJebrechmloqies fm aererop coelrescrcrrce p*€*t: )

(! O*"t"se slro foghonor)

Page 6: Struts Natraz Notes

Un&rSrandinj $e Pruo 6p ex €.rrti on 'rn arebappllcctrtarr., "-

!t ..hinej ne -ao":=:- Mac-biDr Eo._.-

t::lY!:------!,

)

i.rt'en

T1 1 T1, rg, 14, Tg Ore fie t,reb rres[r-fce PrDgr4rn6 4 r,uc-bap plrcafilrn , C*) Based On the plate Loheve uxbreac(nce fr(qrrams /?j(cl,,}e Loben it tS ve+rS ree Ibd Client (8ro@6ef Ulndoto) . There 669 Z HpeSf0 coc-f,vegarr.ce prDgyarh6- C

.JO Ctie.'t Side &rb"rc66ci1ce p€S

@ 6.ru.', 5;4g ux;cyebctiyce pr€S (e^ea.rc in rbe Servcv Wtrn lqree rta ) -J

Ei grvlet Dvgs, [5P prq5, phP fn-g5ond e]c" aClie nt Side &xlc vesou, ce prgs : - Come yo brotosel coindoco Prort t rcbse'rvt"f

&.r, g" ert 11-n Vol''en 'refl-res ft I '\J

Egi bt-r p't r icrva scriPl pYgs cnd ete''' O

t JgE:- fenerallS elt 6tolic wcb*frxce frrgs aYe Cliarf sicle t'ucbresotrrce ?prg5. SirnrtlertS &ll Dgnamic arbw.sa'rte Pl€s ave &rvet si cle *6"*tt

Vprb6. cI ^.,- , r,r. ol.Dl)liCcficrn

DiPPerenr Approches o( Developtnl icva hle)o o?Plicc,hic'n U

(/

a)noaut a (nvt ) U'-> Here Lle mu$l usi m4t6ple tecbr{iloEtrJ -.

6qnrrofl- tD deterope rhe logics in mulHp te V

16,qevs of ocb opu collcrn '-,The lot erS ore modet lotcr t|,r )

l.hodel 1

-) oY)l$ jsp prgs or ontt seruto pr35Loill b€ lb?re 6 Servcr 6ide brb,€6oc.rce

Prqs oF oreb crppl;cot lon.--i tP &rller PrgS Grr pla(e.{ in tcbcppUz6rlo;

Page 7: Struts Natraz Notes

ord v ice ver6G

-> $Proare indusft, *Ot, tastn g\r

iep grss drs servcr aide crx! resokrce

\-/ Irrgs urhile devetoptnt llodetl opq"*h/

v Orchitedtur e bC,eed crrb o1p rrCaOon.

\-'/ Developing llodell. Archi leel4r e Based nteu app li @-rion "'-

Vleu' La4er Cv) , Gnrrou.. lo,1er Cc) .

dbrurrs &o- ctrerLf flereu-reJ yel,qegt 'rs-> Jhe logi c *nr reads Vorious

Cottcd ag Rqgestfura Garherr n 3

Logic, -lheSe deJcril s aye Pu1Pest l-lca&t Vctued,

.,j furm0ora Gnd erC.-.

l

.-----r '{ls )ogic {^g.r Varidares p1rrcrD ond For,rr; op rbe 4r"., Unr11. is\,/

fnoce$ln3 Logic,

FormVotidaricmLoB;c.

9', cherrin6 toearlrr Erndlxd is Lrvlnl '@) , "'

sg'nbols o1

,ii

Catted oS

"j

oof , t'. .

the dot'a^ ts 6aleJ

| - - ,tu Hein Logic o? the qrplicdlirrn js caltei as Bro;ne$ LoSic (crt').'l?9ural

-.----o the l-ogrc fio] inrcxocts toitb DaruEose e l,o h

rrnnipulare

frelsiskn ce los(c.

9t UnO. co&, tlibernorc code ard erc. ..

Page 8: Struts Natraz Notes

fte lqtc tfrar "crn€rnhero

rhe clieD t darrt

G &66hn iS corte cl Sess r.lla",age rrr nf Lrgic.

AOosS tbe rrf,rttiPle Ye3lqes t &"1"3

Logics crPPliEd on the Ctpplrcatlcrl

CrYe

I\:

i\)

\,

U

\)

itrat 4rrrnotS the resutr qerc{6}es *e use'l thl.el&'re R" E?d U-)

'lhre

is fJresenmrkYn

Httnl ede

ond

One prq,ecr ccrn toke rhe &ppor I oP mulHple bocrend5 ' All tbese Bat-rcet'Js

'1togc,rhev iS Cc.rted aS Ere ffrlrcrp'; se lin&rnrvpltat d4clem ) '

-lhe psi..r rl^iat i5 develqed b1 trBing old rc{ir'6togies (or) Bg uaing

EJ| CObat prderr, Javc. l'?. Proied anJ Qt(' ''

6AP i$ ERP slra' fEnrcrpise Qesarce 'plc^n)

Sieuel ii cRrl fc*ro-r" Relar{o^ llanagernen-t ) slto '

In llOdet! ArcbltecluYe bosed Lrlappliccfica

€ide Lorl rescLrrce Contains rnctltlple logtcs'

lirnirc*ronS ond Odvanlcrges aye the"e.

&e rh;s rhe lutrau i"$

E3'- lhe logrcg op oll €esatoriTracr+in3 itclupeg

-> fliddenFovmFetd5

-r Coorts

*-t Hnp&srion ond etc.. .

lo6tc.

fte ddditbrill ond oPltorol 'Srvies

logic

Coued

E)

fe.; crltA oeuna'e rs C?$€J 0s Ufo rrnve the olPllcoioq rnore fJeY .UfDiddle uf,re Service5,

L/

E, &*r, "g tervice r Jdbc connecfi ctn Footin3,

-'llansoolonllorrrSewrn:t *' * a,

Uis corred as

" t%"."1 Pl* \-i

Page 9: Struts Natraz Notes

{.'

.\'

t..\-/

---. Ce{rat n rnjctd le coare 6erv iceJ rrc6r be lrnplemerarcd b ttrg. p}oSrArr,Ll

rnoncattg'.ThiS Incyeasei bc'r&n on rhe pYD0rorner'

Advanhc.gei :OT

knoc,lled6e oh gther &vvte* a& cav ls enotgh to yfbappucorion'

----+ Sinc parllel developmeni i6 rDt @sgibte rnul6Ple frogramerS' are

not qAtrei to dexdop 'rhte l'Jcb opp\icofian ' rl.lodc t1 Archi tecrzr. e illlritrble fo cleverop sft.rl scc.\e c,rb opptiarotts (rmx oP ro Fagcs )

l4oaera (nvc) Affrccrure :-

r1o& Loser

f a:: ;' :J'i']" **" , erb' 6PT'T ' 6Prir{} c-oirh h*'*^'

; ood cle " ' t0 develop rbese lo6;cs )

- (y1oaur ku6err is likeFc4ourLt oPFce')

------a (cse hrrnt, jsP,

rb9 logic )--' fvietu l-rx{et i5

g-> fontrotlet l-rrger -------+ (co"*"'5

V ---'r'vrarrloXcr o (cr"toit'te .Pe{9ttt"}icrn to6tc)

( Ccr''tro ttei Loger

Li-;ronons Ozlul>or>

rbe pra&c;vitU i5 V('rY PooY

'ihl5 indicc.reg lher e i5 no clean &f:aration Ultp Log ics'

logicS '

--' (ggg9*ttg)

potttel developrnerLr- is hot pos6ibte, 60r

g Doro3 rnoYetoonk in le-sslit',e 15 catted 6od P'ddvit

v6loci hJ , R*rto, lun aod etc , - Ja

Bearrfician )fnrcgratioo lqtc )

-)

Torc$roltcrn l06lc i6 the

i5 [i\ee -lTcrPFz Pouce

ore-bappticoficro rr$tc}l

to6rc )

)

Central tqic of fhe t&LeS the

Page 10: Struts Natraz Notes

Ye?e6r Pr*" ctienr/ Raaes fl1ero

ytsuts Rtr" Mcd_ellnger fi$ouyLe,S

tD grodel LoXerr "fe6o(rrces , frrler ft@d''e

crnd PatSes tbe T€sutfs la vtua b"getr

ond rDoDifats Evu'U ecliv;? iP -el

,)

JUU

l)O(/

(,

t,{)

(J

\)

l)C,

oU

i-

(,

()

Jxva

"resources. Th;S logic Gntvole3

Uebo.ppttca$on &eorn-.

Oitferent moder oP

Nde 11 Archt tccr.kY e

-----+ .In PIVC 1 Archi t-eikrr e

-_) n1 mvca Archircclar€

Oeblptianot5

Nodet e Afthl h-c}a.Y(

|1 vcl Archi lcrtuhe

l"lvca Arcbt tectr'"e

re&uyces kutng b'tqgic and Persisl€rte lo6tc'

Vierrr 66J Grntroller laXet vefarrce lf- 'tt

lo.ve

TbeUnde.r Srrrnding

gmaet uiodoa

Dveloping

pyesenbficrn lO6r" O.,d JntcArollon lo6tc,

> tR trlve Seporatg l"lodel laXer yeso&fc€S ( b',o6'. cnd per$skrrce [o6rc).

t"g,.)) toe tare &pararc vieu: lqer yescrrrces ( prusenrot.-

ue &perorc

ftvc!

tfntq*li"n l-oBtt) .

llvct

Cantrotler \at,er rcscrtcez

Crrchi rccJtzt :-

,**l f*l4A to8i c

Ctonttollel drn;l

--il1+,Uda lblm vo.lidatla

--. Sasr-' "''g-g

Jn rnufiort

Cnful L^tlrt)+ B.roerc@)4 pcrsistnce l€

Tl iddl4ave

(Java cla,ss/tlara

FAB rornPl5prr.Sgrinj @;rl l't8 ,tpa

Page 11: Struts Natraz Notes

\*

l4vc1 Archirc&ure Bivej b ctean Se{raralt 6 OF lolics &npred l! Hode t i Alcl} i€cfQt.

&cat:.ae u€ 0e.n orire 0.to6ic aod ;rrcis t-aoce log). &pararetS io lfdelLt'Xea

B. Corn porpnrs Nhite (llcrtsin 3 crrri f1VC1 Architctrure,

To ger nove clean &-1laralkrn oP logics

Ol.cbircUrLre tO otele_top tbe sgrhopptr ee$on3.

it is vecprneoded

Yt!:' llvcr Architeuure is 6ood fi dileto?

El',- WNN. Yo5elndia ' ne-r

hlhlN, v.lSschools ' cDm

' Llnde"Srarrdrng nvca AYcbircclaYe 6o-

r fcchrYe based welooPPl rcahlon

[raoser arinda,,l

t6 use flvce

med;rcxn €d.,te utela;tes c^"

u 6-)

qlllerl3e'vllr Fr lnr prg

ft''7.r€'ieatton

i,tqat+tn Ugr

tsp

'o{,t't."--" B.i"Erc @'. flr.t.tcttce

-> fl ictdlaoa*

.irachss f;ava6elgni"gw

Ptctalta,rlort

Page 12: Struts Natraz Notes

l 94r-le3-" -, i.llrat ls Pror* t -:o, r 1

-tl

_ 4 lrome ulrr k i5 o Specia\ O\rer ' i'e' devetog based on 66re ter'hrnlogles

!- havtng rhe abitir1 fo Beocrarc rhe Gmrr:on loglcs oF oo't"*o' -dtnarnicc'tl 3'

\., bc.sed on 0ber opp\iorrion spcihc lo6rcs 6rvcn { progra"nmcv "

- * pr crme cor:rr. 6lur provideg absrrc<Jlm froy.t'o., core tcchrdogle s ond st'npl;R'e:

\'2 rte ;xocess oP 4pptico$on devclgprnnr {^ pq'rl.rmfffil' EvL11 Prame,lntv- s[t"

inrcrnalty u8e5 Ceryoin Core |echnolqies btr it mokeS p,oXtar^,tt't mF Fa

\? kJcxr! abocr Core luhncto6r.s (not,;ng hr oborrc.crl^Lt4r") nh;te &vetopr.1Pi"

._r beoed 6lw &0p1'.',,'*.'n.t' : ,

'v, IP crle clevolop rn/ca orchirccf&Ye bosed uoeb &pplrcc*ioo S tou"'g Servter-., JsP

f,s6toped\/ Clrre technol.oSleS thcn all the lo6res 9[ crrl rhe to6e.rS rn-rsrbe '{,ttlt*+l

* tog rhe Pn{ramrncrs rnanuarl^J &o. Sc"rarcl, levcl. IP qot develop 6a'rrI!-

oppliccfi on bg usinS 6ilrrb Plu: then the Gntroller \oXe'l lnd;calon' L1;c

* uilt be gerrrarcd dXnamtc,ttttr aod p.,Trarncxs iutt necds 1o Ct Sr^lt?!" -U

. * Yiuo\afet, model ta.6et lo6;cs duolqnu*.\-v'.,

\,-., -Wa imprwu rh€ pa&,avi 7 op web.applrutttcn dunbgv*3t.

'

.J ---> J fUXs OF Plurs in Sava envivonrnent i-\-

O weu P/,o's l-

-> ProvirteS Ob$nadon lct-ger crn $rvlels, lsp Krtnolo8ie-8. '

\- + develOp5 rnvce ercbi fecJ-r,rre grsed UX) c"py>tiCw|anS.

"-'7 b8:- Sirurs-+Prom Goe$e sltrl &undalon $JbF (0avcrSrrvflrlctts)-+ft6ro Sun rnrcyo Sd6Kff, O\- hebNorE -+ &*., Or..sUrfl"g

S[rn-.ngrnvc -+ ko- ,Inrcrfarc]t Oi_. T?restreg --+ kory' Mobe

C&Tougrk'4 l>\xtq- AOF __,, from Oicrde cInP. rr.m,t prz.rn e)

Page 13: Struts Natraz Notes

a

?) ORn Flvr'r i- \-/r--.

-+ flrovicle6 db6nat}lorr 1o,6er an Odbc fech6ol6g g . \v

+ usefta ;6 cladop ohi€u,J hsed Da sfq.7 irdepndeny Frs;sknce l%k .,\

' Coa;"* Bulu*,6n rrn{ptog[ocr; rn"i"w"N"j

Toptinr -+ ftrn Oracte &rrp

i$oris -_-+PA,.

Qavofcrsrst<rgeAor) 6re.,fpn6*6rn 6on rnKra 8tr aFtrn.

mg t Ap ilr.va Beons ) -+' Prv* ,af,*e elq lP"ud"Hqn

[uava uor,^ &jed;) [[Do laya "[4s5g

o

tiFe

-+ ureR r

E€}

rotl:- ,NEr

Sfrrini

i5 aao a

6trutg ;-

yerdor :

CYe.d.ktf :

Otn gctce dro:

zip $re naroe :

Jran,rfa$cn op slo:

tPt'renCe bors :

tcPe : java boacd cce'u Pl'a

Ve{6icfn : 1.3.} Cc,snUalule

?' I ( ComPoh'ble

ft.."aorto"

rnvce avebt lc(trre based uj(ba-td I

. 11

666, crga-ohe' otg w6i k'

cl{rl to develoPE

u"rb Jar.t'++.)..

tpi+b idY r'5+)

a0ru.he

6y. 6rcrij

daontood slo as 7n l;w

6nuro - I'a'8 - &ll'z;P

SftL4S _ ?-.5.4 _c^r 4i?

Ertoct ttrc ziP ?"P' ru q forde'r '

Jarorrtn gh"ris--&^ O*t3 ft*0r

$louaboof 4 6tnrs? ----. R"r Tok Mel

*+ frro\,ide6 Ob6tfa{}tr,t.l lOac, or, rrfrt$ple .OcAte, .6f f pt-hnOloglg

jdbc, 6ervter5,; jap , qjb' rmi , jrns &nd ete. ..

Fa duzLop atr tqnJa 4 &ua, \EE oryl"co$ons' : : ,

---+ -R"- intt{P!'cr el

Plto.

Page 14: Struts Natraz Notes

0.eB.,inon 6f $rru6 : -:---:

- Slrttts is c\

tbe ar: €ftYl€J,

C'fplicd$cm3 h,c(vin3

l%.* dgnamicouS

Jevo based &xt Pleo gl@ '

OsP iecbrDlo8ies to develop

tbe cop@bitir5 tb $ernerafe

based 6q .he fn%rarrex

tbe Jr,rcdfd"tdct4

B.rpptied lo6;cs 4

Itr6ic oP crrnrro t)o/

Viao, rrodel

ot/ rr / lorr::-

enhance 6,e Q'"crc'ou'rt5es

plugios cudra3 iatPr"s

lo4er5.

otror$ 1.x sl(t, insratlotion €ive$

-+ 0ose rlur

--r Adcririmxl Plug;os

(voridorc.r plugrn apd 'T,"ree Pla6tn )

--t PloBfn lS o BarO Olco o 6lr;o 6ppltcctt|crn toJ 6c'n

0F €xiar' n9 gl@ cn 6lto cplicofioo6 ' Icr Java env

--1 Pxornple aPPticdtloDS

._y p6currrntatian

-1 Jee Ta3 libcarieS (s rn'oe csprugLurarier)

Jsp T0g libranj &rdenng *tol *odt\g

i'e. eproviding abgnacr,cn lageu onL lfiaiog rt,e indcrecrtr3torE

NVca arcbi rect tre li:sed Oorn u:cb

auo)loble i6PraX-s

. 4 antm 1 r - bome z\o*s 6weo exar''ole 6l-rtrt5 ApPlIotJi on 5

. /srrrtbl'x - hovne > \ ;;' --- g** o?l doc$ ' cs P ra6\i urarl dor"' D rp

. lsfttrTt'x-borrr>\ lib yt'gres 're{rese*;o3 gwu'o librar;ea

, Lsve*sL'x-- home> \l;b\ st-dLd6-c'rre- l'3's iar ff're veerasanlrng grcuts t-''1 aPi

and lbio Sc. f 't' is herring i,r,uJ+iple d4^?9'ti jc'r hlas

-+ Lst.&6L'r-l'pme>\ lrc =4 $ivr: su.tc d' 4 eh'uf5slq "'

x? tava rcb appludcTr u'ses dd parrg arr ip i19 [Lbrnaou{cc [-gt"19 S*

n..^. .L.- rr Le nJJ.,1 tsa clA€sP,try a-nd rhe

rbe6JdrjalUAPLYeb}cdftr4nJafftlesghouldteoddedt-oCLAes|.,ft"'

z'&v,nrXhevndndna;lqre6denfir"hreslruarbead&dtor'1l-t^,rlu:Skl'"

o( urb orrpuaoon' he"e ..1a, Pires odded to cj'kcsPAr\4 toirtbe used bJ c"vo GtrFtd

Page 15: Struts Natraz Notes

To reognizb 6td 0c.r'tg Apr d...rng .rhe compt loncrn 69

Exarnple Scenarl6 ;

Tcst . idva

f{rbllc cla36 Teg t

&Flr ]r.sc'o-r ce rrrrsrarr'-

rrrlrr Ue U6ed b! *tvL*

{f&blic void Yo't )

ct '. ,,'DemO d = nerp

d. -1t ) ., " ll

{r.'l? :.1,,-t }

''- .11t1_ , a.. ql,-^=.\i I /:

.rt i.lf.f.r]rrrt. 1: 'i

t

Seand -jar

fr?LI d'L{t13

gerond" jar fl-;re is &rynder* , oafr".pre rq.,i,STI93] ., becanrc ttre rqsr ''"('{. r..,i,,r.,r,

J ..,,.,,; .,,

a.;,1_

First'iar is uJtn6' tLs ':Dtrno' '-c1q,.9t,, q#'&Y

FirsrStv,jovq

ptrlf ic CIAES.

{ft bllo

t

Page 16: Struts Natraz Notes

(

ol5o c{dded Serord' j ar to hJE6 -INF\ frU fDU.a 4 F't'lr?

Frst.iav Bte n Htn-x,.:r \ tru .Brae'r o? F'ctArf

rqte* lo Frsrsvvpr6 :

htn I l/ torarhost : txz / F rstA f'p /ftsr I Cx )

iava' lan6' MCfu.s De FoandFxcrrrtlon : E/,i16

r > htFB-rN F' t.-- clo,sle:-----------JTrrst$v'iav4

I , l--------------- F1"6rsyv,clcdl[--+ crla *nrf---+ lib'

l-------- grst.jrrr

l-,---." Seccmd.jal

Tegt t : r,eqj Tegr( );

I fnrt)l

3

f2ltc^vcrc F.sr5rv, java.(X

)Gn not Aod grnuol s l-trp&,r,vret, *.*re-tf1g+! ! , _- ,,. ; ,aod .Te.sJ,

rnl

odd gsrvtct-&?t .jar ond F'rst,Jar fi'ro5 1o classxrrh

>iavac F.stSrv , java 1_g,.o,.r, ..1

$ives 1ir.t5r,"1o, t

DaPlog eeocnt ^tectzttJ

srraataa : _

Firsi AP P'FEg'as t.

add

g;\re

F..srA0P

I rJJ'st5rv'iavq

l----------------, F\ sl 5w ' clcss

llpleggs lirsrApp 1gd.bppticaH oo io gt/.i

€iue fs?-test h Frst3tv t43:

h*p' ll rocr.rho,rt : soro / FrstAt,p / Tsb i. t^ )[: arl Parkrn

Jarn.tory,Ncrclas De ?ft,n a Excedtan ; . Ies t .

Page 17: Struts Natraz Notes

frne' &, rhis toe need

Developing An(].JJ3 ls norlung htr brr\r;"6

( &t"n - Ccrre -/'3.s .jar ) tu c)ass {&ilt and tie'sfauts d&l

S ive relA€5t l-D F.rsr Srv f1 :

fitp:if toralhoar:toro 1 F,,'nrApr / ratl- (Su,*r, )

I

Sruto fui ba.red

qrv'n hT he

Oflt lrceflcr)

ctJthfi.fi.fiLe

,Eb r

},/cnn-nl a?Pl;tattsn haanX

+o rhe $fi).t's zpi "Rlarce )

.J

\./

-> U$ng $r<rt5 P/crr toe

koo - her at?ltc*ions .

&xb afflicottcms

0tf lr | :or :q>plitcr'ticrro, tx6krt)P CPP licqrf ctns,)

l,lVca otelurecrute !66eJ ;rava

Con t clevel6 p

it c?n be &rJ

Shnd atcrne

c.rtg dctr lop

)

z)

r)

+)

q

?)

(D

-+ hcorr"g .1trt-S.r*r,lt o. n lo$l c

uscry inrctfure {,r

\,

\,

J\i

.\!,

JErd uy"" Ustnl rhis Urpn"rukn

, ,)\JGn Vie'to btS'us ntw"

w7

i,

--/

Aeo lo? a.s f,ava tode less jap yogr.tn g

.\

Q .,srng * P"^"^,r.rl\,J

\-./

\J

-- -The imFtrrcnt osoavcla-O*n* 4r Stnrf a.x o[?n darefp-a'*;-

JsP Comie / Prgs (oi,- toa.n)

Acrion6ervtet (Cunrorret to6cv )

Neb.xml ( ftSq.*'.* Dercrrper [oo)hre)

o\-;

ftrrn$o"., ctoss/A*ianEavrn eiass (Crnmulx l"f.r)6) Aqi.b' closs

C&mharre,r l-apr /rtU" t g"n ;AorrnRrrcmrd6 (conotter Loxen )6rtt'rs'c?X Bre ( 6-narer Lgu)

t! 3"v,lJ:::tt (v;u,: lc^ser):-

'ropa ant5 the fe4axlrce6 09 vieo lAatr

-+ prt)efrkrr)on logtc i5 "YeTl)rcd io Srcpore

the End u6.-r ccm *4{'H hfr-,tl.s to gh(.l$ qPtrc(tHoD and

SlYutS OppHt3fron,

Jt i5 tbrtrended ta

.j6p tz.gs

&rl\i-jn 05P taxs jlP

0 6TL ta5s

ka}nologS (f."et S.'to*, Eler'fflrs)

Page 18: Struts Natraz Notes

i ''..-. ---, 5lt(1r5 Arppli€d &P ,a6s

&srtrm OsP la6s

' ose hr'nt, fr"c rnnr le r , vclsr'r9 tccl''nolry f5 to demtop the'vieb la4ex

\v, noE:- Ne C&o c.l50 ose hnnlr iftcFfiEet , Vcl(

\- feaoul(€6'

\../ a) n*-l'","_@fr*' l.!-lt-Gntrru[tcr\J

-) Jt is b&ilr-in :*ilu erno og 6rruu based roe-bafPn'

----------------,,-,. L> p kg no rne

.t-, * t' irapo 611 he ,ryuu+ &rnio6 to Bt".,,6 olDplrcodl on l'rrge9 frrn tD arynroqtdfc ncdel la4'v

.J Yw)crr@5 t floiet 5 ruurr5 ,Qrr H;,etLaler .,€Jo11r ces and fltl:ges lbe '€rclf6 lo

a{,{ropnor< Vieru lecr qegrt@s.

.-,+ -rhe Jnrcararr"on Is6te 4rtris Gmlorter Scrvl€l' dirl w gunerc+<d $wttt..-u| k'3

v fte Gn86aranons 66ns h 5r,rrm ornPr6tvanooft! 'r'\'. \';

*----r Evcq *F6,'dh ,, ;5 futt-in fuvte* it6 CanPsruv<rna in utb.iml Li nu,i*an1

5) nro.xrol (oo Are) :-

r-'-+ Tt iE Deptogaerrrni tDesc.vtp ttn $re (cor) t^xb a{Pl lcaHcn Cc'' Bgt-tte Bre '

r-.---) -Ih6 ftre C,-foinb AotrnServlcr Ccinff'gurc.rfc'n Crrnndit'q; trielcsme Sle c"ahtmh(opt'oh&r)

JsP tibraq con€rXurotion (ophlcrnaj i and e-l'c.i

\v Y *e pmcss oP SrxOft6rng ryesocFce de-ktits f0 rtsr€ rhe

rhe

Unde'r[ag tn 5 tCsilotwqrfo}

&rrr,sCw) fltra lel') ron-t"rne envtrcnmcri wc@rtizltj ,ttti|Jfte od

'; ,+

€"r n"f

lesadce Ccrn$6uraHan'

\-- ->

furnI&ao ctoss/n,ricnfirrrn cta6j (cutrollot la+t) "-L

Jb 16 d Pn€r c\mYne{ gtrpre d Arva @n cloas e4 te n dln j

oy6' o{Dthe'Jrruri' ottrc'n' Acti-En - (N)

Ir- is e^ pr:abcaq I'wrng rhe Cq{t'bili$ Yo "rt-utvcanA hdd

i"rrd [r ftubn (u,tler'

Rotn

*c P.r, danr6iwoJY

Page 19: Struts Natraz Notes

Cannllet VrXcn "so"'o '

rfTn^ .,..r, f&'*rtuo r-oxet[nu'r l"x*) i'

&)hcn f5. lqtc God rrrsi6lcoce lqics are

a5 Hodel Lo6e't ftSct'LYte '

-> JP , AcHcnn clclsi Cdnb)n3 l"6to to

E:IB Cr'nprtnt'rts t fury*ptic641a,t'

ihen A*,on dots ;s, CaueA c,s

Eveq *1resr tralpd 4 Acnorft'"r,te* qritr frh cl''t (o)otfu,,r 6hv.lrs

q: utl'c'r is neet L+

Actording l0 l'\!ce

6rnrre Aclcn "forS

n!

*,e ComrroUer Q^rA slutrd Canttiv' lrgeflrafisn to6t6

Hdel LeXc,r res6uc"8 '

&fi'q6e,'r,ttr doiv.,

]-6 o\rficorne this firo$eto At$or$,,vtct p&sses tLe hta.d wCAat- io 6t't'ts Acr+""

Olers , 56, g"o1- Px)glarrvr Carr *. swcr.s ktton c\Clvs €]durrr aS G"f^Vunfu"f

lb i5 ihe .}ova clo$6 tldt €xlrrrdo ff*' .6huJs, *;-.flarn (c)

ct\ocrtj plac d in ftltdrr cbds rh<n it aus

irte<t$ tsih ndrel Lola (snoavnrS ltlzt

$r"n6oirh )$bornal< oIPuce*t<t'1s ase w'-'

15 Caamurucar coith

tS 6^ p4deftned

Io6rc in Ar.*^("*w.

"+ At*lcnfuv ltt Lwolct rt;s Fu-kon ctoss ah"i and unks futm dato. a*tc,r yeia,p s"ry

ktm&ta er- f-m ray.

--+ furaBe,n clcl,s tS apid& in gttutt O.pp}c:rrrlo\ but re-oorvvn&A fa uSe '

lo6rc m }prd &*- don', lqgic la rtser rhe Rt- aurq------r -IhJt %"rgrt Oer5 dorcral nS

o# th€ loflo to Varidare the €"- d"ra'

{:- l.tt"sr it *e need oe Farmseon ctoss ih 6hur6 *:u*: t

ACecrrar6 ia mvce ConlrDurx '€,rut!*

is 'r€trrarslble io lr.,cr'e -E"Agq{- l'6rc' r''

6Mds a{4dlf4}bo3 the C0nFDllel Bcavlq i5 pre-de8r ned ktlon*n/rt ctors ' 5o' @e 6qj"'f

ptlle- ErrnVa.r,da$on tn6rc in |sdoo&,flter'

Acfana^rc urrlt<l *rt rur.rved

tlrugraru4 Car4 \hl'd^r €trn a"r-aT0 oven Csrn e

&{dted F,noBetO

this Prutcm

clalt . #r

ft"-ar-t rlePgm'x7

in Fr'oBoq g16,s1

J

rJ

'.J

\-,/

fn Stds oyuoro"S ^tW

Qnlnt

*1 Dllt'&mels can't PLan \tz*a

Page 20: Struts Natraz Notes

t€soLrrce t.f) MOdel L,a?er ft&etce Os &scrr.rrecl a._bare.

6) Ar,oo hrc,rard S (conrrarter lrt* )

-' AcgoFwunrac &ye fp \ot enmes in 5.t't{f ccnggtrmooa

'resoarL.J ( ro. lrp rrDflrams ) *, ""r,r,t ,#,.+ Sn *lattrered co,) g-.}*a gt enu*u,' ,aJ; ercrss

!iar: loXcr 'eJotlr&S bared ga rhe AdonRmrrardt crra6*.*-,

V) Sr'urs CmfiBurarlon Fre :- Cccdiolter Larxr )

+ {onX Brtnanrr ) . rml Csn dd aS r

elPllGrtil *rn A*ton&rvret looks tD

dek urt ibttll Orn&Rrrrar'ion.U

lP no &rc.,o-e f +eatf,te{

dP {oEB-aNF Sra- osSrtwe

tats€

'a-gSu.drrc't F;re'

3 !"rr5 - conPi g "rrnl-

-.-->

\-, ltoTE:-

\-' G0)cm

ond

cP1

c?a

''I 1' ! l,.r L\il.\l\iii " r,

., .:

\J ---+, -Ihe ConB8urofion3 carrh6u<*rc- Ste eoitt be. L"'d 4 ?;."o'"'{t'-

to €oftlalr rhe inrcAudon lSrc op Cantrotler &rvrar d6nomrcott6'

rhs 9'te csr,rc'rw ftuo'rtti ConPr'g;*c'Ht^s

*) P.'n" ban ctasses cP3

x) actr'ot CtAlseJ

+) /c*co %r*ta,+) plug-io6 4g

lo one atrur: qprrc'ctHc'rt

clqsse5, err-rrs Conf;3La'ciFlon

dnne i6 Slratg

ond' 0rc... . .' I :;'-. ,, ,,,

ur con hure rrut$ple x6P r€el R"l uett "t:,:::;I w one ctx-b.xol &'le

B,* bf c.R musl rEL ,.: o. 1.,,

Y

Page 21: Struts Natraz Notes

brc<p6er t rindo c,t5k16 bos"A Joa c,xb o1p 1ira1,g -.

U

\-.l

\,

0r9

@

CnlrrJror:Plow 6f e^ecu6(m in €hutS 1. x o.lpticagon ,,-

-) Jn fie obove dto,gram

u#el Hodel la{e! ,e6rrj ce.

--" €ht!r6 'i6 desl€be d bosed cn |1vce

al.(hi t(r-(lye ba-aed o(b d{?ll ca}ton '

P-n p,r6e oP

or,onesl bgic io direcrtX placect ih Slrrr6 A(lddnct&Es . go, rb carqe8

Archlltrlta(e. €o, it orn be trscd onlS to derc{o p Fvca

-4 The Pbt,; cf execrtl on 'ol- fu ftgl'.'t ce6 o? gldt!'i-6,. a{+ltc4tion ;9 $red '

in rhar ,q 1Lttc!8 aye lvo'r'amm,.4 clvxe Lgtu' (t"to lilaon$vter ) .

N r. ro he dlagtaya

0) ftosra mey dcp\ovee 6trotg opf:lrcdHdD in trrb &'rwn 61 ftpptlcarlfon €cn<a '

Jrt this Pro Les s edroe ini Hall2arlon ftYDcels t'itt 'k!t.e PloaQ '

bti- lo6icg

End use't lat'n tr'es

Er)e usc{ 91bmi 15

sh(Ltas OPP\t.altor)

8lr4ls opPfearlan

in ffr ho<Ps"r @;odoq7the

fofhe rr?res I

*^. dor""

&tfiun Servld lroos onA {4t49 *re Y€j,ues f 06 Gnwotlc'l

4-^ S'^ P'g. k',3

Page 22: Struts Natraz Notes

4""1

.--, O Aclictrr g.av rft use.s tbe eoHe,5 og 8w Conk6t,ra}l.,'t kte n daude tbe 4-m bc^o a^A

A*ion cla$ *nt ara f€?reilcd tD process the T€?l-es t ?t* 4 f* * l*^ nXe'

A', A[Hdn Strv lc.t cfta}tu lor) tacorcS -fi".; U,o o Cldf S o\jaf and Co.'r +e rl, e rece.wc'/

.* -Q,."' &ra o1,n+ctltnPage tu it'

C9 The Frrrnvari dal-tan lo6ic ol Far"'Bean cl&!s vati dot.€s 1'u 'p"- a"r-" '

'-- €)

'' I I C4US ereaoe C-, - '- ,-)Ca@tc5 ot l(arcb Stnrra A*ionCtosg obelf Arr

np+ OAY* '

fig 'r€fesF and .9nds co'nro t anJ

,'...1

r--o 4@

Action Srv ter

rncrhod cm

{e5u lt5

-Thl5 exec!*(f-r-r-r -) tncthoiA 'f'$aeg5:

lo RHon9;rvrct'

o?

,-:^ ,

fi1" 6de-uae'l'J (D Aolot\*'\vl|- urej huontu tttrt d un1t 6ualJ<ns

the QeurF'-Ae oP Srans N*n cws'

" @ k]'ttn *tvtet |Iljsc,t rhe M .rf5uri5 tD

th€ PrEsentu}{an lo6rc of Qerrrrr ponp

lav'ts,t loindou in the l71rn of Dn r*rl e l}crlfage.

Naminq Co.|venH dn s Nbile &velopinS Elmts App lrien-an '-J

iF Form @3e ndrrr is x'&P tkn

take xFoEm 4s lff,rl,&.an clals name

XAno" 43 Acrjo'n clgss ndme

Fg.- i9 Fcqm pqe narne i$ Ye€istf'isP *)€D

ftrrg Regr5 torkr m 05 Fto- 6ca^ deas rnrne

Pt6rsu Acrl ot' as A'rlan class nd1rg '

Pecr:rrreoded qofly- +z\ 6hr.f5 cPE I'r.

-> De5ign llJEi-ng 6re &l oP rute$ Ohtch

Sottluc{re oppos f pqieLtj dere1:pnent ,

--, The hlor6t 6'olr*torr ff-tr r€occ(lrtn3 phtL€ttr5

dsgtf ffie.firylLy^t. n.!\

''l

. 1,,,, ,,ir' ,)

;6 i Sltar8 - cct',83 ' xrn t

come' c6 best Soltrrt ons &tt nar.at",ng '{li'Ddetru 4

is cdlled -AnH - pot{.rn .

1

Page 23: Struts Natraz Notes

-+

-+

De6,r?n pcdtcrn6 ay€ h.6l pr..cH ces fo rree gl(, Teclrnolo6tts

160 rn6lolaing-, |.;g;ri DeSr gn 1n*<tn7 ana A*; lztt+llns.

vca i5. releaJecl aS Design fnrtqn. hrt. 15 ar., olso be 64rt ed o5

ir tlco kome ind!6rie6 De&ch sFandara to detdo\ wbaryti catl ons

t!y.v, slu' l;zg 6h.ui, JsF. and' eri. - - . . '

destgned based oo 3erl ter , JsP, f,c.vabeans ,8tntL6 Sl(l, )t

Xml , 0oFarrha

Deslgn lurtcvns

Cctthrrfdt) f]lcLn{"5 ord ete , . . ' 'ru us e

aft imphrrrn rad ;tt.' S|arrJ elur tr€altcn '

tf*s

tu* imponrtt @!fu-) *!vc impotrcrtt Whn_W+'et!' aw :

f&,i,i-1" Dea1npttirru io er.rrt )

0 F n, Gnr'ouei (A&t.'niftvlq)

@ r.v.a (ntrote sr'-ttrs Rln )

0 u'o.ln't o ctc'ss (E"-Bean cla'rs )

.-> U rElel6randrnS drgPerr* tupeg of :'ot P*t*

0 nUu** G'nrrolltu ( Rel'arPtcert'r clols')

@ ro"l *+-ae-1 f,r\iedl ctn ( *'*o^sa'urcr at'd R^-'Seo'n \

\,/

\-/

o'

u1l-.1

\JIi

\J{$Jl

(-t;l

-i

cr)€ Car' trt4e b iUfrs oP Ul2L tsdc'(noAcrording fo 6er\,lct SPec,iff onfian

0 groc .rgrcb uPt P6rn

@ Ott€cro,g nvlxh )aL(&ttcl-n

@ Exft16ton r,xtp\ D?Lftl/ft:t n '

@ exott rr$eh uRL trrt-crrn : -

-: O'l

-, L{1l

E6'.r

psfrrn rrror hgln coitb -/ ' ryrtUo t

[4Lrt-crn mu& not Ccntor n -+ charolk,l

Z6i- Fcftrn > l beot-l zlwvwrt<n n '.

e^Onple .re+re61- prl5 Botrr b'UrrSo, cDiDdotd

htrp:fl rorathostrlolo /resrA?p/ rfst4 [variea)

T* orou*^ -n *-

ef,ft*Ay

\-,

t Ar.lu .t r* t , Been*x

a

\)a"d to i na/r. ueL hdr.v:

\J

flesc<rrce brrnole ( g.rp"tttel Bte,1 .

t<;notogS ePfetn-u\ gol4€ \-l

\*,

l,

'q

16 pd an6 ct.,'el"prno+.-

Page 24: Struts Natraz Notes

btrp: / ruatt ost :rolo/ festA?e)abc ClhYal,rd)

/ tatry'P /rcstli arc f lnvali e d )

lrcsra1 f 65c!Pstr ftnvalied )

/reslAPP /rt5tr' ao fnvama ;

Ohe{ exarqdes dn g^od rr,4tch crY I llffun $

0lnmnI './

r)

,,)

a)

ruorE- 4)

/Llfl - f,ufrcrn > ltcstt) asc zlurv pantse n>

zwt- frrtlxr o > /rcsn'do z Jurvptttn> ' i

zutl- lzrtlan > lt.ejrrl obclx'; r' f exrlarlqn 7

urraort"rnh'r?Ll, olo77 name and qtl\satttg pwfiv'n tn'!. b tll.C ServKtets!6, ncrme

End - us<'C '

-> nuat kgin o;rb "/" estnOot '

-> m&61 €nd u;ri "'t ' S81160l

g:- <tar-c{ifi- rn > l.tUl; <lurv.l-8at}crnz .

ExarnP le yaflcst cryt 6 Pon"' brur..rset ,16doQr

btrp:/f tororhoat:roro /1gb1i?p l.*1X la$c (vauc,l )

h,awp I .l l,t lx.c (varier ;

0h€r

E3'.-L

Eg"'2

Tfl"'3<-

Eb'tt-=='

lltsrApp /ot1X lr.ioriea )

/TeJt AP? -/aluf!5 | auc (rnvalitd )

lratAnt J v/xlctc Cf',v^trca )

itar&nr, / x ( r^v"ti".A). ;.

FrarnPle Dh ect(r$ nuyxh ttrt.,trllttan -

Lult- W*evn2 / tat"1 btst z I * zlwl-Wwn 2

Ltu t- (tjft'){t\o J alc.6o /restt / x tlutl- Pork'rn>

lutt -pqrcrn, I ^l n tl utvoetl<''n 7

Ltr;l-parrun, lojblrln . furP*t'n7

- @ Dreftorg rnarch Uv l Parrcv\ '-

Page 25: Struts Natraz Notes

|.

Exttnbicm rrnrch trr l- Frkr4 l-

url P@rtcfn

trll pO.ttrrn

19"^r,i

tOllll'!la.:===-(9

-)

--)

rryst kfln @)rh '' /'" sXnbol

.' !

. 1,.1, I,

mu6i houe One exKnsidn le,//.t a 'E'{d

' '

.; i t){i: tj t,,, ,i.,:, ,-i

*' LExttosi 6\ .,r.,!rt',lrl ,:!r:.. ,. i,r i,rrii ..,

E8,- zu(FearFcrn> *.do e/trvrforQr1iiii,.,1 ,:.,,i . i - r ,...,

F.rorrnte !/?qLas5 cr{6 &orh

hw 'r',.,'. t 1!;,- ,'

x.d/ i*tr*i1ii"iPil'o (vc'riea )

hesrAnn/auc/ x'c/)-do qYaricd )

frestAre/aac7 tl>l z'lu (v"rra ) ' 'i r

fresrAm/.ao fvauc.l)

lres.Arn/ t-c(rlrvaried ) .

ir**, '1on'* 1*rt'crr ( i.'votrJ ) '

ii. i! I.

,, :ll

...

-i'.u''

Otfr@mPte erEn6i(rl

' i I );it!i l j !

rrorcb etrl t?4Jtofi1 i'

Ztrrt-lb,rforn> *.cPP elar r?o$cr n >

lJ;aI- PN<r<n> +4 Lfutr eorrt"n >

Ztrrt-ftatfvr n > *'sortrg a zfutl-Frrcrn>

he cao't fta6 urr-f:artgrn 4

Lwt- p{//fLt\> /xf v/*'do 4b*+tqort'cfn2

, ,'latt , ,l

j,;j., r :,t:,

, .. ;i

Page 26: Struts Natraz Notes

hrtP re4uesh 9.-

tocb resosrce dJ rred iartrr '

---r '[hi5 front Cetnl'o tl cl olSo Barhirs Ye44ltt

a5 btn testonse'

l, Flooi GntYol\e{ :-

-->, lhe sp(iert

o\\ ftqAesr

-.-, 1'g $e.'ol<r I

Co,n &$ ab

*o t$purce

Ond {13PSD€€S

osp prugrcm

f-*rU C$ntrDllCI ,

program l^J$BnP thof aafs d3

i5 coued * lgfc""Y "t

Tb,6i Csnfdrns dft€ trdY (ndtth

Porl and E^ir poinr fta

Cfi) F^r€o6i<rn rrrord\ (,ttl-Port(rn

dlt ol,

1be 0ava c\&s5e5 (4

and cs.o\t ge'nel ale http rtspt*sts drrecrt5 bodr- io

brc&ler dirdDul

bltp/l l0al t Bti-r<tnm i sr do

lllo.ol hdt ::61t, /3jrenc /3:.ao -

cltenl6 ond ro [s53 ttern fi' ia'cr elet 6€5

ftorn tlavci ctosses

O .'!rFiEle5l

a'to-fl*1"

&ployernr* Dtrectdg Sfrucrure &n festlpp Gt*et. tl;rlAppyr)

/rertt ' 46^u o

p&blft cler55 Tesr-tJt^

PurCic 5t;ni bYn'( )I

' *"n Tesrl: bmrt) 'aerhod

"

"q

'l

TesrAophEO*JN F

tttuin

,J

I

&crn cfrcnrS

CtieffS ' 56, lo fat<e *rls

fD ct i etds

/1 le*edov cr

fublic Cl&ss T€$t e

{:Frtl,"c Sraog bt+rt;

Efi-e:6rL()hd{d

Page 27: Struts Natraz Notes

fl lfuv. jc.'uc, (FrontGnrrorro Se''Fe frg )imprt .tavax.. ee,vler " y;

F$l;c cles6 Fav e.$tnds H*PSortc+

{

Puurc void do&d ( Htrt'&vter'U1na'i

t ' ' ',,'j/iget l4+.nLl.r"1

P.r.,n\Jtfter F =rts' 9*tN1rct !]:ll set tesfxtnse &denttgn

res- eerConrcnt\.Pt (1 rc*tlhq'l ");

{lreoa

1),l*s. **)*-.rs SE.roE

$,,n3 P",b /'ffitSa$"'o P-r'c l;

nIe"'r''€$41.5 ( "/or'ao") )'(t

T..r, f,1 : DOIJ Ter{ ) )

t

5t1.5 rourt--trbmr t)) : -...Ro'fn,.*to [j'tt ZeC*tt>'Destrtt F6 :::

1

else t( ( I,oth'c1eols ("/ut'ao " ) )

{ .-r Tesr?'l).,.,"Teste f1 = h€r't

5t,n9 "r4&(1 : tg'brnrl)l

[)(,,.frtrrrrln l"zb> ' /:cl"ltt^ )' " 'Q€Jut 15::"

,, \ .+T€s&lf ) 7

lg)se

t9o'frinflnf Lb> Ll>

tPar'cto5ct) )

f, l[ docta(-' -)

inv olr.t t Qescr(t

f Ytsrr / .

ir

!J

Page 28: Struts Natraz Notes

Brb\ic

tL

j

7J

hJeb' x(n\-=""-

\Did d"reor [Hm*-1stQ<#rdt "r.+, Httf &.,,"rqPoftte r.)r+*t^:s sF, eE

cloCrrer ('n+, ves ) j

-> In

0De

(61)

l> tlavac x'Java

,b J'ts

Rrgrft,st u1r5 ; frttp: // t ocr'tbrost : eolo I resrkn

^ 'u

te,t' 6l'ot.l'dSrroJS of)po'5 Ac-ftto X

need ru *ur*'.-ilIu* in

* FrrrorGnrro t re I &rltet ] fu tttts

n'rt-*-, ,,rb drvecrcq ttrtLr Prru,

&ar.h'ctxP>

ZAerv\<I 2

ZSer! tCh -hdrn e 7

z s'rv l(f - clc.sS)

, gelv )( z

Lier4er -\rqf')io 97

ZSewt4 -rnm€>

lwYQdfttr.n>

Llaeb-o+ | >

!.x tcntltrrr (oo}rh Lh\ FJft<-( n

auc z Jg-6 >

F5rv 4$-(>

abc zls-n >

q..6s zl6l-f>-T-L+ eircnsltla ra*d,

5r'doSrdct

be toge n a5

wb'xrn] ftre

&{Ff4dcm.

Ordivutg

o

6:- Hh,cr il need o9 fc(king' Adon&rvle* * **Ti::t l.j

+16'; tn StroJS o?Pli Ccdion 6rd9 Ac$on clesies a't "'"'ilda ct'6ses ' '"'o'

. rhcg co",'t tcttte

l.ptoeclaes'l drrcut5 $or" the clitnts' hrr cu '€14{est corning lo )lSlr n,

toin tr13et h e^eore $e toSlcJ ,oF S:rcrsAcrbn classes'

^ ftt ttut * *':'

AmonStrvlu crs FonrCc^rtottc'" Serrlet ' gu rhaf- /ffrcn&rvttr tretp 4nd '' '

futKe$ OUtnrS Sanorctttdl-+rpQqlrtsi and f{'rscs

46-r"t

Aur* dqsu h,s"d on fie ConBgcrrerlons dshe-

$ern to olprtfrtcr S,trttts

in 'S*uls c*ffgdcdcoll 8'te'

Page 29: Struts Natraz Notes

, Code in Neb. xnir Prre o? arc6 apDeullorr to am S gc.re . Actian ?rv le,t

z!.ieb- c.Pp >

LK$ter >

ocrlen z- f 6ervl&-nome 2--E-tog rca:r rot"e

Orc,apD.he ' grrur5 ' acflcn '

Lpa.!..3. natn e

dcri on a Ieerorr - narR( >

-I1oiE naroe

x'aL zlu't-Pe'rtnn '-Ql"n*,^ s66l 61Y 6r'tcr o

jfifa'n Ser v 1et af Setvter <rors >

cbx grnYrr e

Ered<idt -Paran>

af@om'valuc2

ZlOad -On- Oiafi-,? > ?, zltmcl-on-Slalnr.p 2

AgNw , Tr,o,,.g noru.

Z6crvlCJ - rn4plng >

<Seivl& -mm e >

ll$t-lv*tt:n

/l Setv{(} - rnoPPxlt )

Au:&-alfl z

16 co fi8crw Pori-3'lj)Cr.o\9

-t 0,9

a3

h(ru ccorro ttcrr Sovtct. (ang w&b6t lertc{ con b{ ta'oti exrtnsivr ) '

relrtlrorz

gorfier ncro- t€chntecf dorc. koO god uSers betng &om Sewtef PoBta.""l

re$(;t fJarar'€tcY uq!.' (&tym dcdtr-).

E3.' ro-e, a$e, - -.u<-.

-+ Nt Au+cYterhnrcal drda %o^ yrr4tc,.rrt'a$ f+"*qgh q45't-_qg h"6?ta

$e'tvLer p\rams a8 Serv t€-t inib [ia-'rart0'tc'{yalreS

Varygs7 gg'r JDoe dtivcr de* lsl/

te Sru's 6r#lScttallc'n 'Pit" *tne ond

is ieclonlccr! dalz, and shc^rA be FalscJ b3 Ptfl*elY' 8o'

(lr) elrr'Je.xf

\ocolc,n Ye4^nwA P- tbe

neufuty rhe

nArne

6r(j'shtc -

(w-tt- og,

conSrgur ar

z.sarvl* -nofn € >

Z 5e.o'rle-l -Cl&36 >

linit - Parc(''' >

/PdraT, -rr(m e > CanSS rlgamrn - nctme >

zfffam - vc{loc 2 y15g -rur/ strurs = cc{)&8' xml

//inir - Pavart' >

expecrinl 05 g*rer lnir fllxamel(n u(ct"ett) v:lrr-e

Aqv'r9'yut

Page 30: Struts Natraz Notes

-'-7 ru ovel c,me this PYDbtem rrnFs rent og cx,lro+pvl{d'- closs etrber durtng 6ervel 6fa:f(,f ar 4r.r.t$

rbe denbttat .r 1, +herespcmse

\ erubiring lilrrc-on - skrrft4 on Setvpr proSab ' DL'c b Tru D

- + Ip {load -on - Srarrup > ii rDi ernbled on '6errv ter PrD S@ , &w ter Grnrcd oed

to itLi5 rbe tespnte tirre oB 1sl teltest toin be lifie brt brgh @hco cs-Pqted"J -T.:'"eG-F 1,rDcessJog d{ t€+r€s t ^"f .

go"t"H? TEsPe/n3e ' . -

v to lhe rtsptrnse time oP orher tbc'o !$f re?rest'

--+ -r00ve1 come rhis pmbrem rmye Servter'Cnnraine't io srQdta tYT^:5t

tlvne oP lst r,erFesf to'in be yeducecl (mi'imited ) o* (Ditl be

urirh the r$punse tirne ,P A*xr than f r"'yrzt.

Clossic lnEbaPPricolion l-

z l-o -6 7 vak{e z1 - 0-g > $ci'ure 1L-$-6 7 v('ruL-}" '

.l .5,grv I (u) to tr)

(a) m(n) " b

srv 5 + (s) so tD) '5

srv \ l0 (E):l

Srvlr sr!a/ s{v3, g(i++ ocrl servu.\_ tlo$ttrt)3 '

z-lood -on - Srartup > l-

, c : .''{be t6b\e i5 6tvco tor'to tomcar' 6'xt

' , '".t:

iS .imprrrc$, ConFollc'r &ture-t o?

'' :i :(r:

" r. l.-; (

Since AcncnServlu

TDiniroir4 fhg reSnnSe

bePo'.Shrtrrrar ,e

A,lcn &wt+,

tir"e 4 tuS

-ts rtl,r.egt

t1sl Ye+retr a''d

it'isrTtonended

to

tt).eadS

Page 31: Struts Natraz Notes

NFlen rfljldPle &r!Ier6 4p;rn:yorns cf crebop ptr cafi crn &Ye ernbt€d tlttb

4tad<m- Skrn-crp > ln u:irrcb cnder rlrr3 coiLr be ln 6iarLti a'he d orr A

irLi$alzed Q €Avlet drnfcdhe-" &*n3 *rrrri Srart-up @rt dsfi$

J

dep\o1emer.r 4 tru opptlcofl.r4 Loill be deardecl lised cm thov t'ltx-.a-<ro-st'$to'--/

0tl6rtrg Vaf-.re3.

higb vaue ,0ocr: Sniotl rg '

h'6b Prncnq

ignore d os Vsi\ Va"[*e '

--t

---)

"[.nrr V:Ug

-ve \ialue

indJc.4te5.

in&cokc6

LDi\l be

-> there

-----a fttcn

]5 no 6P€eJctl

to lbrrrar 6'x

Va!€ tl:hle

Ntro} 15

r,neaDlng

'6' indtcares

"0"

lecrst Prroritg.

u,fbolrP'actne

-'> €,r*e A*io.,&-tcr i5 tbe cfnl$ 6eTr, te; o? rhe stn{rg basd

coe ccfi Btve ent * 1Y6 nurobEr cr 'O' a-sPrtantrg

jn

Pte-

-) Struls tol1tgut crkta Bte rntneI

1Alo3 fitenorne> I,rD I r

ftcro?tfuvte'r

lad -on - starruf

urb'xrot B te 'hle &ngl&rlnl

rbe diPfurence bltt] bF-b'x- \ gEand

st-rLrrs - c'crnf+gurc'fictn

AftuJ|- canQlgtta!{onNeb'xrn I

at i5 ccriled DD (-Deptotlemenr.H*

FIe rrrrne ii Bxed

locav,crn iS Bx..l [-*tbe .161n1p(,-Irur)

$"vtet Calatnt 'vr-ads thrs hrc-t kW lrxaHor, coirh lo lra ux+ awh

Acticmsarvlef veadg

Qm.taln Funvn-Bt'anx,

AdtcrnEmoards anJ efe':' bn'(sXaranonaf

aoty berrca,&ri be dr,elufr-d

DTD ft les ,

*Lx ftte. -

Aryondo*e>&nJ-cdo &rvleJ, Asf Fa Pt3

cnnBsuznfiat

-'--7 CIn\ be &r.,clog bagd crn

themo "ale6.

DfD G"lor)

iJ

pmro Torocor 6'x + '

,a, fuip*(Wt @-pry&d

Page 32: Struts Natraz Notes

i :? Srvkr Ccrrrain€r 6r*r* o\)eu .ftn AcnonScrvte4.

--+ Ac$ooserv\€t Ctceles

@ Aborracr Gnrrotter :-obJ€cr6 &n Forrn$ean aod krionClosseS

-) The heper ' ctos6 P." ftonr(onnotlct

l5 cdled ctbstrorl cnntrolle.r ,

"-''J rb l5 vcnJusefur to re&ce thr burden'crn Font&'ntrotic'v crod ro

!-' crrghrnize' rhe' behor.rioar og g;6n1 66nrrol'tcr/ oith crrt kr"rlrng Frnromhrdlo

\") ltuJ means cre rTncfi q rbe code og abswc,f cbnrYouex ctess &, antg" rh'

\-" h)rnvJarr Og Frcnt 66rrhr1itlq

---o or$. o+arhe . srruls . ocrlcn ' f&lestP-cesscn (cevaclors ) i5 obsr{a?}c6or'ouot

brurjfc'r oDtrril(r]

,@.Y(grasi

rDCl, ./e€otrrce prograro o4 ux'trrpi;tia'na

Aeqrc-sl Wle\sc Clor-s5. AnA ur Ccr',ftgcrr^e iL

Acnon&,tvt+'

Page 33: Struts Natraz Notes

o V,0 craas/ D.r.o ct&sS (Velue oberr elcrs5

Dn*a Transpa oeje.r .tcu. ) l- t5- €Ll-e$tL

o

l_/

"reornended

Cl"rjent and

Ot'tt,tr &n One

4.*'

to Cbmbine these rrdriple Vatue6 inro Sin€le java chs5 .J

ilme, 'Thit re&les fhe rcund tytpS blto futute 3,sf, Deet"ro4* lr'\-l

Grted .aS V.o cto-ss (var.re ohiec* cfcss ) o D.r.o

-) q ShurJ 6r4pllcai'rm5 F.rrnBean crclss is Catre d as Beang4ss grrl

D'T.o class. 8cz the OUie,r & *rrs cjass hotdg rncerrpte Vatup$4FornPage and Be{nnrs Useh.l lo nancW RryrnDra

fu- fo3. oP v;ao lager ro. Cctorrut rerr f Hodel bq, OOS Sr8le Obcot tl"nor,q 1,

tiA) I0cfm,,.,rsicro 0f Ccnrror ) pqrn&r,q Joja*lcrn ;-

Prr^ W."*ftvs.'ts furcrr CIoss op

Air,'d'n&wlP+ '

\,

\,

-I0 ibiS rcScu{Le e'(Pltc'irlY

Valuf5 Ror O*pr te;y:Jtte|

Fbls the Values fto- Orber

EtO rP 3rudcnt gers h,s ceLtrse

n+1es603

EgiO ftegaxce

fltrtr'rs t\e Aetf^de'*

tt3'd7-fce.

fu" rcr;s cd-ted Aea'"clerry lofuP'

cocX errn APPltco$tn

obitw F*, '.6tsl'5

l5

rls 5 TNO1 C"d" tu tr* Wgc Alilo

caued' Deryndenca tmv{>''

White *r't)r/ s".Ot.tg h,.re o,-a.nr op darc. prrn g&.ras latcrr ro desrin6a_y6,

Icuer insr.^ct 0F, &ndrng ',n3ru16l,,n[ Vatueg flrr rn rlplc firr,es il is

Page 34: Struts Natraz Notes

-4- I

I \-/

n*orm

rbe

Depen&nct lr6eorton l-

egl-@ rbe coa4 AilJdn&rvrer torixi,/ftf^..r**

cLlss 6$ 6heo' 1r.,ri-0ejw-b r€rlregi Pt*n

Eg: If 6tu&ot W Ca-sbe rnc*e-Yrct irrnnedlatetg

tolrha* dn! er(Pl'cif ./earrczt ' -Theo it l5 calred

an h15 rhe uodcrtatrng Gmt:rer (o) PJ, t*'l .6s,wor CrrD Spealot

'rtso'rrce ts() JLe clgnomlrorq ior,."o io rh,ei -reso&nc<.

to rh;s underlaSing envirorrrnc'nl-. Rshe$, tg,e de'rndeaF Val.l-ree fo rbe

"g{IarCe.tjig rbe uag Consrrr,zf<rr eiec''d:€s

ohen obe+ is cr€alcd "

to provide inth'al +Jo; l" o[)af

ESfe 'The ryf ,8e'vterccrntatn€rt T"* aod". ; ,,!- ..r.

ob t0 cJver &lvler c\ojs obu '

darc^ to' Fn'oBetn

Ta6'r''We.n

arPtd 'redi$rlog ftrr 'iruYle

D'-{'-a"^"e .YTfl:,

Page 35: Struts Natraz Notes

kooot'og ohilt Sbdg B't" "..,a ihs enF{es :.-

(__

-)

--1

LAnS , CunPt6t'r'u+oh F"re "P;te name> . xrnl Con be taxcn as )rfiJrt

In rro Fte oame is speaA't/ *{ n:t'sn*,,vte+ loors to +Lve

/ruro-rnrrJ shrls:c-qA:Iy1' ft'te I os : ^'o[pc..;tt 1&rd]6'&nfu6urrarfcrn

a.^hrc.

m \fb'tffil :-

ziooa - cn-}kltrt<t'P'2 L Ll l-0 -'9 >

zlseJvlef '' ' ; i ^

:

o. --o r r !:a)-'r'^r E Qr*r aS"I oolb{ o,a

Ac+rongxvrer tr'E?-6 strg-c-!al-] B're o8 NFB-r^rF f

defurrr srn rs cP3 F'ru :

t-\wd'att' StrL:ttt'P> t zl'14-s>

Llgc,{olu >dy WE-6 -t^r F gnwn a" 9$16 &q

Aqt-&r,.,rCr +rrleS r'r't$'?nttr\

lLn trr.b'xrnt'.

<*7\'lU/.}-fi> adcm z)6-n>:

{crn,'A,tl,o',3,trtte-tz!s-c"i ' :

t g'(-7 c'g' etQce€' 3Ful'6 ' a-afi6n' '.e'v"- '\z-->-e t ''<J ?

I Llnir-Para6' ^^., -,.,kx z-lP-n

1 Z-$roro - Ytcrrn e 7 <-uo't'') -'' r _^...g-a. xrn,t Z)p-t> I

| ;;. - u'^'nL '* 1t"" --t r obePa ^"''\\

z

'o-"

t,1

I

L zllnit -Pc(YcLrn

-> lneetrrn c\cr35 $e extcod5 P'o-

is cNled furrnBeon ctoss-

Org-ePohc' Srru16'

--r 11rr- p6orrbed \o io'bles oP hi6 c-lo-ss Crtre

8c- tc*4 1tot6 Fotm Carntsx-ors dsf'^

ClrUe/ fionn$eon Prbfr'r+|€s'

6hn &*ro''&nurer tor*ea 'il"'c

Page 36: Struts Natraz Notes

\--r futmDc;a oP Rr-fute 16 for-fJean clars oQj€+'

'-' ---+ -These Frrrr$eon prb62ng nqrrp3 ard Cooot shcrrrd rrc*<h colrh

{ ft-F"s'

.__-.. - Eu.rd Frrmkan clcds ut'uit be ccm6gurecl in Snuo onAAarc'r+rn Pne

\-, l',or'iag \qicol narne . and fl-rlt ForroBeff, cl&ss i9 i&rrrt Aed Lasad a1"t

\-., it6 lqrcor narrre tbrac.Sh oor rie 6ftut6 opplrca'hfdn ' A*xn"Sn'tt<+

\,./ inrcrna{ uses thrs log,d name a$ o@frnme colBt' it cr€ereJ l

\-7' ohk;l- 'N,^ Fffn&,n cles6:

ryt Pgrtrcr Ft m';ava (F-a,,-$*n ;|}cla$s Pr',\-'?

o€'o{'che' sfr-rrS' c'atlcrn 'Pui.^F*n ,

\-, [rrDIc clctsS Qe6isttrForm 9xrcnds orf'opclc' o"- -

c{lIfttg"on ltrufffrita

"r Strrng U&rrnome, fuSSUJOrd : "

lxrblic loi4 ge..Llse'nor''t (5rnno ul'r,e)a1.

tbis'usernarne = trnarn€ .:

tpublto Srr,ng qetUsettn-e t )

cq

. ta*,rt t' u5cv name '

t1>t,-urtc votd s€fPosscr:<na [Srna F'd )

{,tVuS'f":sul*4 = Ptod I

IVubLtL SkrnS gerPa$oord ( )

(-q-/1.. ? ?€Jur n I'cssttto'a ;

J

)Javo-c -J Pqrarc'r Fzt^darq

Page 37: Struts Natraz Notes

Tn srrLrrs cPj f;'tu 6arg qPaUed iautc'clo4 a#9' a,s fi:ror8ern,

isrclfinfn" I z

t+ | rr l"or>

C.)

Llun- b€an6)

zN<lrn-oean

4lfirtm-uea"s >

iti At*tonParh

19 '' tgr. =l.Pt: lufl

L*u*" )o6la"-name

nafne?

.\

\-/l6e fa,rq. ctcr.a: tfr.r €xrcnd$

fs &iled Srr,*i A.uon ctoss,

) 'Thls dcss rDusf Override edecuE(-,-t-'-)

Auicm clcL66. .Ihir rnerhod nturng

mi-thad 4,Pryle-Prned

ct&ss oq1crt

in tlruls Ccmftgura+tcrn B'rq

urlfl 6e idecriAe{ f\"a<talt. ,,ril

in 6frcrm CurhXt"rt*+ona

outt,rr,. A.n-\

l{)inhng ro \€urt P&Ee.

-> Elq6rn^rs Acnc'n ctuss rrlrst Ue Amfta**4

tt

l"ou'.{ 4gg4*t: ffirrs A*rc- cl&ss

tU

-; {fig pny1ras oP ccrA'6urtr''3

fira bX spec;foin3 iha"e FoYmE€ac6 r Rr-sutf Pc'0e3

AileA Auan wi{'P;n3 otrxcdcm '

v6e zkorn-beon> 4:'r &"-uez'n ctr'ss tu

.flUse Za{rioo> Pcrr shtul-s

USe z(Lrr.,rcra> ft" A9l"n

Sr,rra A*ron closseg

Au{cto c'lla$

lAcr1.'np*,nra* \ ts\'1

\Jr.l

U

t

.R**"a (vereu- nage )

Fltuaew Mtq

4gvuq- lstw<#*,y-bY'Wi

Page 38: Struts Natraz Notes

RegtsrcrAc-ttorr .j6,yq CS** Acfon dase )

po*age pr i

l}rbttc Clct1g

{Erblic

{

'..

€xerrr-k (-, -, -, -)

€;'lJtry'lb 619. cr-pche ' Sh{ul3 ' c,-Ui oo " Au<p, ' ,l?egiercrAa;c'''

AocrnErrcr:arcl

"/,lfr#

1lcr{"'-= 'l /'restrt+'isP

''

t'rP "-15

n

(g

e( zr.l

r0

rglurn A0ioriForc.x.rd

I /eoruc C-' -' -' *)

]//oas

rt, strurs cPn ?lre

OUi ( inioring to .'tL.trt Pe?e )

L\ftuft - Cc'ngiS >

<fi*- -beans >

ZPctrm- bean forne =

zlftn^-btnns >

zo$ion -rrfroPings>

lA$a-rtyc.PPiogs >

Z/sfrus16r CanF-''g7

rf is FornBeqn \ogi cor oarne far"lttc.q

* p,. QqisrcrRxm '

" l*S " iS @rul on

'' Pt' Re6isrcrA,son "

Lgft =" p,.,QgtsruFcnno

rr llrnrre= Yf

,*@i7

O, ''

1 ArrlonEur,arl

l..ru ]

-.

i$ Fongqgr,li P;cd lclasg narnc

&rrh cr€ tfnrr6 Aui6a ctcrss '

i5 furrgryc'\iPi,ed Sl-run Aclcrn clolS,no-r4e' 't'rP"

is krmBeon \ogicor ncrYr\e(used here to linr ft1rs'rkr-rn a:lr6

Ac-non clo*s )

Page 39: Struts Natraz Notes

J

JJ

J.-]

l

,l)

-l

T)5g

c!

ara)

clars -

-\

J-d

03@(t)L

_E.a0

4a

dt.)

icrq

5-lv-

Ictl

rO

e;l-

L$)!.:a !lJ.R$SsFd€.:J!

SLYGT.2aJt

:I>}. j-

:EPOR.tFFSe-a lJ-)-AFC-Rc

$J

cYj ': €'J .\,'Jl.J-

ca" x)

€,9'JtJ)let\6 Y-laASq)

S(+dUYel

.\ r,5 c-u^9(^.16 5)bt"fg.€5s&flelE c-Fc,dz l]

g^b-g- ti-f'E€€iats_H1-

E- "i

X<)edI

I logtcc.l narne.

o? lfirt:o htri(

,Proco d exep'ti

-----'-_-_7.\ .s.-sIrL

IrTJ ,F

aing._v5B?t.lcy@5&c)E 'zr

(p33aJ

^}'\J'U=

los ."q%.

F* t-

5,,; I

.EE I

$ !l*so Jt

ActonFonocrrd cPa

i5 'ihe result Pag e

tl,e Code bosed 'lffi.F H -ll e^.t) vl S.a Fal

- J

E,EE 3 F)stq rr F

-€g;9 Esr" {,q g

FF 6$ ir* vS E

o,) n" Y -! ' 8.E 5 A s rril

! ,9r,e -[ Y.",

q)4ts{Ja ! sd

ffi+-l I I.31 Igt I

- {,.4 I)-;42 Irl I:JJ Ivrl I

Fl I

F------------___

re '€ g;I * €$" ., .L b€

EE F: OJi\ v - nB i 3 'i,-d vJ E sl> ef -X ul. ; E 6t:l d, : El_€ I 7 3ld $€ Elr\ u, .1- I3 E" 3l5) d -lo ol+- _a 3 -l<n F-lr-^96K|3^!Olq"iEEIFI

.l : .E { gtL-. F t- \/H

@ \'succe.s5 " i5

@ ''/"escrr+';sp

tlnder 6raodtog

EtsrUsf-..l $I

El s<CJ.gt 6 g

ILI ,F\-, I tr rlol g F-91 c g c'^t d.FI s -x'*lg F €ut,.{\Jtetrl * cts

lst r 5*=Ii@iooI

Irr_-__--lI t,5 i\a --rdJl6l I

flldi Il- . _1

$H-6\8 \,i

^ 'Stqs El,.5pt',, 'l{ {!Lts.3 P!G) il .- .'!- :_ t-

,-- | oi xsl ' !.i .t!t I ol c eJ 'l

" le€lgF sFt <l 3cyl , ? $.\, I ll .= *l^wc

El i u y:l o i €r. I \- PHI € g B'6? I cP 3 get w d

\

(-lJ

FrJ

vE

"F

Page 40: Struts Natraz Notes

shp'F;" €

€./:ao

cllJ.Jl

,btl-Fc

CrJ

t .\-t'-)

6\,tt,il"I I tl

F-llr\t

2.r,8t

u^ !./,i6 )<bq)

d-!Ig$pqJ ^ba& i*533 <

So u& ; g'.,

d.-c"

oc'{

\''?lbt.?tJI<t{JlGI9rl&i

gt3

1,,'

'\i

.r. i t'il

. -).

Page 41: Struts Natraz Notes

: h,.r, to *re obove &d 61el I Iror:-

O Fo6torra lsptapee 31ruf$ Cqpli(a.t}on in uutu &ttet (a) ftpp!;xa+l 6n &nte"t.

@ ltercuse & <I@Ld-on-6Jatrae > &vLt antarct a*ares Objet4'lchorrsnvtf- v

Clo,6 €i$ar durtng fuver eU*up U dunng ilE dElqnznt 4 uc'AoPltcotloq -

@ U rtt;a Wcrr.;a N.noriewttt tote,tes the &tar6 carfi66ag ca fi1a aod 'rradc' rpriBes )

the enr.lcs o? gtl*6 4:,$7-c,l,rrry, hrc .

@ Ent-rrs.r larrnc.hes fotm ftqe o? ewrs a.pLra$a dh &raosc't dndo@ (fqun''*'''1 tJ

J@ E a-os"t Fitlg ttP rte Ftnm(t$e and

'tbrrri' lt'e ttyr*r.I

\j

@ bnd 6tr A*'^' u"r " (iru6.ao) p1a*d in knm pp,e *'e f1lLest uY\ lD;u be geneerta ,.)

rgpeai [rrt : hitp : ll trahot+ ,b>o I Snutstw/ry. A o

\,obwn*r,

Lrt pS ond ldws rhe te41rcsl ( eco""e y€r resf Lry \ cdnrrdn rfl"da onA Rtlon'ctv1(t o'tlU

Rricrn ir tt'do) rn rh;a p,rocesS Aourr&.vter n*tufor-&o 3^ 6UFa*f'nc' .-)

$ e.rion *:vtet uses ;he"reg"oordop wg.do LA"fi-ur,1 ard sua?x Pq a. A"*^t'tox''-''

G'f gur** tr) Src'n cn\;grwrttc't R,, cdo6e Ar'"imfllrb i5

the R.6iatcr {cao1 ClasS Co,-rk6uv:"rl,rn,

@ o6 u;nX nameirP' atftiAta c(<&uon > the kho,'enLer filts

@

@

(19

7"n6$ean v

Page 42: Struts Natraz Notes

/i\ ftul.J 4 I r" (9 €x&rr€t-,-,-,-; retcrr n i 4cnanFl,rLmra ohiect hc.vicg l%iccl nc.rne (6uc.?ss). [email protected]

- @ Acrr*,&rvt€l- crses rluia logirnr.t pap6g and Aaiorrknorrr ^

' *^Or,^ffi\i)t*

dcrne in 6rrur6 cmBgurolc'n Ere+o gurrfie ^resuriftte o? , Nt{(,r,cl".K'__tr o=r.,,...irp

- @ A*ontvvr,, Fasses the Gnrrol t-0 resuh pc(ge tQ*4r+r;

-@ *a 1rresen@lion [o6ic of Qesrrtpage frrro.te rhe ResurtanJ &nds regFaose

\J t0 bry-or--r colndocr: in the Em oF Qnorolca:cbrr'ne

tSO tog librc.rieb:-

'\1/ +) ,hP rrt' Iibrctrle5 i5 a libfaru, +tr't orntcr-tn3 seroF jsp tca5.

' ----i -The ic.vq ctass thar exrcods 1rrorn jovar.Sewpr" jsp. rage*r,Thg&"*o Cc) c.nd

crnEr-ln5 R-,rrfona'tJ op ..loOtr.gs ; C@

*) Under€krndioqJ

- ----i l.'--' t*t$ isp iog libranl Csnto,n5 6ne tta &'re Fnrinq thc otisc'tptton olourt -.]--

Vrrviou 5 J-sp toto L' tog tibt*v desorlpu '

\i f>raedure fio delelop and use Cusloro /sp tz.g liblc'rX :-

\-l

..-, SHfal-

9"P! Deslgn JsP tzrs librarg

in N;B-lof\ crcisses 6t*v

,..i I.ri ,1,4

, ,,,, ;

i-

zxyz >\

&tt,roT.g Liw".y

kvelop trtg fnoa ter

AflC.fc.g .jc.ua (fag1=.=-a:::=:=

pc{.hic c lc{ss

{

.tJ

X\zTaq ..rav a (-Lrq*-\"

phblic cld(ss

I

lnsc>

/.a'lz>

clcrss e5

bc.ndte,,r

Aocrag

Cc', )

ln"a terr

X)zlag

n'-ncl&ss

cbls Pu.

exKnd3

dsp tcqs

P^ tAB.>)

errcnas TLg$+n a

T..3!+n"*

Page 43: Struts Natraz Notes

'-\

\,,

U

\,

\,

t

o

1v.g-a: Oore\op tla $'re hc'ui.g o#;prcrHon oP J"t Far.&rt'ga.tra (weo-rrr $ra.' )

(rort eele)

.LAgc>

1t'lz> 4---t- X)zTaR. c1al:

g:- tld Hre otso codctnS detcr'rs a}o.:.t, s.rb iaB6, attabutts

Sicpa lo SKfa indlcdltJ rbe Dw4oPrrrrrl' .o? oap Ea 4atat* .

GDd el€-- -

.w,-,bw$sai colrrdrnt

tiltP+ and gt<eb iodiccrc'9 tbe rrhtiztr-x un oP 'iso 'ta2S

--r(.H) o@rrrti o? Lsr'.Agcz 8)vro bU wlibrdYg )s:*t* ftT

dAPfrl€rfiale tu$ W (jeo tr^5s1

lr, 1@ cl.fftJreRt +1] lj"rari€l '

rhe gcl oP ,JsP eaecutlon '

--, -lhe pcBr o? Jsp rc.g

---r 'lFrls 1-rreftx is tr fut

&:rrne rnrne bd*6tq

(-

(-,,

O,(t

(,/

oc

tD

trrl-rr', ther3 l'{iln SdYft,

g13gr ccmB6uve Jao rug tluc.rS in rx-b'xmt haotrg t€trb c.rt'

l.D Web.2(rDl gte

*cp-bi

Tebt.isP'

/7.@tagttu (r1i ; 'iero6 " Preftx =

*, l-lere -A" to

u H ' lndicarel

Page 44: Struts Natraz Notes

-) -10 help 5trc.r6 P,ograv.rrrr I

Usiog the6e *a6S oe ran

JsP Pru0rams.

isp lagtibar t t ld F le name

Stnrn alo

elevetoP rhe

.glf|)tie5 5 no.S

j.le p-gtamg

cu:tom jsp

6? 5H.Lr6

ti5r..4F$.

as ,;hvc le*

fzrt

App

reco rrfoded rrre8 x..)c-tY Btes horrlng tld Presl

t,

6rruh5 - it8lib -l'5's'i41tt tt

lrtrnt

beon

heslcd

l0grc

tileS

sirur5 -hi(nl' tld

56ur5-bean'rld

5l-ru,ki -oeslcd'rld

8mf5 -lo6ic ' rid

6h&tj6-hle5'bld

. brr),|

bec.D

hcatct

,ug:.

HleS .

Jrp tog

SiturS, - bil4 - 1.3'8^'i aI

tibra-$ ccmtarnr ry "*ue J5P fc^ts

-> rfi6 $lruts SutPlled

05 o.rrl ttr nolc &t{ tyuditicrmj-html frr-9s'

la1d131 clalse3

lrbraYs ;5

It) ProCedare io u6e 5rur6

,.- y. Gort'et in&, abotrt

?Rf -tr:- Ga*,er,-':_

3trutt - ruglib -l'5.s iar ftte , 6tur5- files -1',3'8 'jaY P'les

zthrrS-knrr >\ lib Srder'

aveil able in

tefr'{zorz

B're

..ll

apd irs d,<r.t^.der* jw,gt7

'..1'.j,

A.rt

a{,()\ied hfinl +c.3 llbYc(Y-3 iq Jbe Jsp fDfYamS. op Swt'ts opglcat'"r

rbe Jrp tctg6 oP 'l'lrrnl tqJ libYaYt'

Srr(lio -h+rnl ' bld PiLe &oYn r, -n"-.1 t'.\ rz6u o\ s'\n.)dl:ua<c'Ir}A-cnr-\ tr* ifuldc,v

and place ib NEB-JNF lataer o( Svru/) awlicct'tion'

\-- ed jav frestf-([r'il :' Pldae rhe Httnl tag tibra''q Yelct

in NED-3{F I riu %rder Q swt*s 641t\itgtlan'

6y.u6 - lo-Stb - \' : :' j: (. o*tS -tn*u >\ tro %Ue''r I'l:;;; g,. and iy5 d+endent io' Sres ovai lable in the 6rYurj

ar*n , r- ho-u \ doOsl srYurS - baJtt b\ andex 't'rtnl

.,jtfsi Cu"Bgke Htrn\ +ag\ibyarS in crxb.xmt Rte

Page 45: Struts Natraz Notes

tn Neb.^ fn l

{ra8li 6 1

{.iagli! -qr;t dflo .lbrJfltib-..i >t-, tqShb trrtlb8llb - locorlan 7 /irEg-:Ne/ or*.rg-brhl. btd al rrrgtib- local-i c.fr >

z/bgtib> nanE dnd locaHon og tfa Bte

q 4j- use rbe jse {a6s op htnlr iag liuravr. tn dsprnpgrqrns

Tesb.isP

<r'@fagna t{ri ='deroo '' preP;ttt ="h+" f 'z

at'u/s afplleff o-h.

Lbl>

L6{ >

in grura kaed qrb aPPuaafi or5,.gi- -The 3t"r+a 9r{,Pucd JsP kts wxorb€ uscd cmtX

"P

thL'. Rxrn ataoo.= re, !g ttphqd = "$et " tetrirlptl4 _ J L, opr,oror

iaHonoardLlSel narra l <ht:L€rt propert .=" g*{.lanr- " l>frduc'td: <irtlE*El ,ftfzlt\ ="(r,tx,,tod, l>

LhL i ar*inir vatue = " Log in

,, / >

<lhr-"F n">

@$sELb.-l-fu8q

]rJanJ S tara g.rppt fed ht'" I lttg l/b!"*U tehrhdf ii rhe ct,PPe'tnce Ulg

Trcrdl riynat hr-t +.rSS

---> Given 4 hiSc fhrorld r.rrde ucb coosvft )

--t {(rts o* lg crue S<'srttve and Sit'cn{ tfed

+ Doesnol- ilive deforrrt S&fF"t tD im plcrxnl

tlvc ? Td\el

--7 Cdn be used in an1 llrr,notq5 boed ro<-bo1pn

iocltrding 9,l.rrs.

-, the dekrurr fqpest trctl'oJ.& fzrrn Fgeis

'Gri'

-" Canmr enhancc. $ ruan At-tlan urJ- os ve+'ured

fne deklrtlt t1<gfqst rodbcLQfir " \

Prrn p4n ls " pos1"

can erhpinff'

A grr.rrs 6pdtco'+vr'

f.o Srl*r5 aPPl)caA o:Y-,

llad;*am-!, hr'nt Ws bat"A N<"n..trt lr1tkm i5 *'do

-<lr^ o.rtdn: "tugP t' f/r'oh'co Arrt'irr5crvtet

t rxo&tov5

-> givcn bX Nothe- &*o s^tSo,

5m*r 5.,prred ht-f r.g LibtdtJ ldr-)

-> 'fdfl5 crve Odese,,,rrrlw onJ Amutg lune

.:.--+ $tve-* d"f-ttt &+rv'r

--) &)mte crred 6119 in Smrrs'af+r" c*tou 9

: " ' " ' /l d4-'r Y€$c$ |netr'od' i5 Grn

zl Prxm >-t'

Page 46: Struts Natraz Notes

*l

Srrars 3Llpued htmr tqSlitrarY to$S hored 4"- page 'Bt Sr"'a hw)i'oT-

l|-e rr€llb u{i =''demo" greP;x =" htrnr" /'z

Zhmr:&nm 6rtl6t--"€94'I 6prional''"":"'' !-ur.'s''|^

il ae1-ar rrrtrod in *rts "pet"

a/6t nt I Rxtn >

sP ft,rro f&ge 15

---tr6e'se0n Acticm Servtct-

iht enablliog' l&a4n-gri4'l/,,rt4

them e..r€(bifirg

1e

--l Rrrnli::tjubl iC

'r,/

---+W$7'.

execr.rr C- i --'' '-) *k"!

Arion Fcroord e^erlde (Auonllapnx&rio,,F*m

{--,

te.ra"le )

..-z -grtu,

AsrnEtoord

Jt i: rec6r*nded fo USe

" lo<.r -on- 6tot'P"

&"rr&+,t"* rtlPest' Ss"rrr&sfonla

n

e?(e!!fc LA*'-t1rlo'nx mc'fPlnl' ftt**F*tn tom'

$qQ"re,D1* ar 1<lfcAt r *'r19^w-F^l^ce €pM J

Farr,? VeGlcr-n og execlfef-' -r -r -) *fa

A..*flrpp'"T "*lo'"1 :- o.,- .fi.- /)dionbenvlef , QE/-/r{thrcrvt("

using rhis ohi.* ; cac, '6orber ln?arrtr'lt Lrr" cla$. Thrs ohjerrU6ing

, rhis ohlecl- &re LGn tr- '

?,,rt?flt Auloocla$. Thrs ogerr

aA\s r,e6c.rdjng vhe clrrrerLr Trylsf comtn6rc \-u" , rh >ryy^W:

&tto we?,'t +o'du(n kl'lonfrNwa U &* %&150 Aeft! ro -ft.rut t t nLrtu'.,'-' ,

- ;r{,., AnotAetf .

-TlsS &iar Ca''' & ^ '-* -

I

A#Jc/b class ' '^ o,

A*taofarrn fu--:- Ihe furioo&rvLl s'r4pliccl fr^'&on clars ohj

"t t-^.::

Y:-::----:::-cBrs is no*',n3 W r?': 'y'L pc'ro'moa & QxLut{(-'h'n-wn

Http&wte* Q S:- usrng *r,s ohlec+ roe can $ailel c..u rha dr*"'lts

Pr"- C-licnl $ernua}ed

relAesf- li ke misceleneoqs infp, re+elt hedr,. V"t"U,

Page 47: Struts Natraz Notes

relrres bdg Vola.es CFc,rro dcrtr].) and efc.'. .. t slng rlus Ohiecr cr:e drn crp<,!<t^ xglre*+

o.r|rl bcxr " +r, pcrs daru f,rtt- fltrtm clc'rs io Srbc'r re ocr'r'<<r '

Ev.nrl'"..trL Decal use r1'uetr ob}c{ * tr{' -l*- d"n ibrr tte'*t,'c&/ h

h-k^ dry-@ +" 6^fu 4^' F^- lntt^'

NorE i

Lde

fttpSewretPr'pc'rse rrsponse !- fl

Bra,-xer crr)n dctr: fl^en 0te Can

u:,1r13 rtua *relflrr,seu

oqj€l,h'

&rtin3 Qer$msel-kodc.'r Valoel

jsttl:t-'-,-) wvhd' kcaue

8t{rd6 Acrtctn clas6 coeor5 lo 6€D a

db lcqlrfr[e ?€la]€d &r0dq'l in

dlrect rer pcrr'*c 1''6

iattonc.torS \P.,r,rUtXo ot6t^f

li t e &rfinq Cdnxnf tUPe , fffin3

r'ncl erc'-' -Thjs i'5 lers uarzed prrcr"rnelei cf

&rnetl {Prrrn.c to buos<'r c,^rindoc''"t d;r"4!

O OO goot Att (wrtaPPttcall "*)

q",n Acdon c-los io o0&Insr 4 lvtolann'1) nVca ttt'

9"'Y"*l-''

Ptn the Source Cocle 6Q fi-15 otpllc.^Hdn ocPcn Page no's @4@ t4 the lutAea ;6 Co6Li4'

Page 48: Struts Natraz Notes

-+ Hlteo 84'Erclasa

..tferedte Vaviable

ned to tUpe CorU

,y ctosb resyo1

txrb\i c VOi d

kx CArn't Ccil

rtris $lper clq55

rePerenre Vandble .rePerg lo it g$clASS OQicqt rtrn t-rsr rV rtn|-

direcr merbods glP s.rbc[.s5 F:.I' r+'ts @e

tPcitncc' 'Vardabte Lolrb &r.bclass '

x()

.t

Clo55 Abc e^Kodb TeSt

{frrttt e void' xt)t=

n

J

' fub\ic Void Y t ), t:tJ

7,J

TesU t =nerl Abct ) ;

t.xL) I / varied

t.vcl; ;1 snvo\ied

Abc ab=tAbt)b; l

a[.xt)', ll varle .t

Ab') L) : Jl yarl e d

'M,,-h r,\r^t .," *nenC9 Vo*.rf, f e

Lit ^ _b€,, ap.ReOrstrFrm()lAttrcnFn- lotn '

lLrrn . SaUser tnrne L ) I ll invarr cA

P'.. gerPcostoor d t) i ll lnv a\ic A

oPn.QqtstcrForm Frrr =tortP"RegisrcrF.o* ) F.t(m

f.n. gerUse'na-e t ) i lt (valtd )

t=]-

'\!/

-- #'';;;-,: , - ) .rrhod s{prr€5 AcrionForm @ft ctc'ss rtftr'ence lilttlil

Poin,.*ng lo ,Lrr 6rm&an cl"*5 ohje'r tnorlrtng h* s*bcl:t-,f-T:k

H*; T,J'ffi,iT ;; *;6eao crors usr's rhof vert"t're va'usr'k

"tgflgQrste' tlnf ttPeveoce Vasra/ote dlrb (

ft't "qerPatstoo.f t I ; // (\,tlicJ )

Page 49: Struts Natraz Notes

Pvocedur e to devetop , dqrLoXee

(rePer page No's t6 dt+ )

and ex euLle 1"' brrcrt s a 4.-ll kad6

WE6-INFclc$6e5

'"rlrl,oo

beinp $164a6ifP-r:-

by

8t?-li:-

Orta4- <6t:raa- lxme>\ cpps \ Srn.m-blaot(- l16-g,.hrAR Bre h

q6rn, t\,inzip tool (winaoa

ct@lc deflo,lemen l- drvectorT 6hu4i&te o? sl.rttti -Vlse| c'xh oPpliccttl cn '

E:\ sncrm R6p J

'Iwe(sav e

vegiarcr.ispScrcces 6 .jsp

€^itr-rve " js P

libl------+ xJar(,0)| --ga-

strut5 -hi;l.tU*"*-,E-

Reg isrcy fa,r.a ;ayo 1Pcg ;sr' Aoan 1.a u^ JYo {r"*APP

.J

tii 6kut6- confiS 'xrol

€xnatjricm .

?r) $a,ter rhe jat Pires kom 6tcP-t

?. f) gorher r;tuul-bmt' ttd Sre fto-

?a) coot

SteP -tr1:-

{Strura -home >\ s..\ u'3 riu\ grc\v"E'r rt\ YeJoorc€s\ rttTA -rrup \ t td

&o.n StcP -J €r brc'a+lcrn anl rreu fu a'l rE4i v'ed

add hrnc&r- home \ lib\ SeYVtq -aPi 'ioit -Eso.rs s.tr(t --it5rrur5-home\ riU\ 6ftc.rS -coy€ - I A.q1isl l4tes-:tr--- i'o Ctrts,sPArH

.

Jo flgco"apr-ter Wlprhes

E:\SwursApp\ h,4-rNF\ cldrses > &vac -d . *'iavq

E: \6mrriAPp\ l'JEB-rf.le\ Closscs >

.9K?_3..- 3rutr rbe iorxol Serve'{ ro _lanco,F ser\ieri.

Pnal\ee the obcve Skurs o{?l'tofi- I

cop5 E;\ 6FnrK PPP $1d'Y lo totncoi-horre\ vlw'N{ts ^&uu

Page 50: Struts Natraz Notes

i _. brq-yl:- ' TGt lhe 0rbePPtlcofictn '

h*p, l/r&arboar '- ioto / em*Me I regibtcf 'isP

- - 5er vtet Qrnra; ne{ Ll,ses tbe xmr pcr,r6c1r 3A)i (6rrnple Aee Pat x rn) ) io veod and Pocess

Srrni lorl\ Actia'n &rv tet Crs€g' ' ii6 oton Coo$ oP 6|l {:c'rsor fo lootl-0

and process 6hu16 bneisuYaftc/D ft'"'

\*,Web.rml .

---+ xro\ Frsc,t i3 a 6lt,) a{plicord; }tb} vcd'ido}€'9 tbe xvnl dosrrnen}s %iT":\

DTD I SCv'erna rutes qnd gtso procesS ,lt'e xlnl cbaurnerL't '

:-;":'l:,-;. "i ;, ;;- xrn, *es,":','::::;:'**O*asrru*ztres rc matse *c't da'm vstbte $oagh oul' rbe "***r.,,;'

-) h6diFconons done in\v'

OP $a oxJo o{PticdHon (e*'isA?o)

--)modl$ cc*ldn3 dme lo ' Jcva Frea oP rhe

urirr be vePte*td emlS aPrer r.loadr n3

' {'r""rJ}'J

-? modl Fi CCtt{ Ctn: O&me lr) turvq Frct vr ' -... .t\ .\;,ii i,.t,:

oPrcv sccrnpilo'rltrn o$ 'iavo' Fcs a.nJ 'reloc'd;5 oP thb arbap*i\J K,r clc^s Ro- 4p hlE6arNp/r,uf'too*lr"t-11

]--, tt*lt+ co,nkoine'r cotte."s *:":: ,.,.,.,,'i:rrg\J

hp og ;1sc\o'leect 6h,.'-r5 olpt'ccrl"fcrn ' i

, '\ t,

'-; ,rt,r,Bh,1 serc.p ftof i5 cq-:ed to deueloP rhe a'Lpie shtuK olp

idr. t'+ + Cidv vo )

' "''i bOw1l.r6 1-') [5hut6 l'3's )

' To'ntoi6'It frcr"cor6'0) '';i'r{

-4 xP Srrcr onfinuroHc,n f'tc mme stxrx - confl3 'r"")' t'ib't'"' l\-,'

,^JEB-'\,F yuptutvery. tttn rhc't $,. **a anl lotttltot' mcrsr !g s?e') FI4 q,1'GnBJl'\J

inif FlnAYn*ct y"fre drr;"14 fr.1.r-!rrv rcr Cp,,(*'r"sto'1 do't_ ;a 6l'x-'t $ t**. *" 1 ,l_' ._

U

+ Aqi^,9ru1t]- Lrscj S-6nram cr.\sF(u4Jt^ olrle instant\a$n3 &-k' , 5lnpp ftfficf.r

OUrur. $/ ule r&Ji may€ser< $.oh 6-irreravn (gt,swtttx' ls.,Arr;-Jl19,,,,b F*$tsOc\r.n a,ld A*toncir'-vs '&*h i''l flg=St _-Eilh;;rfffi' (or"PitL tqo@t'J o\aL*rt': Co^rr<"pi" '"

Page 51: Struts Natraz Notes

ioPorKr* Poinf6

Gnpiler ffetoa $-Fayan Gnoxacmr as

Nhen n0 €xpltci t\ p\cred 0onsrructurs a"e fl,.n-e in .iqva ctars,

i

\-/

v

\,

\-,,

\,

t

',j

l

0i

A16'r:

Con ; place' ool, laram(rcnzed

hor rcSsible lftau Se u:he n

-tdoo not wla& o-Fof,.rn

al(mdt lolr to use B -faratn

.€ C'teo$ng C6l) \ocorir6 .R.-UB*D ctacs oldeLl- is rhe responstbi li fg "g

-+ Nhen swur6 a4pried A5p

.tc€s bajed Form 12ge i6 lorrn tn"d crn tbe

oJ 8ot *8"&u*,nx otx,aHons 'trYes P\c@ '

frrrr6erulct

bmt.t:[.qr o:ln doco

*6 R,ronsu,ur.r C\€atcs L$,) t!(orei *e Fa'*B€an clctrs ohetF 6tard to E tPoXe

co.lrs g{xr t}..ricas

os rhe iyuxarvaturcs o+

cm rlor 6q;cr (ftmn,ean uUi&r- ) aod o'itts l?ti"xA

RrrrncrrrrfrnPnrs h Fr*.fue.

$'*ftpptltoXc,n tles"'deat5ne d

,? Fo,rn E1e i lor**6.. -P-rt* ol rrprt L\;ea-{'n'svstw|> or\

Ad{onSsnJle}. -T[r's indicare* errbilin3 z-lcd-c'o- su'*'P' sn &$o"ktr.,ler is

tund.;roq u,hrn T*Wle lf,-- W. ol&"

bd *n3 5mr5 g4ptied &n i"6s.

gitrl^ i.dnt6no! 1+rn',r- ra6s bosed -&',^n'gt is ltt'nth dJ J(rltrle * io h:(dnAut

k$*9rrut* ntcAnot ts po.,?..rr* o^t er*ivil\e{ o't T-^Bt'l ' *.'. @r rr need"$

€ L.r^X obe$-4 kr{a^trvu.t- kf.* br'.olu\ ktrt'f S"'t'e'

Jhjs Ind;cales embi$ng ztord -on-si-ar'a+ ) cin k$ot\g{{\t it on*on4 hll|€,,T

*6 *^**\hJus tD

.$(- to do aU these opem5rrn5 fttro.r$eruLer clo.r ober-t rnu$ k r*{ k*"t lo'r"rl'lt5 ''-'

@nsR!lJors tn ForrnBtan, sl-rc.f6 Acntn dats e6, ?

clars co'nhajn 5 use'.deBned C'rns}{('rf.,ls ' $e &nnPilt/V

Gns}(uctr{ ag deh.rlb &fts*{"' ' &rr ftdon 6ervtcl-

G*rrr,rcfar tO' irsY"^rl"re F.,.B"tt, Srt'rs &"it'' (wet \')

Af-tidnoas6 es !ig!S?- to kHon &rvtc+ ue vnuJ t tcrt e f$ ern o.t

otr.rsiae rhennl u ' ff.l-b\ic clas6eg"{' are Vis;ble inside trnd

Page 52: Struts Natraz Notes

i.-..

6hofS S4pued JSe tags otltml (46rk i.o .(oodUo$on. (,)tb p'a$ cr,n6etrv tc^F aqJ

furmpqe / n*rt fq" i5 drsiped bX u*rn3 trc&rtc,nr.r bn"r t6..

SfrurS fframeoorE. 6oj tx rrust tcc{, Ar19r-5a.tr1+ ClcrSS oQjerr reodj

htrese J6? kfls'\-/' -Fct rhis enablcd zlod-on '6la.rI1tP >

V-, -lioditiorut lttmt lags

hrt:"ofg' R.tsisvcr Fotn / >

ar$

Cu.^r)

' ,' r- _ , ,..r-i'-tr/rrlzorz

.t*rnlS

, r,li1 JO

t? r..EJ ,,

c'le . @n 6r-.te Ac$on bervtel fo k4p ftr &o glrds ohi:rf ln

/ituLy refles t goee

-> Arbnse"vrel- crra.r.cc @. aery.o E,'&on l* oqi +- 1' f/'cJttr"@t'1*t'

{i"'n pXe

"s"ssloo" sgof.

---, F.a8ean clals

-+ Atti cn5av tel-

Oqlelt is SP,r$c to

cftatcs F--ga"n

s(IJPe :-Ctde'rh'5'pec'fu the Qrr- t"r.t

In Sif(.[fs - conBq .xrnt

I . ZRn- -!ur.,st

1futn -&on rtrrr€ --'' TP "

z-lPorm -Wns >

, ;r iii,;, l:

,ir)l\

' ir ii) }ti}<u):(n - rraf?;r55

oiri4acr"on farb - '/rt€rcrcr I :.tg9e: 4p' Qt6isr.{Atttt'o oaYne. =

z-locl''trn >

.l^n^--|'tPPit'tXS >

\, , r_1il;!

r, I., , jl:,ttfl

ilDTE: p crnFro\ .&r- b@t'r Srfre toirlr r,s. ro rhe

oU. * (B.".r,., oro&@ )

clctrs ohid 6n df Pl

ks^(l arg ;''tl'iil* td Qot" g,, #nBea,6

b&r'e eror*(crq oP

,.1

oyby+1rori1n 3ri4

Ennlcan Cl0r

tocntcd ;r&en&.'t-\

Aq)dn*Ntq ond stao< 4^n *u, s",''.d;: B no ned c'P k'"Plo3 A.tlo.nr'&*tsi,-o!.i

.;ri1 : ) ,,!*1

J(p d;W$ Salss'

' ' ,i r, i{(lill1((l

, *o* befc'e e,reafrnS t|',rre ht' i.?"'

thJ'&rpe" &llllb.re ls

Page 53: Struts Natraz Notes

XOT!.- mornpte Attionclosseg o? Srorts App coo use 8;"61e FrrrtBean b*t

$ngte Af;rn ctctss @nrot' u6e rnrit-iPle FotrnBeors'

' -'tr "'.p" Q-* 5rrtr16 Acricrocloss obieLl \'J-4 lFere i5 nO provi6ion t0 Speoq DLcPe ro'

Becoz Acrian&rvlr* crer*e'sl roc""s this ohte.r b'ed on tbe aj,calc^htt'n4 J

Ohjef' Tlst rrmno Arrcrn&wtct locoras c'',-'d useg ex;slin$ ohje( oP Stt^rs )Adcrn ctcrsg iP it iS Ol'rod,1 orJc,jta-bl.e' 6d^rsrcrise Cr(aJaJ and <rse

'Jr1e^d orqi€-ot n

i

+ rP u Lrrc'nt t0 Prgerve the 'fulrnitrcd Q"- tl*la & \Ltafnge ctc'"ots r|'e -

o I D6€'[ coindoto *rn keep RnrnB"c^ in .-)rnultiPle relpest fl;wn irorn d brocrjoc 0 u'/r"\-'v*

\

descrdn &rpe' othqi{ toiee keeP |ormBer'n in Y.}-Le{r. &'Pe' \'

lne code kred Pwrt o?€x&raion o? Brst oPPlicc*ion tbc'r ia SMn)in ''-gt J

\

nda 164 l+ ( forrgo.r, sope lo testrcro )' \. r__/

A) prqramroet dep\rye,5 3rref6 App c'rl" oppltccr*lcrrr in se"6'ft1 "'-

$wret crtnict'o{ oF &wen rtods and vt'dPrs ldcb'xmt 8re '(t{rine:ell-l/

B) Srcoue o? Zlmd -on - Sl(lrtap t the &nv te* crn-tcdnex creoLleg oQie4 '-/'

o9fiU4crn$ervt€}(.,rne^dc'n.,.,3&nr<rr6ta'6fuPtcu&"iT$ede$otnnz,..r-'--,

O? 8ilrrtr oPPn' (1e?<'r line no ? ao) '

q Acrlc,"Servter tcrds g,rtd vc'i?'as *e

f;,a and rec,3ruzes $e fom&ons

ConFguted in Slrotrs cPXurotv^ Bre

enlnai o? 6rLtt6 Ccrnft'gurc^n"^"

anA Acrrm cl'lsses rlurcw

(*k, rrne '.'oslu}- jl)

line oc/s: +-lo)

D) Ena*.t

Btro-'n3

lwp,ll

lorncfus #,e {r- Ptgt on rbe Wtv^ 1otnAruc L,5.ql"{tt$ r4re

qql-rCtt Url

trc.rhot'.r*o [SnctaAPe | *3rtt"' j se (*P.,

.r)

.'-,

E) rt',e, Arron upt-orffit"' te Sarhetd (qs*"# ) -)

garfrex

R.6mrcrA.rr* class cfu *,ne i'o sHars .fu -ftt nhor actlon 44

Page 54: Struts Natraz Notes

- Filh is ''1regisrcl fo$e'5 Qq;sr.lR'ro, clcds rl-nrls linvea cn;il't' trt6Ina:G)

eu6,srcvA.;:;";i.Y bo-sed the l..n^Wo, lg;oor rn-e (-**en@

ry A' rte (f )srcp o[tro]torre pirr b Jt'tf3 Srnrrs &rpplied i6P;S ih

- ASsoc;qlt,ro t ;{h fturon Servte+'

- f) A.r-"ServK'r c'{'eoitz Errr"Beon ctc

'r1i; trr-ohtid'9 ctn t'lt"J odT ro

* &ssr-'ScrPe' ond crlso corqg ged

y€c{cl dcr}a f*r F:rrnBe.n PtD(v ioiHar !trkl€+.i.!!r.r.i

- to $e Frm &rnprnenrs 4 R'- 16' (e;rt borca)cts

(<fet rrne '@ 4 61_to_16 ( 4i )

d*,ffi;;*F-tJ ('r; t€ receiue ^T :6) pnd user n"t #frIi|r. fn6e aod *qtrnrta -rt"'e -&"- gc'fe r,l

\- ("*tr line :@ )

--,H) r*m TfT;nljffitffi; ("ep.'rineco'tt )

.-- r) 5in.. ln rhe urt Pcrlzrn o( 764fr*rte* io )' *'do" ' rr'e eti"nse111

\-.'7 tra{6 ad tc.res the teryrst'(ea ro ro 4 ta rr' >t)

'-[)A*r-grrr.ttoopsRttstrutsr4toonctc'ssoo|1uanonwhoseocg'Jrn

"'-' tO^

is " ltegiorcr' [based on r?[6]er'do ofl v'e14ert t{rr) and gers

Q1rrr.lfonto r-las cfu C*R" [ines: 4a-tK)

.- f, $a-red c,o rrtrne="rP ' orfrh$t' o( <cLcJ)<tt\> fl*rc'n&wtc-r $e'ts

\v R.grst rf*t clo'ss as N-* &n' clas tW is I'tnlzd coirh

[2.g'sttrfur"'^ ctc'ss (*fu tines: +5 ctnd 40)

.* L) ,q,r,*servtq lftc*s Qqisrerfum Ctc{rs ohL ftom Sessrcm g'lt ani c'vn'l-€l

we,wd -p'"* d"u oP f'- P"g; Ke^ rld oQl f*H"X^'ct

drdt- 1"dboo\' C*e" Iin6: 6l m Ar) . .^*s4

gf"*ry ? kU:.Ar-ticrn clc*s ohrcJ [ofo tinu no:@

l" L bcoze fttst roY,!'lt ll crqor4

Page 55: Struts Natraz Notes

i ru) Artr$.rer a&fts e^e&d€ (-'-'-.,-) c' {2qrs""At-trcrn clo'ss ob: Ixo"'

fc"t %*-t ( r. A.*nltmrog dhj \_.R. kr.oBean ctcas fti [RagrstcrR"* )- 5, re4r€st Ohj , -4. vespnse ou,j ) [reft. tirys ; fA io gT ) i

E fn;s greo-rJcC-r-,r,-) r"oar {".n a"rc. -B"rn Et',8*n clcrss obJa+"--'

c{IDd uje, thaf dcrra c.s infr-,t yol.-ocs ot-rle exeorrrnq B"to6rc. -&,ccesS #r'l.rr. \-/

€reorrc(:i-rr+"i-) refurnS A6rao Fx.ra'rd --t ( O) e--eae,,r".t--,IlFr.,ms Ait."Ecdl

ohi hodT toStear nome '' 6ucrcs6a (*P,q+1 ou; fe"tn8 to'*t-T#tffijJ

AOronservte* uxes "srccess'logicors'e--'--(e)<- A<rUn5errrqr "l* "tT:..^]

a.d gera "S,{a.s5.isP"os 'resul+ pge l€lcolrnrne ord Bets :i*""r,Pe6;*crAnon cbus. oS resutrfx9e oP Regtt-ftrlon .,

cla*S.

CwP @ltlne:

trler.'its (reP 'el -fot)

Cr,crs on -f*(R) &---

S) +-

end

[rep lrnea: @ )

fuG/jss. j5?

Page 56: Struts Natraz Notes

to oot

:'.:;t o4rpriccrllon 6rrur3 sLrfPrred htmr iaStiui'at i5 used be'ial-'

urirh clxtorllht{d ftr\rg JrP tzrn llbrtrg bg usn3

.' ; ,(ht-&$ned

--+ 'lh€re ofg rdo opproorhe5 ro usi c(r6rorr' I thlrd

- Amroaeh @ '.- Bg trslnl Uset-deelned {ag lib trd

fic.rl ' OsP -Tdj

A?fioorh@ :- q usin3a

iJ "'' ' :il

O Procedore to cr:or k (!)irh

FxeaJpe-deftneJ l-a3lib uri

ct stom | J.,rrd. . . '

j

in' ot5'rmt fte'

..i. .

Jsp ta3 libYcnJ btr usiog *,l,t*\lct"

uscr-da'Bned jsr tagttr ai ;

i"

\'lEE-a Nrt Iriu

: a :t.t i I

ha""

EJ' z+&glib>

zf ta6ttto >

tjt4 'place ;isg irr$ librcrvg' "€rofcd ia.{ 'Ptes in

Fijti tike p\acJng strufs - ta€lib- 1'6'6 'iar P''re

in f.sEB-Lr.rPl tiu f"raor

4+rr6ri b - crri' +:n..1S5 "1i,,,"4la6 li b - lr-$'F frffiP 1 sirris - brror' t u z / t4$ li b- lodofi .'sr>i'l

6rep-0:-

VX':

sFE {91-

'r,1',.1r'r I

l'r: I

Sr<f -@:-

b*

z-l

g rrr o.'Y

eps{oochO.

Prgcedo"e

gon Bgove Gp tr.g tiurerS

SPec;b J6p tatlib uYi

EJ', yegistcY ,i5f

lv.Qtastiu 1:'=zbiml i Rtt r'

$tAx ="hr.''nl"7 >

" re3 isrcY " >

irs d€flto&nr iai &r"'l

)/, {..''

use 3s P hflio ,a5stpPVtzllaQ. Ctntr;n rhe 3se Po 6raot5 ol ' , 'r

and

.l rlg,rf

c{haz

fi5{1,

rtd ftE4Ifrgenc{or$ rhc Sc^r !iirq}.6or- Iq?B$$, r.,Asp k+3 libroq .,:5f,:,?ylP,Y;

Page 57: Struts Natraz Notes

&rrpuci ttd

padeFlned +n

3o, ltere i5 Do need cf,

-_) tn uq bld $re 8..a /

Pltes &4ararct5 fo

Ltb u^ri is aua;tdol,e

the. trrbolPUcaillorl.

az he G^lxnt o(

&eJ +a6rrb urirs 4 6r,ur6 S4plrel Tsp tz6ttUrar'"r a'e [+tr i.fllrut-?

-tqltt.'* h}rp t/l or"urs . aporhe . or3 / to6s 156l (shz/s-brrDl . I td )

' 'hc,n, '1q6115t"* h*n;y SXor" .apol5e. ml f..tr,- bc.gr, Qnogs. beap.tH )\ugic taSUbra} brqtrl/ Sw,r*t,afe$e" coa/ frSa -rrr5rc [.thcrs - furc. rtd )

nernd lzrStrum"y l*p:// srrurs.aru4e .-f / tots-,.ru (s1,..,-rs- nesrcd .rl .t )titrs k, libyr.ry hq,/ Srr,.rs . a$cche .q/ f=rx5 _ Htes .. . Cslarrt -l-.il€3 . bA )

\-/

Ll

Atti > tal

-+ -Tbe

h*r

prutedure :-

Stcp-(D t-

E3i

Pla4e ' tt€ J5P la{ libYorg refored ;ar g''*

tiEe plccirE SlraiS-ktt,'b*l'3'6'iaY clf,A

Ir

org/ td$S-l,r'" 1

.Q"reJ !,\-/

F'.

.tl'"t i.Ste-(9i

E8i

use dre

\ troft''J't.rgs oP jtn -43liu*t5 in Gl t'rDBr"ms

-lrrXliU trri ' '' t:'i

::*6, ='1nt-i /.

Eqi rqisrcr.jsf

/'/.@) t%lib uri--" btrp : ll sh'ufs' a+d'ie'

Lhlrol " Purm A*lan =

" tntsrctn >

-": _-_-,-

zlt,ta; %m >

A?{n-t}OaluaXs vpl66P6ded fo use h @68 rc*rh

flotram

usin 3

Y? ts

-r nhco

&c"

')ib WEts-JNF/lrt fur.l"r c,eGr"o{'prft;''' ,iin delr'j.ent 9c.1 htes ;n ure-ucrltlf

Srdol \--l

fe B^d ta6tiu uri o? Js? kt3 lioto"l Su^ tL" /w1> hg "? 'i:s tlJ

": \_/refur o,ba.,e abte

bl

& ef 'hr8t b%Y|(J

lplqarts uoi rh desHn all cq Ll)ctwJot!5ce lt^d"rttSoorce U06re5our c€

:ra. ttititsi!( !.lht1 6oc.rd errd dest\n4flO f*1"""1J

Page 58: Struts Natraz Notes

I 'ddr'e tlr.egt c.,.n d YeJPon6e Ohie4'

Source' ocbrrscc.re prD$lam inkrads

#4lesr and ytrpdnse ohjetrs .

@irb darHnoH oo oeb, yescc.rce prugrcrrrl tr,sir

desrinefiog ft'"gErry t-of ll rDi &tc {o-'

ana YeJF.rnS€ .:objecf,c ,l€q{{rq,

ohied ctr not- dcPenls u+art

u9e

rIP

-> Ac6on6er v I et an d Aulcro CIASS

Attlonftrvtct cndI Qesurt Po8 e--')

vedirecF =" truel E '_ r , jls€ ,

ure &ihe- Yt+re6,t

use Spfnc rcVre8t

'J

i't::EO'-t-tJ ' in 6|.rclr5 A'rBgaurton {}re

I i :-r/'

/attlctn fr-fi =Zkt.oard

<k'..i'etA

. , z)otnon>'- .) j r; l'_ r dli,.

-) redire4 ='' fztse "

ilr

"/sr,.recs,jsP' *d'-"r: 3!9" />:7'p<,rr..n rjse"' ,ren,'rar=' tum" 1' 1; " ]l'

- YDr:ne= grcag S

.Dnamg = +ai luYe

Prrb:

p"th'-

'.- [hrse iS deParrrt Vatue

\-"' Ac.r-&ror., ctscs.: "t'd ''fonr:era (-'-) fo pos rhe ccml'o I io 6sx'alFfat € ' 5o'

),;r rii )Jiil;rilJ)t- cD AcrrnDarrtc+ ood QcsurtPqtg, use. Sarne re1 aoA ns oqiS

.J'r b) Acn"n cl&ss and it6 Resurrp'Xs u5€

\,/' I .!1 l

.- ----r vt d trecf =" brue " ;-

,,,. A,r^Sr"l us.s res.6cndpedr.e+ cJ lo txrs the '--t

* . ,, 1r..,,.,.

''J a) AtrronSe"vtc* onA {Psutr0c{ge cDill nof c4e gatne- f+aj'A 7q oqJ@,_s

.. Jl *

.-. b) A*lcm cla\\ arr\e its'ftJ.'Lrn4( crrilt nd ue Sdtr{- r"1/ arrrcl var'd!3t' 'r

"/ Inrte obow Code

...-- |aron$rvrr ures rd' Porcoard [-r-) lo iru{tor} o'i6 6ull!'6'0st' I

, .ft;rra,af$,n

Actiongrvlct usta ws,gnaPdlY&t L ) f0 iY*kat} corr'r

ii-,

---t yeorrqsi altrib*4 ore Eeci 8c fo etl' rc+i€Sl' :lhe SDorcc- a{' ' dc^r6nottoo

\,- n . *Jrin ovl*rr._S dfto8rarns rnusl use Sbmt nqAsr i;l 'ru'"itin"t"" iihltuts

\J .J- -.,.*lr.. , i\, , r}ui$ R$tett a}trlhr'fc ' ' i '-r' r\ I ;

Page 59: Struts Natraz Notes

.i -t

&ssrc'n Attr;Urrs

P.Dqrams n)(,8l

oJfdhtei,.

the &c.rce arrJ djj d rpdo,^ -

trt ry#sl &o- $ang 5vdd5&'(,Ind-oQ to cparL rotrfi' 8txlo4 '-:L,

., ij

arc cuFt+pticostoo +eahc athru't<t .1[cse G'f'rtbq"rt'4 Gt]e utJ-. SewrrtGnoxl artrlb-r'f<

ftndrffot, less nlbk/ ou.MAJtr-A @fi$,.',frP ttch o+pt;canon'

gt Hu-o to rx.ss 1re dota knren

fu:- x) fP g1ruf6, ft.-Lion ctdrs aod

rhen 'use

&o.^nh-rloo cnss

irs rcsrrrifnSe

'qu?Bf arftl8r'<g

- o.*) f,P Smrrt 4,r+- Uoo and i$ ,TesdrPcie &Yle- fffi'r''tu* t*" \'/

&*'" bn:rrt " utnAta "t'^ ure Srl'sl'lla dh\Uttos-"^ ^. 9**G**r *;t*" u

*) X.p tlocr can't Creorc 6bve *oo Stttrp$onS ,the^

cue uPrytev O

Crr$hj}r nAme rrrrstbe errrng and V4lue mcrsr b€ an 'OWet" -T al-- ql#i)&teA 7\,,/" \_-/

or oouroX Yd(,,ted @i*'' HrflL tEr) f NL e'il affiatq' "'r':r O

Drtrpr e ',- f w.r.r6 Isr srurs appriccrrrcn ) \J--=-.-L-

.

ry=t odd forru"i': add;ttonat coae' in $e ex1{.t'-f-'-' *:4 :

'' "

\'-lu Qcnrate'rA*ton cloJs '

ffr.qp.st attdwn ' -l-'i\ 'I ()

ve1' setA*r;ac*c (" ornr"' "\r.tt')' (-t

..r,. ,,,, l }rftoll \Jl)sussr- ol*bul€ '

'1r'\ '' !rri!:rt"l (,Hrp&ear, #= \9,'6erfirrtor'( t'<rc);

ees.cefuarrt[ "*r)"*r..]n ;; ' ' 'r 'r'" +1r (J

\-/lls"tter&tttxt 4thlblt,f .rrY lEru5ttfaNr (!," -- -

'"" StttiG**f;, sc=te('U"t9"ry49t-ti51l' ,, , ,,,; , *, :

aod its

aYe U3IDB

Trsalr Fafle ?

&-e reryresf ond

re,spsnse

6c' serA ftria,rx [ *.rle',

ao\ ; \---/v v Ti c''rtrtue'r't vbllt

Page 60: Struts Natraz Notes

/lw',rc -frrcrroX code io

sucess Jsf:=='-'

4htfn I >

tbq>z&nrxy >

z ftjlrLP 6ize= 6 >zkgttrr >

attr r [ve1 ) \alue :

irile [Ses) \ht]le i

\lab c :ort6 65t,

, !h^",4l,tn12

foiturt,Jsp

&roes'Jsp I .P-r r.ro ';t, t rtad alf'lsdrr valq<l

Logrn Srrcctrs.Rr ' tl f"v '

Ll. =6esstoo. g*'q#'1b*t l"clrfe") '/'>.L6^r >

1'/. = oqpuogtg,, guA*ttt*,x (""tu') f. 2 z-tv5

-> f.r i5

, u-sinq-,/

.-; -> Struts

Tacoroerded fo

anX Etnd of

cori € &de i0 J6P

&va Btc^rcrner*S '

gograwr9 Frd$

' ,l;

:

Silrne cJ c,btuIqlnn.zvor.J Si zn = 6 > " -li, t,r rc tl fur,r >

S-?pltes < kon: r^trir-c > kt3 tu aJ?r\8.ttL vrfug Protnvrad

I'.-1, , -

diP&yent ScoPcg-

fi-. t'

:t t" '/

<'r'@ray;a ari = "htrp; llsntk'o4ail;c', org/ ra6-rcan ' 'vft}x.-"van" 7',

zblrot z.bdg)

' <(lnle.{ >

z-lkttzv >

Ax-L(ft+) yalue:

Att''z iq)

. ,li{ili-\

<?xr1f ;izr,= b colsr F4tegn > [-og it' 8'ri'e'i : lW ', ,

^fe" t&lVahei

Vahe'

abeoq: r.rvi rc

z-bean ', ltti€

zb9o^'-r,firc

zlboa1,

zthnvt z

I

Lt, =\?Apest. qq{tt'rh,rc C''*n'1 l,'z 4"'

ttrrr'r<"ie &l* .

Page 61: Struts Natraz Notes

.-' " scope ' ortri bule is

"---1 i? " *ope " olttlbate

6pHcroal 6 io fie oPYe ta-Js

is not 6paciPlad the W1e]rnrc*t ' kna Atmatrcl-) cpirt Ae u<<d lo setal '--;

And remw rhe alktbut lt"tuu f-,n m.Lttip'le St4'<s(tlz- [bles(,?2/ Y//t(lf*ffiff]#W;"

-, L{n con use < lqic:rncErnf:rg > to ctpct< "t*atbex fluen atffibcde- ;5 thoe in

&rakc 6tD()e o'( (frb1 6PeciPUl'B ffi fu+e c*tt;bd-e' c,loritiliFg/t-J

iF scape olmbcrrc la rDt Mafted ' *en it wm9Fs dre- traagct io !Wd99f9

-o Sin,e Lbeoo:wrtrc> r43 lb.ro.,s pxapoon i? gr*;Aet atfrU'hL is' ruzt \,

aM)Labte, so, it Is rcunedcA ro use < lsret\zDfie > l3 "!h^"1 tal og \--l

!,

\J,\,pe^Ptr="ban L> \Jgr€tx =^ PUlo" ,,, \,

zbf

Z-$7 2

j

U

LI

ui:

{.-

4Lo4>

2Jlvnt>

\-,rI

I

U

9

./-lo6c:ryrFnpr6 , ry.

in Sunss'isr J {^r--'s,oqrlq)D 'dDr I tu t4'- l.'-

zz.qn6tu ' t ,t = " hth' ,ll t*f I "ryI" :l *tt-::,27.@Wn6

lvmr>,W>4rti --- hrrp,lt *att, a4al,,c'q I Ws -lotit:-'

ZlJnfix >/' w' ''^U /W4centcv >

. . f Zlo1ic:"orE-ng(**) ) Arre('w) r,ar,rc:

., L 4t06,",. not lzrnptu>

4ogzt not EmP\ Mltz='dtr at "

Praa (as) \aittt " zbean".un rc

zllq;ct rntEnFU.

z-IoBic', notErrX'rX vwr2>'aff."

ft6a fsc) Ya16st zkant wrre

t)to6r.:notEmPvu >

t-,t, i'h. *-'T il"'iii:::; fi*

1p'1rr2.--" attt l-" l>

E1D(E- ='4 Sestlc,t\' >

y16srs='iy?z" l>

t{t?e -"'a+PwHdn't >

')l=ru)

'l r'rr -=na-flu' 4^'*: " l' zbt '

6W=6 *ygr-+ed'> Loginlcz.Le'^ tlW > <br> \,

(ycrne=uQfr-'l

lbstl*nrc

Zl.'(Fs"G*-6'ilft'rrc,,rc C'otttn

Page 62: Struts Natraz Notes

,i \,, 1'/. \. r->

- -' N, Cctn olso ur€ zr}eao "

ruri re > lc$ tD 'rfod F<'rrndafn Rot thc FomBan c-.tacJ

- 0hieLt prpffrHeJ b6 SforF6rng " Pyplt'fU" ctfh;bule'

\J ln &cr$s . jse / -Slr.rre';sp

ft ta6 lir"rc.'ri eS !'- 6:- Ca.' U Q^dorg the frrrfpse oF. 'Varloq5 '8iturs

-Sr{Pied (

bean-f tqtc\:

hertd

: tl':r' tudrspt% thc 'resutt flenemre-i bd 6rurAdidnclass in*cfu'o&ge

it selP ?

*pi lare formfnge as ResurrFcge 4 Aottonclas

E{arrrple l- N.Y'b lsl oppn.

\- 99.-l-:- Conhgtrve a ..r€8tsrr'jsP o-sfuverul'r W(o( pegrsrc'tA**n &r4

in 6kcr6 -Cnnfrg.xm1

{Octlon_fr0-fplrls7 n L,

&$rn prb"="1 nXlS;e'r " tuf'e="o{P' Qrsttt*'r"t'LP^-glt mme=oyes1t+

u

nars'\F'7

-, z_lacfion >zlgn ts-<^1ro'1&Q-tl@) - rrpnp,ag5 >

Irrcj{ .isP "/

Page 63: Struts Natraz Notes

ulYite

\Jrrhe $116p1nX code in lne ^enlte(;,-r

-., -) oP Qrsr.rA.rr*'

aPrc,r ygp=rJ.inq Rn-d^ta R.t- kr1.'$eon clctvs s4At,

6h"o9 user = y?.E+Ux,-narntLt',EWing fttt6 = r('nsrPan@o/LC-\''

iPtu&r. e$r-als l's"trtg.; ) 44 rc"r.€+ors (' t-"{," ) )., 1. , :.. ,

{ dcds" ) jI *'rtAwiu'rc["ttg', *vbued credu

3 ---r*,,. :

elseJ - r--^rJ^r, Y\ri

*l.ruAqtia'+e (ms8', 'fov"utd 6"pale'tla1t")'' ": "' \-l

3-i!/relurq rrn{plng. P+naftn,,ora [.*qtttil

. 1 ''! ';

" ': :i':ii t''!;'"'irt U6tq-6h.;.) l",ln\t thc Poru,,l .r1 aaa'rn"''of

''c"dt in pescrtt:JSy lr . - . r. , r

/^/"@ra1vb tr,l=-.ffi;11 '*oir6'.'alwhe'gt3lfqs-wr'l''preftr';.kan z"> \-/

at @ tat'b tod=- * l,ttyt1 g1'<ttt'oP^"' q t +4t- tna't" pvzBx="lo6la"p;

''''i rr:r-li' ::r:;-l "-i: O

Zlqic:lorFnPtttr mme--"m$B ' gge\)g="Ye+Rst" 2 r.,'.i ;'\Qe,rcrrf i5: zbean:Nrll€ rr.me="rrrs1" SCDP|-="r't4l&rqll ,',nu, :

zlto6;cr no+Eyrprb 7 )'Pl J-i:1i,,".,.f \-/

.j.", ' ll

!lfi

\,

\,

1..i :

i'; -r

Page 64: Struts Natraz Notes

I

ir ccued c(b

rrr':nkr9rr6, tbe efitfieg

t€xt [nbfsr]i€$ Bfe.

a+lnlwtz

io rhe R. 4 " l*g =uauu palhg

ogptt cdli cto t,ol'rf ch av< ctron$crble in

in a Stru-fs ctpPliarl$on aa d ^u

\-/

(-,

kc$J

-r T6g 6|andcV d

don'r ln' a

Puwre. Jt is

afrplicatlon h

*) f. Bt t.".s crpt \tco$c€ cte use

o fib ra;ntctin PltsenhaHcm

Ej} fnyf,'re . Propefies

4F t "t propeYrisb B te

[mU.name = rfuiq7

J -g. og" = r, f ',rar,re sIILftU.addys = hSd J

Pfndpte ln Slu, in&sht is

Code *rose vatues in Uo{r{

l€tom€nded Fo pass fud

-) hhile (erE n3 uirfi

&EnfioD.

----., uJe Co-n +d<e One lcrr) rrrrr" pnpA.S qrcs

ttese Pires rn.st be (n|6uw d in Byd.'t6

lnestuge- r€srllyoF5? tag

prorsdeg Btes

lcrbet6 on d

(crlsclbte,

f0 rr&infdn f/rese nf(rljol.)

Vatcre, tD c+pli callcrn gorn Cr+si.le rAe

rr)tlsr ho$e i.FPerti's O

*t;\

ir

R, rbe f;rr*otng oPelafions.

to rrope tbern Rexiqe b rood;pg ond

l,

An&guotton- fire- usinX

tavmg rhe gtppct./_ 6? text propefles kre.

lyfl.tra afr$cdial^ *E prDpeytl€s Sfa

ft., i)

label Sqroorfing ittn (iwr.nrrcnoJjzafrah )

FsrnVcrlidcrHon €./rcrf rae9s613qj.@)

CI

@

tlr frfr]ntoin

fD rrnintc.in

to rrrr;ntuln

Breles **-S O

Jdbc properfts:'_

{

\,

prcserrft*l on hbteS aod ear('f rntsszq€.

telrrrcd fia Sfr&ts A<Jancjats

Page 65: Struts Natraz Notes

i

.l

praedre to add tnr:freahres Rte 6,orfr'rt

13J!- Prencre ProPeal?s ke in

iD Octr l3t 6rrcrtr Oppl icaftarr.

NE6 -xN Fl cicdses Stde.(

rn$. HHe

rDt . useT

rnU. Fdd

6teP E:

6t<p 6i-

rDU,r€S = Qesurt iJ

CcmPrgrre PYlf,eirtleb Bre

in Strur6 - aineg ' 2(Yn \

/]a$ cn' rnqrrPing 5 7

Zm€s5c'-qe-Yeso@rces lrarameto

af sfnrs-ccn fiX z

*ad the labels

prDqif 4m s.

f eg;s ter , Jis p

Lt.@ r4t;5

zz.@ tc.gtib

zY'@ tr.Sltb

4bean:YDesSaN e ke$ z"rn8 ' Hrte

zht-t: R''t', acficrn ="rqisl€r'>Zbean: m€sgcrge kertr="mg. uscr " I7l}eqn;roesscr3e F.d-"in5.FrrC' />

4htrn\:srrbrnitT

zbean : m€ssa3 e

zlhftnt :sr$mi I z

zlogi6 : notEnpfu.4

norn€ = 1"53 tk{="Ynil.Yei" l>4bean : messc{e

z.ltqic'. notEmptU >

tkan:.Wt1l< rt1rhe> a,s6"1 ,

f proc"nt .H .t" 1nu"t'

rny. bkn. cc(p = Logib

= {cen}rr > zgp ln6io pge zihrt Acent t>'(_)der name

Drs-.o d

,-lSuu. o8Fte. propar 11 es " Il-l

i6 $rrut5 dmFt6ctrarton Fre

u D tlt-- rnt5le l-7

Frc,rn propeotr'es R'ra nnJ 65g rhem )n f--F"d" ov i"P

u l-

Zbtnrt : tex t fj,rDffttU =- Uielrftme /> /N>

4bim) :pascrrarC pno6"'tg=" ftisum 75 <bv

l<r0 ="rDJ, 66;crd / z

, ell*or : P.nr,, z

Page 66: Struts Natraz Notes

i --? To rltf€ rr€Sdaff3 Qn rnrtdple hle'1.6 u:e can \-,

. !-,:

arg+ .alflr5ure6 (S **.y

,r,

\,

\,

argO = "ts8e " .lh,> z)cea+or> t-)

da;X" mesa6.r

---r ore cao Srpd C vafres to thesc a16a6q,n1s

oF Zbeao i rn,1"e6ne > tu1"

i'.,'-

+f)r€sfa*lt|an la6ets

rog .,lbl = login io 1

trffit+fou , rej = Ressrr iJ

Qegrsrcr . jsp

z.ceott\ > zltv L&an" rnrssc€e kcX='\mg' J}!-"-Ell'rn n" fol va11e

afrfrot : &rm OoH an :

/W..r,"fiYsSo-Xe

' Lfun)rneSSa-ne

zbtrhl t Susmi f >

4Q.gtt1. rnessdBe

el f'r-r : sulm, f >

,z-lhlrnt : fr, rn >

zlogic : rlotErr,pru

Lkh: ft:r.sgage

tllqic'. horEnpt-

1eStrEr 7

ke6:"mX.lb't 1'

lL% --'mJ.rb,q"

9n80 ='' 15et 16116 e' 1 7

a\30 =" ?ctstrJ<rt'd " l>

zbtrntt la+ f\DW". nbSPdd

Z hHnl ! l&+ l*vP,trX.

keg =".n3. tul ' arlO =" " 1 >

Oame -- 1r'S3 ' >

lcerJ -" rog, res" 1> zkao;6tllt

7

narne=" ro ig" /,

-7 Jt ls not

Jedcr perftNrDon@. To .g:lw fhr',s gmblcm,. it ls rrecor'ena€d b {t*<

0rofrndes f,tes.

---+ tohle Gn Ptg"rin3 mutrl?le

loSicot m-eS lo itu-

pruyrder Stes in Strt*s CcnrBguroHon

q-

alki*r+< c4

Are gnqr,ils

.6 !!

-lrrr)(r,rtplc r-'/

TJ

'J,< rne556Be -'rtJ?Grces > l-oj .

-R" ;a.nrtFc uslnS kg

Page 67: Struts Natraz Notes

\v

\-,

E3:-

5K{'-l 1" keep rnrrriple rrrolralrl,cs P;tee .reodg.

rnJBre. prDp€yrieS ( r.rEB-r^,F/ ctcrsses B,aur')'"

-f prtnraric^ loltcs

ro$. HHe = lTgotq > <hl>

rnu.lrscr = Use.Narne

fn8 ,Pa.ld = pcssa$rcl

Login 1u6e </hr>

:\

'zltsttt'>

rn$. &nfcr = Zi> Leen)L{ >

!Kf-e:- &,nfJgure 6e prDpr,.H6 Brc,: in 6lrtift &n?iSovanon fife

.-) rDUB'lex. prufrofi.e ( UeO -r"r/

* my. bto.cc.f = lo6;n "r.l$ , rt3. = Rettrrr is

zlatloa-rrnPpings >

tetd rbe lalJoet6 Rorn muldPle

rr,Srstcr ds?

i

clossesl atr Brdcx )

rrryBre )a-rd =

Leld

B re'Ywgrrftla

!e{ =" or$ ' dfle

.k,ndlE=" F," l-

buodlo --" fr" l.

fro'- st.rrs Aer' tl cenler> 4i>

6r{, ah==:

" 6r"d le=" hu 1z

\.-JZ--------' toe;.(d norne oF mU Br<

="f.-' /,I-- qtal narncof at+. rlFtc

bqodle="fi' > 4\> z)cgl.ro

4brtnl:tart I PrDP'-nUrs .: r,.*,.

lrr-i*et > t)tt7 Aeonrroessase

zhtml r,furm c(cfion --'te8istq 7

Ateon ; rn€ tsctS€ }re6 = " m6 'ase{

Lbtao', rnojal€ keX =" m5'Pt'od "

zhtrnt : subrnilz

Lbean : mejs48 e kq = "tng '5rn ' co4

ef trrmr ; sbtsn it 2

4vtnr'.8n^,

2fogic: notEraplu

zb&b: meslQ9e

aor, Zlosic: norErnf \ >

rgir6g =o m sga 7

btndle =,-n po'^s3" l>

gX ="rn tr.veg "

'ei l-

Page 68: Struts Natraz Notes

lbec.o i meJsag e ke1''mJ "fuo,lcrn bzrdle=u Pr" 1,

NelBec.ns IOE Aives one -&'ll in

ad.olrgorrl WVrfiU B'te,

Strlrg pnij.r Creaicd in

dlso otl0u:6 Lrj fD d/d

tf orauTs I0

pnogrrn5 8re ord

\,

*-/

J\-/

DATABASE CoHil0NaCATJoN tdo/ri | 'rorr

+) &r ttrt rs oppllcoilon fo DcrrqBoJe st(.o

tjre tJ'dbc code) 16 6wr'trs Actlc'rr ctcus '

flrocedr'Ye to deutlop rhe o'bove o0ph in

Cr&de fable in Dar.tBase '. "

|Jebgerv<'t | *oPttoot"nSe(va

CrmrourU carll crrr P\crct

NErgE^t{s rDE c6.7'r).-----+ in

pertsrsNnlq i51. \-,

li

'\--l

. ,itJo,F\EtrurS

56,L> CY€ale ' ttbl€ use{ti5F (tnorne

$6r-> Jn5eJt- lnto LtsL'rU6t Vdl!-es

SgL> Cctromi b;

Ssu gPoq of the a{Pn '.-

S0ri-> Sele* couYr [*)

coqnJ Ljt )

--1 - ruof"i

SOIL) Seferi CJSYU t?t)

Cd{nl tx-)

P*- u$trt li6t uhere unam e =tl

o6 4. po.l="r<cnrfr';tl

vcrrchava,lau); ptpd

("rt,","ron&")1

Vc.tchara (tQ)):

noo}{d,

5Yr

J

\J\\

ed

P*^ rohen* LrnQrn € = ond Eirr*"tn "; r--'

'J

\J0 ---------------'+ &vo-s}ed

usu(U 6r

Page 69: Struts Natraz Notes

Pr(edwe : -

€kP-G)i erecrle sav& te! PYDje* Jn NeiBeans roE

Fit(-+ Nelo Proieci ---------t Jovacocb '--l t^lcla{:Pn ---+

ne{b

fxrojerr narl€ : StrarsfuP ------jrnex t : ------+ &{vet ',

&rnfixt frlJ-6 i

--., Ac*l on U{f L

' De{efg u:el&tme

GlasslTs b !.t.^ ---------9

*r*sApp J -------a 19ai6"S1rii uo o rne .+t o€x C ------+ fl srt"'t6 1'5't

pa*+-crn'" " r" g odc{ Sriur0 rldg ----+ Finlsh ----

shtur6'i sP, rrderisf fttm lgfl9l t'Pf59-'"f %td"r.

stc0€:- add Ordbcl4.Jar Bre tr: rfie 'ilb'-e-.'de6 oP Pmie{l.

--'- t gilDcose ( setetr qjdbcl+ aicY-

eign cri cr on libraY{e* ---+ lctrh'ar -

._/ { Fr-9rJrt ' 'dJl I .rireB x .=','hiln l" ,/.7

. zy.(Oraqrib u'r; ="btl-P:/J 3r{ur6*&Peche 'clr9 /fc'ga-'urml :

J *','V'*J" ,,R aa" ,/.-..-/ \-'' , rt = "&an' ,/.2

27.5) k€tib 't t, I a4a-uean .

^ / to3'- log; c" " - ' logtc" 7'7Lt.@rqti b

"r. lr

.J Zhtrnl : ft'rm ocH an -- Ttgi5l-cr

\*' Usz'(n&nng: Zhtm\ : bext f/rDf'er q --"uscrname , 't '

t 2mP'*Y='gastnorl" 7vP6iS5.l,'!(A : zhxml 'fr s@ord I

\v Zh,Frol:Scr"bvoi F Volu€="lOgtn"77

zJtrtt : ftnrn>

sit.Po ;- Adct furrn0eon ctass to rhe fruiect.*,

ot* o " AU'cl rcrlr lv\-!'rt' n .

.*, -- ,. ' Otbpr,S i;-+,Srnro qtrrt

,- ?ishr cr.icr cm s'.,tre p4cF't€, f''".-:-:":#-t- --,aFnrsl

--a O Srrurg kHonFo0rn 0eon ------1 Lluss|larne I' llctg'5rLr ru'|r" J -

Regrxr. jsP

Begisrc'Farm'

,,J- ^..-.

Piqhrcl'i4 on nebFages (Ltde'' -------o nelu -----' JsP

t__--__-_-----1 , grrshJsp Bre oame : I registcx I ------- rltue ' '

6t(P -Oi- DoJcloP 1-{rI F I r*d! \'- (' .!.r

Page 70: Struts Natraz Notes

PegisrerF?'rrn 'java. 1- \j

*- """ --iorukrrm exrcnd$ or9 ' a?ache ' 8tn-.-l-5 ' ac"rlon ' A*l crnf'n r'\

rti c clc(ss Qg;Ortrktrm exrcnd$ o$ ' apacrt= !-

{\-/lfonnBean Pra6.r+ie5

Privo,|e Sn"g "t"*"6' eYY "' \-/

:----=- x qr*us muhodl \)ll r"fti te ** * Uttt-' "

' : ^ t -. s€led c'!ow Rlvnseol ruPerrl ea -----' Hohtclttv --+ioten@' ';

6xP-@ i- lr.td 8FldSAtttctn clcrrs to prDje/-f v

e^Eshr cick 6n *1'1'#Tj: -___.- *n^**,@---'ne{b ----)

\-,--,-tnexr -)

cla{sNann( l Bq'sItfuryt-l -ftionf<rr-BeanN*^u@@=-

sc'Pe : oserslcm g"'rs h :

ihufs Carn ff6"'trf"n r/

sicP-GJ:- GtPr6t'w ReglsrtrAtrlon tlars ot sb*to beloct in 6"-Y - 'u

\-i

Bre 0,-. Arr{e.r l- !-/

"o^..-,-.Enrr,," 6rrt --" /d{ls}s dL'r!

v

/urri re rhe iauc od e

G. *^t'*" *til;;u'

g* G''euro^ (' idrc',Tltt";*:,., ffi :'

/u:!an n&rnQ = &+:tr"fztm - lrxru - '

4ft{\rraxd n",,.'. S'fr['T""'Parb=' fwqrst."'jsr

zloi.no">

sw-[r)i- Nrite 8rroc"\nl code 1n the @xecdc(-r-r-:' '*o^ o? RugftoAcrton'iou"

D!L.r' \J''' ;;-t rurr-"tt"'"tta ehe'-rrl-€ (-'-' -'-)

jlwad krn clole' pton FtroBtcutr class oli&+

p.g,.*.,*- h,^ = (QegrsrtoF*t) f-'. ; ,,.*rf' +-

a*"u uq = kr'gttUsenno*elt I . L- e" p*as

$rn.,X Pan = Pm ' 6$Paxc'cna ( )"'

'i Fe rhe jauc od e

Cc,,s, Q.r.Na^. (''o,o"tt' idbc' clnLri',ft'"":'j

\6?-\ I crc\; " sc,td, "

Page 71: Struts Natraz Notes

-1 1) fL, ^ \

Prerot*aSatc.ent p6 = cctn ' grr{areDta}eme4f L- &le'u cot'tru(r)

(-l)hefie u8c/rham€ a

ls .serSun3 (r,un) ;/1

Ps sa 5hlng ( r, russ;1

Qes,'rtSet r€ = P6'erecur<6uqC) i

'.:. ,

inf Car =@i

iP(ts'n€xfc))r' ' ;l

Crt,t = f6'g&JnJ

iPfcnr-=o)rtlt tat' strA*taccre t ttg

el6e ff1arrr+rc

('rns3'YelAelt ' s€t

? croa

s' )jv r'grgcrued gve d enltor

r '' Ve,ued sr"6e.Hds" ) i

1)ohor ls saL Inied('n gotlem

r) duJctD0 ofP v1 dtr4 on Jtr4}ton sol sxierfl oi'

v\ durio0 o{n n lffewnnn 3 8l3r- S{elH c,"t

prrn', u*<tl,tst

Ptoa=9')

.t .ll j

l. rr0'ro U Crn

Tar b (€,ln^.

xklcmPxoc'td ohjll'*u'ns A

wturn fi.oP'tng' ftnafzrt,nra ("xstrt" ) I

\ fltrtto"rc(- t-t-' -).L

code in QsBrst<,,r;js?

.9Ra -€)i- Nythe the StrootnS oAclr nonal

4logte:mrEroPtx name='m33' sco?e = uwSptest

) -, uYJ I-c 'nArne J'ms 0' Scpge ='lw+ter t >

$eJdt- 16 i z*st

./tr4ic : not EhPq

tg- '- OXhrcuc) o^ goied --+Y:cr\

frraced.te to rloa[r h rhe h*f' Pbd' h'um!€'"/ oP dehqtt "dcrooinl- domair

0e 0l\crsFsh }e'(tt(rr' rr ''l&lassFs\-rronne>\ ww)6\ aototns\ dbrno'nl\ cotn43\ act'otn'xq I

---4 rqodiPg fie podb &tt'lur}! Value er lb*t <ltrtt' -Vrr.r'er >ha€ '

Page 72: Struts Natraz Notes

-..+ jJba ];v,r name , LL\ !- , Jb usa oame a.nr d&fa Bas e Pai 6roar d to" gethel

@"/e Cil ted f,dbc pyupc{He g. Lb i5 ctltral 5 vttomended fir Pas s fres e Jd 6 c

Pyq,e{htJ tD O{pl, C&Hdn &o rr, cLdSfde ihe a4p Ucart on bX tz,tv n5 the Wp <df +

WPetttu Re' Ntpn owc code is p6cd &ru6 Aaraa ctars .De cg1y. s,,+e1.1

tgsc PYDfxrricA fb fi:a)- fp66aalasS b6 urinj Wopertrcs Ete a+.cnln1 '

6\vp.c.d*. to place ond u3e Jabc PYDfrorrlts in fie PrDperfi4 $tt oP Sf"t rs

Qplicotton.'

Steo 4:- keep uergeonS

5E-e:- add

Rhu clrcK

------t S"ish'

SrcP{r',' rno\.e

Sre Loirh

lOE h^$ed $'.'nAte r r'"dl

ne4r prDPefiieg B1e to P@i€ctr _ T-,.a

dn $rc rd.t $racr ----2r€td ' Pmr€'die seit e ---'-J Flenar,,e'@J

6a.r. lt"^f n trt Pl€ PI'D[{ dej

la.tr; cot rwnes'

in 5|rc,r5 - dcmfr'' ' xrn I

P;tcs a."e ccrnhger"ccl 'in Ar'nl.rs ccn*ytaa"|J

w

614,/l]|-\- Aad

Z-fiesl&Xe - lescrrrces tstrameier =

zmLs{J-$e' tesats<t', Wra(nqLl =

JD6C

4

"6s,-l-5o*l*^

"-gBre" tcj='iPr

l'*L#fffi,, 1=

bJ |DE -

pYo pefiies in P'@F'iti<J B'te

{Taac ?rogrt;eg

n{ . c}rrver = Jan 'Jdbc ' odbc "Jtlkoabc'

Privc'r

mU. &{t = idbc', od56: orads h

my, db.cer = &oEt

rnX.Jbprocr = biXot

mgRre ' Pvo6'r'r-' cg

U'

\,-'

(

:a'7>

.:

Ot

Yq

eR+ -@'.' dfr lc

b Yea'l

&rrour;n.1 Cocle in rh e e^

ane use Sbc P"b9a'ltits

G,-,-,-) & Qrnrsw Autctn <Jc'Ls

yogtov P{ve$t-ts"

fi.-v/'a

/l ru d Pzn m dara B.t* FtT r''Buan ci'c'r{ olrJ

"'*'0.'.r*r--- 9. " [o<alstuFtn^) ft"r"r;'--'S.r,,'.0 un' P*'SiJrtrmn^et I :

Page 73: Struts Natraz Notes

St,-ihg pB=Pm,gu?axucoaL)) .^.,Aar-,clax'

Ittu^t< ymptthtb {4te .--"'u v'.ud ne'ipd& 'podefintd Ad'

ilersaX.P.ro,.rc. s vhy -- t*PoL'"J, (.****' { li--* log;r.,t oame 4 yt olxnt< fu<

// ra.d Jauc Wpudes P',r'- rhe p'y*a $12

Sni'g 6r= rnr' Setllusose ("mU'chiw,,A);t\,

Srr;nX Sz-- mr' getl1ersoXt 1"

S*^ I 97 = mr ' 3erl1e'soX e ,!

.

tU ' au"l"r ".):

Sr "f S+ = hr ' getltctsoSu f tl ' aup'a ' ) "

/nr"e Jdr codc

Ctass. ft4 frlarne G') i | . /\G,nnerrlm ccrn = Aive''Yao"n"' ' ger(ottne c+l dr'' (S+'st

'sl't)')

v*) u,,to cor, co.,Anu'e At"onSe.urer ejthev

ir1 wcb'x'nl Sre 3r ode/r l-o

di!'afive

Acrlcnservl*' *"+ Y

to;rl't

See lt

nat<h

as Faar(lo.mllen"'

wr Ft+onl-prtctn

6rA'Xu'rnX

ttt-p> l"ltl" z-lu-P7

z-lCuvtCr -ma1tpfn1 >

in L'Jab'rrn'l

ZkNlerts-\-7 a.t\*t ou!,'

,o*,o^.<a. ftavnle'uk+

z)s-c>

23'c'z or\' o$A

zl gavlct >

z-sttllal -rwlnxT/S-n > attu .lrn z

' ' 1.r,)ii

Page 74: Struts Natraz Notes

--+ Bosed

in

6'.., the Foro Cott{rtrer,r

h^ *an chass .

Fotn Comwunt

-f extBo x

Parscoora Bo v

Qodio 3tn

Chea.&,. (cngle)

Chpck &xes(rn.r*rte 6o,res tr:irh sornevume )

Co'bo .Box (su* f* ;

Li*Bot

Sug^ir Bu n

Fire Urrlmd

fUPe io Ftnrl tuflt ale need ta dui 6n po'7a beon f'wrk,

Eeon pqn"rJotrm

. 3t"g.. 1vq14,.bte> (Orb' a&" HE ;s olt,1tu4 )$r'rng.zvs.fabl,€> ( , " )S"nr/v:,taate, (, t5t"nyzy6,1a5te> (., ,)

Sr*ngi ) z-ttt,ta*le> t, ")

p-ce d,rt to dexloP

in Ftt'", fr,"fle. tUan$

1rcp"(l:- CY@le il{$ TtrEJe*

f{Ie - pctD ?vQ'vr't- ----5

Na&ons IDE)'

r Qwus3 Cd+lt)l)il|lhaotn'tr

aura,n e',' @---a. Gla* h th v' t ---+ p srrtrrs' l'r "5

./\" '?

rhe fni<r ';r., p1e L,lctFde *otde" <

WJ"wl- -- tu<Jo tn{_ ---t brd Btc'

)nRrf -.ltP :- , ^^.u.orql rogs-lrr-i pr-91 ="lunt1 "z:" ' +? :/ | Sm*S ' o?arhc ' orll

A/.@f9tib gri = oI

lLtml f &'m aLlll,,t)'?" lP"'+"''->

Lfuble b"der ="A" 7 'h,,

1Et >(td> Narne t 46d Ja537 {Lrmt :bext y-1wry="name'l > zha->

4lt">

VMAr14 futu -: Pi-"1''

*,p @,, AdA rhe {<'n ve-Xe( inru'r '&r ):=:

Nr€r^:-1 jrr, @---1 P"vt'tlb'

Page 75: Struts Natraz Notes

Itr >Lrd >

lrd>

Ataz

At'(>

Ltl >zft > Aaa,$s 4td ?

tn' u,^' : t€xrdYt q cuta l' )'

en6r addrdS 5

4|Y61 1 text.$vta7

Age 4fd >

<htrnt : prsc,lar d Prdw{rA -," o-ge " l> llt| >

" tarr6 =" 6 " fnoPcrt1- =- 'cfu'6" >

fr\oerfb = "6 tt' dev " value =

"m " > l-1o 't 4hrrnt ' tadlo'

\!4r{c =! F! > Fel'l'tc 'lw^1tvad}otlnllttt{f,=" ffler'

4a>tn'

tr^, Gt'u,e:t : Aue >

LEA>Zhtr,t : radio

/hf,ml rc'd^A

Lla>

/l'r>LtdT

LVAz

z)tr>

2lr>LVAz

LVd>

LItA

zlbr 7

/l,t >

Lhn,l'. 6eiet*

Z_htnl t oPnon

tltwl :1PHc'n

t\*nt,. Opllc'n

Lhtr^lL qrno)

> Cowces z-lE d

7Llnan I t Sde.u(

6wmor<e

zlYlz

/-tdLte

l"larrtr^L sktug Ata,4htrnt : checr-5or pTDfle./l,? --" F5'

6t aqhca+t qn A.il >

pronrn/r\ ="q'14" 'yetue :

t'engg" ?

v t*b+e=" medlti' >'

v6!J!( ='larntd "' lfi'd 4H)l

EnXineQr zlw-'t ;oPHq 7' .:

fled,crne t ll"tmt"' o?n"n 7 ' "

zll't''^t"'6PHcn 2', ctvbt , ftrtaValae--

va-/^l,.(= 'i Corttr,"ata. zthmt

crs

ahlrnl lo{tlar val.u6 :lolt1l =

z-lta11gv4,",)atan > jaraPFX z/I""t tortlo"'

Page 76: Struts Natraz Notes

zltmL : oqtlon

4l*"n,r ' sd(*>AA>

4t-t >

/ir >

LYd> llp6roPs 4n2ztA I

zlX1r{lt'- a1tn69J"o Y r'rof*fltl =

t1*,'. d,aat-hx pmryrn1 ="[b'

uc,lr,Le ztoytare')> D.rnt e ?4 M+tl,q'>

!"

zlWt r ofxtcny

= - sto. p^ 1, 6l^nP c'lFT 3

afura1 t c)*,*Lrry ywy**,1="ht' lla{4e-qtaa lryfrlnuaana F> Yz)ra > \'r

zlEt, O

volue J rcang'f> W^6br^v" +l,,'r''Y,

\,

U

" hb " valrre

I lrbmi I Va.krc -- "l5prn d ' I > t)fA >

r re-$el Valae = " ,"te+" lz AH 7

tw>ehd> zf*rot

LUA> Lhh''"l

Aat>LItdJDlc 2

Ann,l, l*^ >

NolE- at tS o\.urcrd g veromeo&d t6 tare ttre hnn t

AwftnI ilt ati3n lbe frrrn cuntcnt ptg- eas; t5

arlp{@'.' odd Po-bean ctoss ta rlrc prqjutl'

b&-as sLn(,)t) afut?

ta6c' ccrfrtsc/'f ar hr-t uale

(,

(/

t

\J:1

\-/ji

*j\./j

I--!vjq, 1!

\-.rl1

--ILi!

__i\4

I'\:L./l

l

56(r(! PadPAe %tAea --"-1''R1^)

ll iotnr[o,m. &.va

E/alic c,tcds T-rrE*Fcnm exttrds or!'opihe ' 9vn js'

JL s"'nxr'rivc{fe ham e ;

fxiv cr,te jnl- a1e )

Ptlvai-€ Sin'n3 aedys;

pyivdr Sr"n5 ft-nder,,

Woj. Sr'ing m6i

Pnn"re 6wrn, +rft:ptvar< $r'in5L I crs

Itnuc.l-. 5MngL t hU;

--'---t Otltett '-"+ AVtt< .--a sratnkAanfrgOcht cttc! Crn { 50(rq wut'41< }atct-v

l%o tE '-------- P-''nis\

---tnexl -----+ c tass ntme ; [5rr"6__l ---'-+ gacl

"1y16n , falan?n'av A

Page 77: Struts Natraz Notes

ll pu.,f,erXx^ c )

J s.,".. ,t.

Acnc"o Closs 6 fte prdcrt

dn prDjef ----J lut o ---r Odfrr

- 6fntt --t

and SerXxx () ,,:crhock

abow rne.qLcd vdn/a'le -----+ Agr . click -----. JnR^t Codq ---Jg<.rxtat &n<x 4yH-6\ . ..

.,, 5r<?-+: odd

l2Bhf ctida

C tc.ss Narne '.

Swurs Actl or1 ;--------e nrC: ts._-l

(alrl oo- rno{,Pi n gt >

{4(-ticm nc(rne

<&t'-"rd

zloul on,: / rr s(rtt .j sp

in *.ut$ - cc'nBg. xrn I

= ilf)ftrtHffi

rprn€ -- qYe

5 "

irtcp-6 ,-

-, o^"*I

kcl4ar,Fotu, qx d

llverl Ax^

Jnrtrr?c,rm

Srnn g

"geXiu1c t, vrrt) j

A*tonr + FLAcaX.: E --------+ ff6$6nf8d't ( L?Fl--.-r*l-*---r A*rn En, Bean uame ; rnr.tF"rr"t --------r Brut sh

|ry1y Coft6tre Tng,trrAdton ctcl$ in 6tru!-r6' arnta5r're'rron 9+te o: ehaon k-[o<o'

='/ip,rh '' &s6',c/n'' tAf',e="fr.Inptr&$o{>g,o?e--

zlatN oa - mo{,pl YLg 1 >

Nnt( +uoolnge &de tn rhe @rcecule l-r -t -, -> et| n{ft.rlcrlan'iava

et.c'rrL C-, -, - , - ) tlvUrrrr exL+\\aa tdo)' Prorn knm &-an cta-ss o," J

fm = CJDfr,rfz'-) fu* ;yriyne - Pln. 6<.r-Nam

aL ) ;

I rU-

SMNS

Srnn3

tr"ltr5

St;n3

$''nJ

ale -, Pnt , gaAge() )

gc,n -- h" ' getht'Ao'<))

add'r5 > h,6<thadl5O;*3 = ?-.3et[sC)l'

grk = P-'ge*O,1fu111

crstl = l"''gl}s1)So,ng hul I = P-'SullbC))

ll,rrlr h Busoets logt a

if (age'=tt)Ye1l,.csh' serArrriur" 1

" ^i5

",

t'Jt ,,q4*r. BrAfHJ.^k C ,r.1 j' tx voE' );

' 1-1a) J

" Mr aql b\e

Page 78: Struts Natraz Notes

ll U* Rrr.r aaA in relpes t afinturrg

1tryesr. s.tA*,r&.r" f"nno" , n.,*):reryprt ' serAtt lrr- L" o5.", "fl");w$le6r . grAtrrlru+.(,3od.1,,

6., );\ey*f ' sot*ta "r*. ['haan", aJars)1woltuar "whwa* C ors", or).1w+redi . wAtl,;a,*(+r b,, ilU,?€1^1€rF . ruhrr;ar.f"c"s)

crr )ty),L.rt , rr*.lntaru (, ir; f,u t i

/"efu,ls /.rt" e"a* edy oLDj

ruar n @tn\ng, Sll4lonaay I res " )i

J\le*t"r't-,*. - .-)

] ltcL"'a

S"q-t:- Edd rhe .r€sutt,jsp h, rhe utbryeb S6. erL th"

OShf Orcf oo &icbF?Ae5 fiaa^ --- 6to ---) &f ----J &pt'tr/rharh( l@|

gName i5 '. L'/.= wlesf ' 6atA*'ra"r t"

noro€" ) ^> zJ6{ >

-rt6 e is ', z'/,: re4<st. gerA thrta<rn ["ane- 1 y.> zb" z

Adctnrr6 i6 i z'/. - r€#?st . gVAWan (aaars") y 2 LLtt >

\a,nt"t g+atus ', Zl.= ftlrest . gtAtt;*tt-1"ms') :lz -bt >

6^Au ', /f.= v4^Lea,t'grWe":-1'' Yreu') y'>lhY >

Q*ug*ro.r .. L,t. =9eqy'Lut' 6erh++w't'-lErfu:l '17 zt v>

Cnorses ," L'/, Sv,nX croll = [5r'rngtt )"ratur'geAn iu-rn ('o"t ');@ f-li* i=oi iLcts.knxrln',+ti )

ou*. finrln [crrg;] "'. ^" - " ),

trobbi€s : /y, swto3 hu[J = (Sr..'"nsg t),,;:, .';J*,^*( ,in. ) i

f^(r* i=6; lt}ts.tcngrh; r+l)&+.ndnd', ( hutrlo

,,- - -, ) )'tz

Qernt is i Lt,=*qtesr.*t?ii*.t"^sx- )f.z

raqi€,J

Page 79: Struts Natraz Notes

\-. qlrp3i- [2,.., rlc prqic*

ffnht ctr& on 7r: ict+ "--'---'---t Wo aa

lq €tr- uPt',- lre+j: //roccrbosf : ro >o J

Su,ts fu e t] i"lxt 'h}li" r

. ;--+ E rcpt Litt box, chect 5ox &mpcmerrls rhe rerrOrJog Fvtm GtrnPonenrs o? prm pa-g q

use rctaes t Rlramert"s ei rh.t Loftb €motX thrnes [or) toirb &,fuur t laluLg euo

aw nof $rLed.,p (t{) tbclr ittmJ n* llt elered"

yesorl ..iip r . - t .. . u rmj+ r =' hlm\" '/. 2t -6*io-^= " hrh :/1 sr'nr.r'aiac4."o'g I *".1t4' 'nli'^] r"*-" ,,

Vtk n =' lt6,'e''/. 2

Llt$tc', mtErnnty rr"me:"n&mg' >

).larna is '. zbean : tari tt oame )' rctm{ l' t-b" ' .

l'

jl{lrc: ootEoone z

<logrc: notErne!

Coodr(e s ".

r,,ll!o,cd r1':rk:

!*n""w"

- /* o, ( zlqtc"\r'larc i

- & l-e J 'x^" u-t'IL zl togrc : lFrrrure >

zllog;c'- no1fine\ z

z-br z

/logic'. norho\-[oUieS

Zludlc'.ilL\aJ<

nam e ='At "

.t f"hbr 1 Y. : r'7'

12 =' il.c"r " colfe4frn = LY' ? trAxsr ' g6tlrllt;bt -

zbcan;t^lrl5.e nqr",e-" ilcr"i /z

Page 80: Struts Natraz Notes

tlto6r a : l4a-a> ,Jzhoetc ,. norEn1 v?!

15Y >

l|11

Pocrlt is I zkan. r.lrlk r"-6ne"" msf" /2

\)

h*nar.rnatrrq fu-Bc"n l;9e %ae :- '/Bt-r., ,r,na.p, lcunche6 lne For m 9u7e 'J

lr.t o L"^- r'tt,

Anon&'rrer |"**11*r- the'|,'-, vaXe rckwd' ft"n' beon clo'sl v

lJiP crearcd. *l*.*" clt"s ohiecr @irl be plceJ in s'.u€''ed 'gDPe .,

l.JI

A*ronse*te* X*s 6.,-Xxxc-) on 1o-Be*n ctcor ohj arrJ 'e.,ds &'n kt ft-' O

for^Beon png*u an) dso rsares ttrat Aar' a fu^ aa^""n at'ln)r'latv'lxt3

'"'f"- Y^ ,,, + r f,r ---n-o a*v,'zn.oJ req9Lw t'Ac$.'rlbervle+ hb{r6 the pT rnpcge fl'**

i'-" - U

I \--l

F^8^ut cyrades f ro** lQ'-Ba, dc.s ohJeq-

(ie.'**1,*ut}nrn dd "ant ,," &e PIe-'"'l io &e^d;p5eJ aoce)

;I

n*-$,r,{ c'* rser(,-) - {--Bro. clrx obj ' :

A."^g-,n/*^l serXx" C-l rn l*-k'n etav obi lo *,tt fle tccelvcd fu^ ')

l"lr^ & fc,tn?.afle k T*rg*n PaFt'+4 "',,.'uCd"l.t & F^^Pfle +6 'f.urKun fo4"""I

&,a,ns"n{r cott" val,Ja," L-')l&d.' tr^tfLt *'W#*Z

iPuo,,..r"rr# Enn< arc firttt iPuau

M^S^w Ar"nlbea\t.elaN ohj qnl cadt g.6lfe G,-,-,) a'nel,td o4 it -

fi $trlattr t*-vo-lt&uo, dy'ty t'1|'ds

Page 81: Struts Natraz Notes

i?,oltlzal-.

u6r b6r , che& bo x c$mfffient eo 6€nd rbdy W{ ahqd lt4l;.ate

+o S€xv €r( Onlg @her) *rtv lkrnS are 6elecj€d, ct*Er tDl 6e nc: m4pgf -fu:tarnct<t<"

- ,ri,, 6e Qt\med relofcd to tbese 6mf!'n.Att.

Under srr.nd,,n g he probtem .r€toFd to chctsbox, llsrboxcs oh;le tmrung o;rb Sers'<m sr"rr"l

Fnm9cao : -''\-'/ list bor 6f'olas 6toog do'ta toht" c'c'runl -d

.=, -

[r.B.on prupe*lc$ reblred lo checFbox I

\--, $gs6bo &op €d Fo'- Baq ' *ror roeanS *rca hou Sel edei st-erc ewo rha'9 h tbcg a"e

\-., rrol 6eEGed bX en! c.:.r in Srm pcge' 'Thj s prablern Tai Ses tohen 5arre'€ur6;rege

o - i€ bru.,rser or iodoc': '''-' i5 sutmited rrx.tlHpl€ irmeS rrorn sarl

Peg;srcrlfo'm 'jouc. (k'-Be" ct"tl)

(a4)c lass l?epstcr R.rq ex€Das Ado'q

tr rtenrt€d

Prbtii

tl1r--ft^n PYDTE n*<s

St.-'T .k^r ei

6ving ms i

SHnS erstJ l

Frbric void Sefxr x t-)e

(:l) a arrrrfrods

- - - - (au) .+ Jmer+P d

I (<mr5 arNartG]

Ptrbric sr,i"g I stnngll gctxxx(i

f

dara3sfr.q,,l< t

PIoco

fAn+"*euthJ

norc: A<sume *0,r btfi qy'Latrs 4€ Slutn

fio- &mc b@)5t4 t'oindo., '

ld, Ab ,Lc -'--+ rcplJleots

aol ?br ,C P regreseru'<

la'tt^ Ov9. ncf oE9

Otd4| ?v1

Flrrr; lal ihaltts " B rrrn"icA

a

ktrrBco^o etcrss o$

tY)S : mc.vri ed

Cf6f I '. 1*o. . uacle

\*,

\rrDadn

java' . orar-lc

Page 82: Struts Natraz Notes

i

-Ibe re 61 i1.,o afprooche o

&rrn-r/ Atlroach r ,.-

---r chang e th e', l'] !r

FomB ean gtope tt' I

V.lhrn Rnrn8e,an 6ccpe i6 "r€+act I 4a,66ry1 Serv ltr c*a'Ft ryo Foi''Mn etc'*s

6g okrrlg PYDblem'w

obiel}

Ca.d t

'Tfraf meOll!

gda-tlaa ta reso lt'e tf.re

^ Q"o"Y,i s^r" fo:.t^

fu'-&"".", APrtru. ., ' :,'n

' in 5r."aS-o-Bg'l n t

'i{*pii ' g6p= "rego,

Note:- Thrs

Mw tlqe

{e(u e,)

€o[u]t6n A

qbrc grobl'em

tnerl,od.

is not ,d;rer-dX

b,\ gldn@

ltf a Pt?viocrs '"?ttett' doro io ""fl

Slttd'l-lon' .

'

k.*"\ relrrest Yelar€d n ''*iirr'?aXe'

obt kt <c+rur L

closs ohi ft'r rcPes ri'

clasg

nawle ". )AV im6: rrlttc.rsLl: rurr

Page 83: Struts Natraz Notes

(worunS co irl', re6er(-'- ) tn Sesslo'' sr'ped F-t"Bun )

(,e se,t no1- 3deu4

ate rcr'x""*ln1

lisrbox Corn6rnc^'r6 in Seslcm gcorcd OY , ; ;

no need & gyerrid)n! nhjt fl'Rrh "c\ p)'oa fan w'rn

Fa..ns o? regret}'')

.lwc)on , *l+ff5'.'ttu&'Pegt rtj'v

ae19tng, S'**fu4*' 'q)

use.

si?u is fe*Le8r

voJd ""s.t(A.tutlornlnf)

4 troJ a

+"r-

{%}sror' isP( l--

futrn Beoo aors obi

t6essi6n Scofe )

,"t t(A.tr-lltn''d

is 'vcmznAed to

00s.)

Puutt e

g/rlttc

LE,

pdlclic glcttg Pgi"tt<krn errcods

{ 1 nr-B"oo Ptorr/r+4

$6an3 narre )

5hn ng rB ':

6rrtn1 crsl I i

frrbLia vold reser- C-' - )

h5 = bin€le j t*'

crsl I = ner,: $nog [tI ; ctrloJ =

1y15 =" Sin€le "(ut(lbl

hO Z{rrrte

5

Pr-Ur,ta vo;d 'ff'\lx S;

f -: :. (tc) ---, ane*eots

t:-c) r Lft,{radI Ctlg setNa'rnc&-)

fubtra Void fiXxx 6 )t _- _

L".. ."dJt

Asome tbAf borh . vE lcsrs are 8lu!'n il (acae

kYDt, r(,1 a) $n&rJ /

PegrstrF,ror .;ox o fF-tB*o ctt's )A.rt l

Tdn'

-? reser(-'-) Plc,{ed io FormBean cla55 e e rr e6 R^ tl,t"f teofl€s t b"eT o*o3

6erXxx 1-; rr€rbocto. -Tbio rrrbod, 16 od6;rrr/g d.^jcd la.\e io p,sde Anecl A'r"a"Far*

cla$5 and ir6 clek&rt im p'le menlol-l on d"oer oorhl ng '

----a uhen cre ove ide ln)s whd In d'rr FormBean alosS

defaur+ wl.ues fu n *u 5'-Bean P^F'dtj rhat

-4 -lhere

Tfrar! aYe

------+ 'frre

Srale

cl:rr*6aa.,

ls

lao

narne : fqq--l Cto)

t4c.rirar 6kdug ', fl rnar rieJ

Cout&S',

@

[--1 rrn'rte d

rs""pEg-ll.ner Prs I

lorure Prg l

rav i (zd )iDs i {+c3l€_

ft)ayricd

Yrte i

Page 84: Struts Natraz Notes

. -> urbi\e ptocinn logtct in re6erc-, -) , @e uaot lo knorr: rrxrch aQ!4)ls crbut

Currenl Affton a1c.sg \ orn4- nr rcqAresl f|,"r, use t\e ?a\arner<rrt "P tserl*, _; i_,ncrtd ' aod tD" crh &se .ma4ptn1 &jat +o eAu rnutl, dea;ts a55al

Cunlflt Acrgcrn cta{gs. Simltttg coe caln uj€

hYc1rrest 0E1e*

b garser rnolt der..i 15 ahau-r et-lr(nt wrre'r '

Forrn Vorraanons :-

'stlr{nn

#,e Forrn dora ia Carred F<nrnVatrdcutcm,

dd* as infrri- \f,drtes .oP hstness lo6i.s,

ocrkrn 4vali&ctl

u6e furrn

veqfurng rhe P"."r and

iS O\tr:drtr6 Ttcommded to

PefsltKnce loSics.

|.j1- chectcing coearher

toecrrhcf ernoll' id

rt4rtred Betdb ove tgPe'r

is harrlnX ,,@ sSrnbots

Forro Vali dcrrJ on

('r no l-

6r noh

lo6ic ond B'a5h€ss lqlic !

fuim dara 6llt be vctn6k'l 'errr..t oP rhe

9'r

--9

whar it rhe dirlQear,ce blcrr

In Forrn Vc^trdanorr logtc rhe

vbi

Bnxn

rotrc/

Clc{99 i C

usfinarng , gcaa-errds &Ye

gesrs tc.tnce lo6t c .

Javcr (lfba{'jPl;ccdictn

I

$ote in

in Setv[e-rs,"rsP

on{ erurr.rer in

_> uS€

-+ 1trr5r1tsr

code'Conres to c\ient Cbrury*,r oio&rr)exeftrthor) - c'-lcrng ur(r\ #im ff.ee '

?' Sclve1 6i de

-) u${ Jola code PVrreA

*--r \\,iS Cts\e \'e!ides

IJ

!,PT?J

&rnlc.r. \-J

.h SuSlnes5 logtc rtg.rifi qrtt be flenor*ti bq tcrklnl '[<rm&rfcr OS

In0{rF dcr.l-a.

cheddn? clxathzY

Fcrm rltrU tl ol4 o'l '

Checlo.hg "rdhuor not \5 Busine\A

UteYnqrne, ?onSCrXrrdb, crr"e fg9ed 6l ool is Caued

.J

Page 85: Struts Natraz Notes

srrurS APP6 [ W.,uomttcoHtts ;

1. clie$ 6ide e' Seive'l6 ide

yrcqlarra$c Fdrnyati&fi 6mg-.t o$e jo.v6, S(ri p ts

FomVart&.tlrn5

Voliddtu pl&gin

FrmYolidstldns&va tcle ih vallcol€ C-

' -) o

clo$5

--> place

.Ptrtnban

w Foflnvat idcrd ctn5

.-) use Va\ldak Pfag ih

.0-- varlclz*po logics I rc.leo ho"ing horh. -> Varldarcrr piu$io lrrppltes l+ + hrirrr -tr;

iouo#fo, jova&"tpt code .,

, ---t lxogranDe/f de*19p64 €xplict t Frrrn \attz,bdctn\,,

For btrc. bvmvolidofionj

+ 0o16 cticnl 6['le po1'6 yatt<t a]l cn s *Llps\''

5erv er aide ' W tt'e'e ts *e chan ce

bt"n- S"]l;"09'

.* -- ontil 9oruc,r $ae FrrrnVatidct'lcm3

' oroo ramali C

Iogics are & 'tQd I

Fs^nvaticlo$cm lo6ta

t%l.s.'

is notltng

,_/---' l,iolblnA toirh \hlidoJcn p\cg tn bu+*fd read6t'nole

+

ha- derlcrolve Fsrm Vati dc,-tl otts '

IoErcs to6etrht'"r'' berc'zen

increctseS

#HN.Y vound vi lx ,l

Cliclj-Si de and

4 o[*-Ui"n6 &'rPr codb

il

'LxeL;),t16''1' , "Po

'/ '

,4)ts| ralmd trlPs 6lw etie,'Jslii *f/

[ ( I.X.,,

Yali(krtioa\S

lDecucrr'se

phr" brh clio i side and (6vcrr slde Forn\aidaHn

g'vsv sr de F-t,Yaudotwn lo6rc is txeutlnX o"lt nl"t'

ave nor dsne, --This ls indr,rn+ea ler r yrrr'te fu use

Serrur

al+

\..'-? To peI ftcn rn gr v e\ Si{ e

{qrc irl rhe OVev r;dclen

krrn vatidarc'ns PtareA the

Vrrtichrre mul-rod oF fui

Jrvo Stnrs based

F<rrm:&ao cttsg .

Pt;lhttdettar

Page 86: Struts Natraz Notes

-t

D Potic

2) Prbtic

P.totUPe oP vo\ido.r€(.-, -) o'gtocr :-

AcnonErrors vati.iore (A,f-ltntt"g' rno{'Pir'$' $s-p1Pury""st

fubtr,-t Vaiidar< ([ci1o6flrapr"3 rro{Ping' flt*e5-'c'@p"tt

Dtd Po.r- i5 recorrnd d io use'

*" ) .---

*1,) \,vU

RrmVau{cHort

Fs,mpge

X3t Srurs aPPli arll oo

frnvandare c-,-) )n

Qegslt,r Fonn ' dova

rerdt.

Rrmsean elall

::

ltAric,oErorS validor€ ( Attf"l"looprn3 rrnppot I

!l

Io'P(" QcgttrcrRnrn: validafe C-'-)) ;

kttonErrors e1'r6 = nerc Ar.'n Etto6(1,

. :1,

HrrP&rvru&i't^elf

-+ Ag,on &rv rcr ccr'$ lati dafc (-,-) F- etrttl {ery-Le8} a5 Frrogean tiftcgcle mertsa ' -

+ trF \aridarc[r-) te]urn6 crn empq Agonr'rorplbl.Ui* to Ac-nan5e'wrrr iodrccrnnl Ytho.t ttBre gre no tqrn\alidcrrlorl c-1YCt6S d"^ &ficntervr<l *ransR"s thq Co+tt r'/

fu aeqrrcG,- ' - ' -) pttho{ @ Actto'''ctars to o€clrre rt'e &dineE c[4rx ' V

t,'to_-* vari&,re1-,-1 vrluvn A*lcnErrcrs cltrss o$e,r utrfi elemorrs incDcc'Hng * a,

tt€rre a're lsrmVari.lqfi<rn effofs rhen Actrnfotoq nan$&"s rfie CsnrtDl f0

inrr* Jsp F{e '

e{rdrs is corred inBuf R6e'--r ilat *ur rr Wc

to A'riod

Ae d&ssf' !n$mm 'inctt'i{lng

@ Paedote

in

&q,-t2:'

6l(0-I1"--'=-

ftrbtlccL

6tlu-r6

kep rbe

Ove'i Yide

in

flntgrarts$cto q'pl$ $erver 5i de

OfPlrdH oD '

Page 87: Struts Natraz Notes

',)

.J

j

)

J

fl n rre ser\,e{ Side

iP(ur',no-e =-= r'-r I

llc [r7uwd yqle) (iatr.cod( )

J | ,*.o-e. epols C '))

-./ ' n.

k11 ;n rle [Y'o1,'/ 4 rtrc '

PYD6ravrufic

[| ers"".e .

f-- voua arion

krgr}() ==0

A,,r{or',1-1.rsge f" -,P Va[.d^H o cnrct

t€rrs. add ( "et t ", nero

- --r-_? t+tqJi@r na'(

L.e'rrs. a'dd ("e.'ra']

3

S,o'pl"eors obj size "

r(raYn erTS i

$ //var"rao+et- ,-)

g l["*'

-N^^w..n" clrds objert ftfvu<r*s

oW {efete\-r T--Vadatt"n errot *vsc'ne o( eod" \/*e!a' en

(n.ssc.Ie-s c,.' b. Aort^r'*A 4*' fnwu! 4E fu spttnnq lfft-

adl 'the F'*^Vauatnon eal:ut *,"tofl' ia FoFfrq

in rngP'1g' PYoP'dq

N+,r.

+ tiun va'y::-:::-:\,u----t Form va$a,,n.,n sw mtxJa'

mq . an . eyr '= ulet nomc i s 'ce*tlred ta '1 is 'reoPsft 4 JmJ.rnd'eYt = U!sw"-;-=-L-

.,-.,_< ,

v"rrxhe 4;rt i' confunu'.l in #'"n esnfirah'

etrYcr ,

Sk -n

clatt

-aer.

#F^, Vaieo$q erftn ns 05

{wve gLYe thak Yhe aute

in S*',r - a^ kX

/-leai,on-mo4l't 4Y6

Zmessa6 e - .rtsc.rY.e s

zlstwn-anft6 7

iP( roxo,o,a :=n(u | | r.u.*a' ftryrbt) --- 0 II nossava' elAcrrsC" ))

nep y',tlonlletsc'i. (''-d. eod ' err") )'

t eYrss t2<( ) );

flgrn ,[rto.s cld.ss ohieq-

-rn I

A!, lonYaudauon e\YoK ' ]rnt+ot AetJ-tt''t^te

mU. P(l)d ' erY ,

El(?.8:-

[n-rarnera ="m7&e" )>

Page 88: Struts Natraz Notes

-> an orcfeved to odd' cticq <ide Qfowc'twttc {Utr- var;da<ra-rt tz s,r, oalllg[z

an A;pt tn l-- tu1, (eV,,*;o, a, J*-, kbl,, ""^&"'@Praedite n [r*e b$ cricnr-side, cnd.,6erver -srde pyo€rarrnfic gb,mvatracrnon lqir\ln 5n..6 opplico*on ' hlr rrnFe fure *req ^'$1qc.r aicre Farrnvarla c.fion, rqg;cs a6

v

€xe*hg -l$ tiho cli(fl,t -side R - vou.lanon s aye "ra

a"-",

g!rj,- xeep rFc pfeviocrg 6r-.*rfl 6rra,€o{,p-pv aapt)ca.' on -."q c".e"/ ri!ff*r)rya:- \^}(in Bt rourr.'3 javaScrrpt- code in Ferrn page and collb ogcr,Dsl oosubrar t

faqioor.isP , **_+*- t

)__ J tronu.

<br61 ; fi1.,"r 1

ahectd > .-tYz-y.\i (>t ldnsaote = :E vasct p t >

&.*tl- -UVorr aof. (&- ))' ll*'l +^ l',-

\ar un = &n. usgr aclYne ..Volrre jV"t Foa - fto, par<totr'zl , 'vltle )

,.{\d

i,

);

,tr-{,

f

f,r"r. dn+ galc lrro5varurl . -1--, \laIitalfsn lo6;'

iP [un . = '") ,["ry^r'./ Yute

{olat f "rr., ,rc,-. is nroral ttr"Utl

.ftm. uselrn.ne. &cqs c).:

re-lur^ 4^tu1]

'b'* Jt"L+eu e ll $"r clu- m"r'

t i!cr; \ral!-e a9- $* clan

Vav Vat'-- an.cnrncodek[o) i fltrl'u c

if(f t "r'=(s{t vor-a=1") 4( \ (var'=o+4,\ \'4r z=-ra') ){

o,.r. L* F,st c}rrr *,r, 5. an c.\Pba}*r-'Ji

F.n.u'#S. &cqs();yefux n -Pz.uu;

3l/*

3ll.o'iPI P,a ==ot

n"') /loyu'"t'"'t"

Page 89: Struts Natraz Notes

olert (" par3toord )s rrr.ndr rt"g" );

ftm.Patstrrod ' +o,-rllt,|))

'retu'rn &,st i

.\

s''& \latiJch.anr qye do!( )L iol''arnmrn a ?UX bral tk lliat<,r

Jtltn; vataorc11 9 J4&ript> -,

zlheol> J

f;:;:, ;;,.rnessqge vcn='mx'rrre"/z 4b'' .4c.'.r<u ' . ,, \ \')

' -,iVorraor.tttit )zh,trnl: ft,rrrr acfl*r:- re6istcv " a"'gtl^it =

:'Yerurt! -' "livalldafotttti5 ) > y' J

\l*.'no.t, P 4scd'^d t(Yt !o'ej \JJ- J

-J*--r

gr,tnntr luttvn

zhrmt ; fr,ct(tn p.opdt = "vftc.g' Volse =,, {.lse' lzelnr.r - P.rt.> -;

t/)

. q .-'. f nt,t',-< ,;riv n klbn) t b'tftn\J

@ **"s rhe Jdoaic,fi'" k'*.: "S'*: "i,t::t',n " ** ( nurcs :lufW *:

,, *:;;rn Lrx,r*a re'u-rns s-"J &{se 6,*i b. *\h"T*:' @^1 . ,:

-..-ft bvocr*trrurinoot"'

oncl kuorai @rn&to -*** t^ ::: :Hl*- ; il; ;' *'l :* - -n##,#;

3V^rrr [urrf &rrr). Lt'n'<n 4*o'tn' udLu'i' (a'l'(

U

$+-Ji il,rr. *tLuur' n d" in ile Valaarc(-'J oP F 'W rl^n

ln fl4rt"h''ia.v"

A#qE*r* t/t,ridofc (- ' - )

so p ('Qegi*a&r* '- u^'a^nGi")''fttr^ e{&as €rd : r€ru ArsnErrcrsL)''

Mut{

llaIt(JS't

c.[la^r-9fc YoYdaHa Lov'' *u, tn^

]llrnXvataorcQ @

Page 90: Struts Natraz Notes

l

criarL.r -sid e

o5'\2-lo lx

>>>>>>>>>>>>strutsAppwithserversidePrcgramaticFormValidations>>>>>>>>>>>>>>>1

345b7

8

1011

12t31415l6171819202'l22232425262728293031323334353637383940

a

4142434445464748495051525354555657585960616263646566676869707172

f'o3ro'c.r"c

{'v -Vnri

.lbqiL

---registerjsp___-<%@Eg!ib uri="httpi{{struts.ao;che.oro/taqs-htmt" pref ix="htmt',%><3q+4q!lF uri="ItplblIgls4p3gXeelqlass:bean" pretix="bean"%l-#y+aqr!!, u r,-..!lss4sggglap3-q!!ee4v!eg$ean" pretix=,'bean"%><:!IE!qs!! uri="IEpJ&gslEapggbee.gt]laqs:!9gjs,' pref ix=.'tos ic"%><html:html>

<head><script language="JavaScript'>

lunction myvalidate(f rm){

//read form datavar un=frm.usemame.valuejvar pwd=frm.passwofd,value;

//write clientside programatic lolm validation looici(un==,"') / required rule

.talert(.'user name is mandatory',);flm.username.focus0;return false;

)else /,/ fir6t char must be an alphabett

var val=un.charcodeAi(0); /,/gives asci value of first charif( t(vat>=65 && vat<=90) && i(vaF=gt && vat<=12211(

alert(,,First char must be an alphabef,l:frm.username.focus0;return false;

yna

)/etseif(pwdE=,,,,) // requied rute{

alert{"password is mandatory,,);frm.password.focus0; - 'retum false;

)frm.vflag.varue="true"; / to indicate that crient side varidations a.e donercturn true;

)/mwatidatec)</scripF

</head>

-<center> <h1> <bean;message key=',my.tiue" /><ht> </center>

<html:form action = "register', onsubmits"return rnwalidate(ihisl,,><bean :m€ssage key="my.use/'r><html:text property =,,username,l><nmr:errors propertlF'errt',D <b1><bean imessage key=,'my.pwd,'/><html:password pmperty =,,password,7><nrmt;errors propeaty=.,err2,'/> <br>

<html:submit><b-ean :meaaage kelE',my.btn.cap"/><thtnl:submit>

on*1frT?l#oo"n oroperty='ivrlas( vatue="ratse,.D

<logic:notEmpty name=,'msg. >

.. <b€an:mesaage key="my.res',/> <bean:write nams=,,msg., /><logic:notEmptlD

<br><bean:measage keF',my.foote/.D

</htrnl: html>

<web-app><servlet><aerylet-name>action</sorylet-name><serylet{lass>org.apache.struts.aclion.Actionssrvlet<serylet-class><init.param><param-name>confi g<param-name>

-.<pa ram-value>/WEB-lNF/strub-confi g.xml</palEm-value>

<init-param><load.on-startup>2<load-on€tartup>

</serylet>

i,l

_f,

Page 91: Struts Natraz Notes

73

!! <servtet-mapping>

!? <servtet-name>action<servlet_name>

19 <url.pattern>..do</url_pattern>// </servlet-maDDind>78 </web.app> .' "79

9798 # pr€sentation lables

.99 my.ti0e=<centerr<hi> Login page <hl><center>100 my.user= UserNamet01 my.pwd= password102 my.btn.cap=Loqin :103 my.res:Result ts104 mv,footer=(Acopv: copy ghts reserve d 2011_12

106 #form validation eror msds.107 my.un.err=username is re-quired

i!! fii:lll".#i:::#f;e mirst besin wittr an arphabet

; I I :.1;i:f"Y.:E$,i,1 ::ilJill.:,,:T;r., .*"112 eroF.footer=<font>

lll ;;;;;;;,--------ResisterFormiava----------------ll3 ifli:I;i';l:Xie'struts'aciion'*;

3l''oo9#f5:l:"F:r:jiq trl*El "-//Apache Softwar6 Fouri:,{iffi #'d:#il"":?lL1ixlil,i"",]i":*:.,":Tilurarion,.3//EN"84 <struts.config>

86 <form-beans>

tI <form-beanname=,,rfl,type=,,app.R€gisterForm,,r>88 <,/form.beans>8990 <action-mappings>

!1 <action path="/register" type_=,,app.RcgisterAction,, name=,,f, input_,,/registerjsp,.>tz <forward name=,,reiur piti=1;g;!bi$;;;r.-..* ..93 </action>

9! <action-mappings>

:: <message-resources pa rameteF',mtrfile',/>96 </struts-config>

,,t13 1u0". ",""" *"gisterForm extends ActionForm

private String username=.,raia,':private String passworA=,'hvd',i

public RegisterForm0

) System.out.prinfln(.'Registeform:o_paramconstructo/,);

public void setusername(St ing usemame)

SJstem.out.prinfl n("RegisteForm:setusemmec),,);nts.usemame = username;

. public String gstusemame0

120121122123124125126127728129130131132r33'134135136137't 38139140141142143144

i#iT.:""r,;:11"1"(,'RosisrerFom:serusername(,,);

public void setpassword(String pa3swod)

public String getpassword{)

+lf tmo.u.t printtn("RegisteIF orm:setpasswordc),,);

mF.password E passwotd;

t

Page 92: Struts Natraz Notes

a

145146147148149'150

t5t''152.t 53154155.t 561s7158159160161162163164165166167168169170171172173174175176171178!179

System.out.println("RegisterForm:setPasswordG)');return password;

)

public ActionErrors validate(ActionMapping mappin$HttpServletRequest req)(

System.out.println("RegisterForm:validate(-,.)");ActionErrors ers=new ActionErors();// read vflag valueString flag=req,getParameter("vflag"); / gives Cfient form validation logic execution statusit(f lag.equals("false"))t

System.out.println("server side form validatioI is going on,....");// wriie server side programatic form validation logic(required rule) 0ava code)if(username==null ll username.length()==0 ll usemame.equats(',,,))terrs,add("errl ",new ActionMessage("my.un.ef '));)

else // to check weather first char is alphabet 0r not(

// get First char from usernamechar fchaFusername.charAt{o);if(lCharacter.isUppercase(fchar) && tCharader.isLowerCase(fchar)){errs.add("errl",new ActionMessage(',my.un fchar.,));ltfir

)/elseif(password==null ll password.length0==0 ll p6swcrd.equats(""))t

errs.add("err2",new ActionMessage(,'my.pud.er/,));I

System.outprintln("erls obi size"+errs.size0);,Itfretum er!]s;

)/va lidateG,-))/class

Cla!a€s

?

EA

,

tu

t9:'

.i

4

9

8ever5;dg

ProXrorrs$c

fi:foVolilatl

Ioltc

4

r801811A2'r 83184185186187188189190191192193r94195196197198199200201202203204205206207208209210211212213214215

package app;import org,apache.struts.actiod.*;import layax.servlethttp.';import iavax.servlet*;

public class RegisterAction extends Action{

public RsgisterAction0t

System.outprintln("RegisterAction: 0-param constructod,);)

public AcUonForward execuie{ActionMapping mapping,ActionForm form,HttpseryletRequest roq,HttpservletResponse re$t

System.outprintln("RegisterAction:execute(.,-,-,-)',);Reg isterForm rf = (RegisterFormform;String user = rLgetusernamo();String pass = rf.getPassword();

if(user.equals("Sathya") && pass.equats("tech.,))(

req.setAttribute("msg",'\/alid Credentiab.,);

req.setAttribute("msg","lnV€lid Credenthls,,);

Srrurs ApP -PV

)else{

)

) \.lEg-J-N F

rt+s erf I'f

b,trp) l/tacrhosi: t$! I sh'Jlsv?- rv/ "girrciJr

regiStcr.isP

return mapping.fi ndForward("r€ulf,);

Page 93: Struts Natraz Notes

&$t( 9i&.

etY6 i

rf ( ft"6. ql,d6 t'4are " ) )

3

rJ&rh

J

ry- fopbyeexnot

5.0.P C &nv"rS,de -l*^v41ei:ir.vn is 6,tny -- -- . ');

Arzrtt1 *ruuvxz is &ne at lrettow(n,^frr, -ev)

€LolprlnS4

uai.J' t

6,"65'l*rpl'tau-iFt%,.* *dc qo3,'$wcr-5tde, &,n larrlnrlu

Slvch crn O5-tl.-)atL

--+ t h,.le Javag'lpr co"t'e vi"rgltirtl Ro;n 'g'l us"'ts

" ' ja p,',. ond lin\a *rot 0re t'r't' 'Bt,"fo7"^s'

.\

larraarer'j5 ( ;a 6tn..r9lPr '?v ?o@Y )

lunaron n5Varidare [P'rm)

- -' " ll taral co 2t*tttul.t a{Pn

Co de

- . ,., |i \

io Sepr*e

.-, Praa&n io &sq$le ' &rpr calt e^eaiitlci:i'hb

\--l -Ibots nenq , lnftrref or:rld[e ------r Seoiln V Qut) t Uut"n letxt --

\-/ A4iwSc,anHnt ---J ODls{He ' ' ,,. . -r.''

u - P, abolc sxpo

r

tJ

in rqlsEr'i5P

zblro r : brmt >

, zltrc(d >

Llginqt >

4hena >

l--tt= il *t',f l*'n1 ruTrl - - "

zrxscriPt> p)ele E{uble Jaud :itp r 'zl*og'riot z

<5clipl lar€urge . "tay.. Scr)pf' 3rc : u

Vatidorol ,jS" )

aJ prc$duj o.0ph

Page 94: Struts Natraz Notes

ottrrlgor> \

-+ grrur'5 1-x sltrl S{ppu€s rz.-ro fir.rrr-in plag ios to SirDelift tbe a$ivit;q q -prry"^,:"^r*_ 'r--/

(f variaorcx p\ugin , g;vtn tD pe,( k rro clird-srde onc ssnrr gde oeorr.rtn Fo^\a,ua"rrX

. @ Tres gtugrn -----------r gru.n tD d4dop to6arr 'h,r"l urlrc"gat. in 6b'uls otpn - \-/'v

-' Evtnd stnlr'5 ptrgt.r ls id.r,ri P,.l coirt ii6 plrr6ln clo.rs fioi- implan €ntes

orJ.o1r,che" 5rrr^16. 6ulon.Plr,3ln Cl) onllar rnrt Cor,&6r.re du:elgrn clul inst,^rf1 Q"J

h,. usin3 aplu6-tn> tcrg.

-tbese Varidalo{ ":!9-gf9re+;.r tcd \m: ole,,g*,

tJ

nrr+)en6t\ \)dqj€ \i'l}knge

btte

ini€tlor I

and eJc"" ' '

tloe ..ls P;r"'

W+ Vdudc'$dY

J'a t cP$ Vd$datsd plugio in sFrtrrs,,.cPE fto. sne*$.,its^ plg;n.ctorl{0n."rOu.sh+:ndsli

os s\uon bebar V"r,a"r-Prryr') J

{elug-in ctags lVa-e -- " or3 'a1rc.h€' strurs ' val tdalErt ' Vor"a*ft Pl$ Jn ' > "J

4.sel -prD6rt fr,ort"r, = '' prrt,nam.a" Vld..e:'f Uf-O-rnr/v*rCO. -.rcr l€3 . xtnl r '.]'

rtIla--r / uriee,rt*,'ltot"/r U

a[fl1Y;n' J

-+ \cr;ac,fc,r plugin can rDt be used cxr'ts;de rbe 81416 !'A arlr' S ' \-/I r ,n!de, J"rlcsr,'Onrcode a)

--+ va.ri dcrrtd pluSl n gllrt6 14 + PY{degr',ed Vo'l-'tlanv nrrzs tnoln3 9dj , :

1o prPzrm gervrrslder ctien,tsi&' SroVa\ldotlcn: 'Yt30ei-tl€t Y

, \-/

( Cut"r ar")

"g cuflffdns- vdl; da'kr'{

rL eS'

og o"3, qfa,-he' 6tn4t3'lnrd'pJ.or' EoaChzlts

l4+ Va.lJJdtur YrLtg

,l-3'\ *{"'r^t'6 'h" 'Pt-voua ^uca l1t"sf4 'l.,en

Cc) Cc,r,ldns 4,*Vtr'l",ft, fSl" ^

,1u,'4rc|x,' C-)

fu'*aa") o? rlee

Page 95: Struts Natraz Notes

2-'i .,-_, --l Tb use Vcllraofur Flut io tn Srrc4g a?p);colt crr) fbe F"r-Be-n elass rrru, f el1|endd

fr*n org.apohe- t rycG6 " vatidoftrr'Vauaaru Fo, q (c) (rt is Sulct<t,1 ag org, s?ac/he "sk..fi\>. A.+r-E, C.)2

dlr Wbtn Votidertcr pl(rt ln @;tl be *ry*ra aad attl & au;vatcd ,'n (tr..fs d+plt atb\.- :

..-- l3t n t&.r Aetidn&{vt€5 rcads Strutb Con P*gtrrsfj on Rre *ro ib ftro8ruz< S Vc.u aor.,r Pl"8i, '

\-' ThiS $**drt f,oon*, ei6e4 dutry Semrcn skart+ or d-d nt ttre d+tur'n'e^l 4

\!_ 6r'ttrS qpy6a}l*.

' \.-., whe'r A,6rc,n$.runr CorrS Vard.ftt-,J ol pre&ftned lualouforrn ,U (HH{,il)'\-- fhe Vatrdof,o{ duttn tnir\ be advaltd c,rrd oirt be Osed fr, f<n"Vot d.itto46.

\-/ Nore? 1ns Varrdare (-r -) of ,Aqro'F-. Ct) doe, nor ccnfci o lqtc fo ou vo]t V"rra"t"Plugltl

- trheve oJ the variaarec-,-) or \hldcotdfu- cc) cdnj.ring thjs lgic' so* -,,61- mak€

o&q Ntrn bean crorj €rrfcnd,,ng trtrr, waaona'EForrofc) to trse VaeXu-Pl{gin in

edr Ef,u$ Af0.

.'?Votr&'eC-'-)oPot'rpomkooclosgpenft"msSe'letrgfdegrogrart4fieEo-Va-r'Hoxc"ns'!.-. l-^.- +" rr" f."* r'r\e

trlncre oJ *,e \ a'r'aoret- -) 4 oul R^m&an gne't da$ corn'tains l"Xrc to p'&'q rL(

\-' t JJa,,dor.{ons d tsrrtr r}t enffi + VarH@tot'x"Efi:

Va'e"rt,' PIul in !4"'J de clo, otl r"'e lottnYalidalrrns '0 * ' 0

oVari&fi.- x-\ -hle '

- -* Vouaom - ,u1cs ',tml Gnrajns

1L', fr. i. *"fl1 nnl6 'l"rc a'd^6

' V {c imPren} dsotrice

-7 \7o!16$ cm 'rmt

-t

\*' h{.U,^g l"

\, +nd1 o^ ho.oY'4t /

va&r*aPQrn. li\'e Vol'd"-*t""Tu.,

il^?';; "o"'l 'L^ F^^Youw* foflcs a'tt a'oqtLo'ble '

*e co" $X.-"ttl"n )a.,tt, c't YrdefuneA \altlofianvilct

DporrtrE"'-t "r\Ln, 'js Frtn"^;

C.^sto-Va-U&f* zl.lu +o \hgd^*Pq*'

\*' -ff,.. * "vrog

yc,fiJoJ-c1 Ytrlcs t'dif. F*-B*- pmpo'tdzL'

'-' r"1o*-,f +- lo6rcr onJ deg.*rl cvroi rn563'

-z thq &for.rr efior rnsts 4 Varr'Jotr Tules orc 6iw"r d$ ar6trmerf! f"3 . -'i"l- tAE

C.,-or be ur.J -1"" "'l.rrtsolt fun cen|,tLruis h s"nnJflrT qrynop*t $ubrl fo arflutncils

n/.;t" ,o*"A'o'; VCIa'ra"Pl'4 tn n rlns

.". etfn\ otrl4ttlt/,'t-V^hlct.4

Page 96: Struts Natraz Notes

-:!

\J

enttt rffdr h i U\l

r.. i

r.rl€s,,,R(qn t€ Vat ddq-ruk{.tJftq pfb.

U

.

.,- r,.j :-r 1 I

Page 97: Struts Natraz Notes

i procedrre to use Validat6r Plog in to prfom

on StrojsAPpng ( relurred rcrre )

5P_.0 :- keep Jsr 6r-rur$ atplicor;c'n read5

sEp@ :- GrESure vctli dalz'l Pl&B in ftlPued

s$rc{E oP <srrGt6 -c('nPi0 > r'$

ln stru16- cPg ' xmt

D€c I ar e.fiY e brmvat idati ctrs&cver6ide

plu0in

5l-a2

clcrs.S in Strerc cPg B'rc crs fie l45r-

!-Peflj = "tari,riameO'

-O t' pl.rce v&ridct,{ - rures , xm I h e in

Sea'r-lr, lq 6ha}5 slroNorE:-

. ,.rt :1.

CoInme/u s oe larrdafio -T(les 'xnr''}"' i: r''

rtre obow pyDperriei hre inl 6rn*s ccrnfrgt rofic'n B're

parara €tcr ='rogffre "/>

l>

Voiidcr,tirt Fsrn clHv qnd

<plrrg-in clasoNoyne = org ' oEcbe ' 5wor5 '' verriderriivr " VariAtrtnPl('gro "

d6er - P.oPe{tu

4letq-in>

\ferlue = " /lEo-rnrf y61111fogr{ 'rulee'

xnl I

frYa'xxr Irrdidontn'xtn) " /2

inltaUofio4 . ,

Ne &n &rbe-r obve 664g Prom 5x4'9 -cPg ' xrnl Pile

5hur6 -blcrnK -1.J. 6 . Waa gl e exrr&eti{"o

&A$l- c?t tle PiDPer+ic B,u hc'tng

hlEB-rNF +der

&fuob efidr

€'rr.'r5 ' ft4r&Jlr d = '[ Cij ia€rrrrrS' rninlerrgr\ = tOJ

zpluE -in

Gorl,.t 5 if.,ese

8t+ -O:- eong6grs

Deftrur t e}r(Jr rh6sc{ ge$

reyrlve d

otcrss i6 e{Endlhg

VclIdaJ( (,-,-)

mpssa4es" ?n+-zlq

rtrggle. ( Nre-rn e/crrsseo 4ra.t )prD;xr He9

Vatidot-c'f$ snu,t

m53s fto- rhe

Zrbesscrg e -reSo('rces

rnoLe Sur€ *nt Formgeon

ib shrs&td no t- Canrcr,ning

:3s

Page 98: Struts Natraz Notes

Qegi ettr:form . Javo

Pocrage app:

imrxrr t org ' aFrthe ' 6lTuJ6' vatrddf"( ' x;\,

JUUo

C\-t

3

ft.tD i c cl&s 6 Re6 otcr Fcr rn

tL

err€nd s , t, -VarraarqflFqtn?,

3rr. lrl' -: li

- 1 t j .

&vac -d. . :Pqishcr,tc Fr;r,i;i4va ,, , , 1, , hi. , .,ri:

139.'- oaa varrdaiHtr)ltrrol,,,ip ,14gsr.'pnF ,,-SU*r F EeSifuTt :t9++J\z5.y4eL <t

FtrrmBeon' " p,ii;*ttritg ;r

ln Vqlid ell c'v) - .\rn t

l, -

r') :'' /.:,'

i i,, j {1't'.'ti

4lSPld >

zhrldF,rDf&hd = "

latgA - ii_'r L.1:rr r. !,

1r,l ',': , -,:',

in PrDprri€,s gte to s&0plg

'(zrt-rl>';

" d*oda =."6g1ap66"i1 -,

4kt(1 -,

4fqm,Ll1r:lJ'me*z

z[Furr' - vo.udoHch 7

odd user de*oed mfsscqeS

fr9alrlt Elrorrrtssr.$q

in rns8re' froR"h'el

, * q*-nt*a mq6 g4prtn{ or€.;.ru.(rn -- ).sqn ggs,r n&rn€wu.Pols :lpg'in FrrSc$ard"r: '

t..4,1*i;'vql"qi{Y:i

-t

IJ

i_/

Page 99: Struts Natraz Notes

*re err.f,l 10636,

6kf.O1-

--,r 94plie$ {o} vatues &

6KpO:- ConPigure i6lf Pate

in 5h&16 - Cfu ' rrn I

l6$iun - {n@oing6 ttd{e =

" oP? ' Qeg isret A*rcrn " nafr€ ="rP "

i.,g"^r = t'/t

giorco..;5p "

ropind

AHc."r

role

c lass

"/ rsittel

r}e ing;r Pc!9 e{n

: @-o

n9

/htrnl "

grrctrS I7

139.,- Tost rhe 69PrrarficnrJ.

olth vcdidd'trrl Ptug-ln *eNoTE:- obite too[rn3 L)

&re S&mt 96 fiorrn&on fnoPriel '

lqiccdnorneo oF "generard G!d"Hft,#

6o coe con use Fctrrn Bean

Zhtynl: e{rofs > tad disela1FO

Form Csmparpnan .

in Regtster'jsP

<hrrnl : Por m octisn t "Yqisrcr " >

LSgin uge{ n&rne : zhtrll:Ler'E ProPerru ="oser rprr€ "/>

bgtn pass ocnd I Z.btm\ :, possuxr d P'atrtt z"Frrsq.brd " / >

hc"t us€lDom€,/ ftrssL@rds

the loglcolnaroes o(

R" $e qtove 3;e6 based

t6a _ 160 ____+

.YYX -)$a

_-) deRr<

a'?-3 ------r de-lar('

pro p(" ry nom€ 5 in PoPer Q crltrjtt'e

yo,;3a1'1a6arr6{ msgs [d;fi fts?ett lo tlte

{b}m} : errots

4html;-tlYcrrs

c(Yt plmbtan frn P?r 13 narnes and als6

QvrmVotldaflon 91r(r(5

13 tPPer€d Pag€

b?

fQs.iliang.

c(S

z^ttr ' Vtt\ "

lknuxrd nome:

elaqtrnz

zllftlBh - rrnppir,gs z

add zhtn''r:error6Jz

in rtgisrc"r'jsP

47e la6tib ---

prDftrru =

i+* &mplele example Ir -r: (*r,nQ))

Page 100: Struts Natraz Notes

Pey'qruor Dlretroq gtnror4,a t

Srrcrc,+pp - 9y

^ ftnoo9rru+gj Colt5 Varidsk [-,- ) orr q/r

q{e,gl1ss volrdd}r (-, -)*r--

\,

U

€e0 rsk rRrirn ; liav q

anIF------+ x. c lc{s S

* '-' ) r-

1. ;, i .':',:-i3; r ',

FormBon clccs

cdi ll exe&llc

L---- .,rtr(ri)

Vdl tiafira , xm IVdfda+ad _y(le$

Gr6. xrnl

->ebsse s

'xrnl

6rrure - CPU ."-t

6*p:// ruarhosr : eozo/ Srr..r6A?p -w f l,t6re rara jsp ;

F,oo oP Fierdicrn h| h t e toorti"rg ,orrlr Vot"lottrv

,! 1

i'

Plu{dl . ,

U(ic

. VpllCar.orC-r-) Wtrrrne Artu"Eirsrs cl&rS

clas6 Oaie* i6 eme 13

Pdts?s rhe Crnahntl t0

ohjef , SrncA nor hebtatJe rhe

.,, :.'';i

F.J(tE

ltrro

iF

0tk'rtoise hMru1

:!'_'.':.: i,...

('',

a

NE8-IN F

t Qcg;sy1folt aa. jav amU Bte . profretrxcs

!/

o

€l nuionf,rntr6

O ' g'pelcte$s votldi$ur(-r-) aeio.rea \aldaraplugin o^i"'de"r''#u"t'fir-r;ni!#;1*O

on FrrrnBean6 Fopcrr,t€g da basert ; tr.'. ^a,nelar'J*i"'ilu

,n"*,,.d*:-:\oA^ Oh-t€ . rrnrtrrs pyfiis s vatr?arw _ruteg . trrnl 8,. e,,,t' also Le esel ,

_i-.\r_i:"ri 1- 1j_ rt'

Page 101: Struts Natraz Notes

\2 Procofu' e h uae Variaorur p1.g-1r', ft,v grslt -srde Forvn varidolar6 '

6ltp -r "

Ferarm dll lte oc-HvrHeS ft}rt ore rre4ars 6 R , 6erue" -s i<l e ftrrrnwrdanoog .

keep gn(rr6 App _ Dv o{prico}loni ta QeaAg

\_/ 6ltp-E: tclcl ftrut.,ing actcliHonatl ltneE in ktrr, page

in rtgisrrr.jsp

LL@,tugtib trli =

\,/

\-, ztt'' ; e.flm ech*on =ttrt6t51-t1,, ons,.b-it = ""e*. rn -t#il;': :*\_, zhrmt : javascrip l- ftrmnom€ __r',t ?

,, /,

---.\-/ -I,,,.-in ln c,ompraF JavaStrrpr eode

florE:- /hh'l:iava&rlPt > rnore$ Yau dc*'n plrrg-in to gerDcrar

A'xed ocrr d

reldr.d l-o lctiddrcrl rut€s in F:rmP&t€'

ltus C0de Csnlrtlno one - Dy'nomj c ior':o,cof pl

kon lo6cc,t name og CR {m ) rire \rouaareRP (h- )

f.rn.rr- l"r'tng not' vafidose'frlo

q.- r.ohre uo{vio$ t'irh vdr/'dqnfl flq-tn

&l'msean \ogl@r'oorne

I,*o atn @e rncl[e &nw-stde faoaua"rctf

lqi,s crre exor*t nX crn[ ohn clrtr* -6jde &nvopAlltnons otte not elatrel

''., Ei *.a 6ne oJdrrlcrncrl Pte'g lo &",vcr -5lde r inlicatr * urc"ner c]tn] -si&

\- RrmVat&ncrn3 &'.,.g clarne (o) not &rne and alL:toa

dil S{,orclors vo-udorc (*,-) luar d rn th* fia3*F**a*rp.r-

.j SIQ-I:' Keep Si{u15ATp -DV reofu

*, St!p-n:' crcl.l frrlo(lriDg (ode io firmpage b 8ef Pl4$ indlcaing af"+fl

F"rnnvafidafms &"tr dtgle Co{) not

'-r-t*f.rtfu,utef l-o

in rgtstor rlsP

Page 102: Struts Natraz Notes

z htitr I 7

ahoad >

<sc$pt long-toge =" iovascvlg+' ./ z

n-{Lncdcrn rrgvalUdarc ( ftm)

vftr Pr,c,g =voridoreRe (k ) lRro..vPtog . Yalrre = "yq"

.,.

i.lt(*atq *lag )

3

4Sc'ript >

rlteaazmuvaaddj.f Ctlut )

ztrro) : Qrrm octlon =q rr3tdruf ' an$'fnt 1 : lr€tarn

4hrol :ia;aso( Pt {*'"rb-u ..-"tP' l'

t

6rq-s 1' cdrl \o!ddrec-,-) @ - RtrmBean cl&rs

bteA 6" "91"$ " ' ttnt rndiccres cutn"t -$de

in Qegrsrcrfum'Javc'

AtrtooErors Vdxdoi€{AtrmYhpotog rrnpplng,t H6R.f.+ )

F$ltc

{

Strtns

AelonErrort

iF ( vstrrr"s01

ilP"{+"rns€rr

3

" wfuln5t

/l*d Ptc'g v^t ''c

11skrtus : ret'SelP&Yorngtu f"V€lc'"J " );

S'o' n (vsttrt'l) ;

e1.f =r&.p ArranErrars( ) i

. e+or i (' no " ) ) /l rfr" c.be,,r - s de

Sarvtrr 5l de \dLudafid Plug-in

= S(l',et.Voli&J-f- (mc<,etnt .yf('/\ i

erf ?

\bxdoJonr e\€ I'u5t ctrt€

bc.le d ftr-Va0'LU6)

Page 103: Struts Natraz Notes

t^li'.le btorttnt ('itb

6buld be Qossed

sboutd be fxlss€A

po1,.rrtf"S pir,t OnA

T(tl€g,

0rbe'Y

Rr.

vt4rjnd lo Jut - comPlett

repi.red fo s(i?Pl b ln{urs

ccrrnplcfc rhe etrur msg

rhe [o] vor'.es oP

arqomcrlrs ! t'Lv L".J '-

€fiaf ro8 3

vtg-r{CC = btse

argumenl

be lbtzcd dn

[vesocvzc krnd le ) ;

Voudoror p\-tn lofid"rhrt

\oti&rHcrn. rm l

&om

P-"t

tsecor.s e {o} '-> ta

{r3 f '}--- o'e

to

H:" urninlengrb"

.-) ApplgiDg 've+rrte d , voinleng rh

-lbe Corrplerc error ms $ i 6 : User no#e Can rrr If

be". [03 iS jasr reyl'ed io Cornple]e errcrff€,

But [o] is v"p*ved lo brrplclc e-rrcrtrDss s and

S Po{s l0} - volqc FYorn grupr',rr'es - fhe ona

{r! -vanre From Vol,'dofion 'xrot frr€

rule$ ; o

ule{nom€

errs{ msfl

t0 Valld6for rtr-ln \b0da'tlc,n)ogrr

' paDpernl i n \hfi dc,$sn ' t"tq l

\andoffi tult erro, m83 i5 error6 ' roioteng rh = lo! con noi be lessrtrr

fJ! charaxx'rs

lessrban s clovol<n(

clso cs rbe inPc'r Veue c+ &'r'

e'f f.d 1f)6 I '

ZBerd PToperrj =" user nom€ n depeorfs =

' re$d rcd r 74;n1dng rb 7

L&{50

largt p6,1p6 -"rnlnl€ngfi q

UtU

T**-*'tno'"-_ &"retttS 1r! rar"c "J-Qr mlo\eogth ya te

stqPtg E,hr.ngrl,

- Vanrdble Va& e 4,* *nt co;rr bc ured

dtl {rl voLue

lYQ.t >

llhe tct>

hlblle Nort4$3

thor shurra be

L\lhtn rrrrtHPle

c.re looked fo

Yutes 1"11c,ttd

t^Jlrb rotnltngrb, rrwrltrqfo

ured lo PasS [l! -varle

\d!Jd&t{r <I$ &re aPtied

Pc$S Srrne votllc f.4

gficr{ msg6 thtn Lr*e

/ii

va.(Jcldfdr Yu[eJ fie v6da&'e flo,'rff

ftu'-' r)anh wlrh nrlt;f6rag"

t ryarYumbean W1t\'drl

[n ] eurgrrnenl c'P thele

L corX{n> ) rorrh sut Efe.r'ql'y

kel ="ry.un" lz

=' $ fvot : minbngrb ]hdrorcj rtnt )svorue sharrd rp1

zvcrr-name >minl.ogrb rlu*-no-Jl*t* P;e

tVar -\laluc > S zlVu-Vubte 2

Page 104: Struts Natraz Notes

r(,ttnorrr e (flrg? ok"rn ) rhar lt Otr X 0 '

narhe in clYg zn7 YeW rbe bQlua

ofie.r uolse ut need lo

Vaxd4tlcrrl'xml f,}e

6N!"ttX

ZarSa>,-

\J

Amrgrog recy.urPd, rrrulenSrb vari&d-z^ Yul€s cfo passurerd ltxmBean ***' .,t

ln Vouiialao . xm I oP Slftr6fuP - Ov 40p n

(F;erd pntpe'ftl ="Frscrr'rd " {lpnag ="'egtdrcd, rrnxtcng$n> \i

3atff@ rnm€:*re?triwd" 1..g="rrr{'Fos6'/> n 8t4'P1le5 fot u'tur'. oP

Ye*Itd rult rns$ enr4'J

la\go narne =",'ox ttngrh'' kq a"mg:Par 61"'' 17 --:t4lrcs $o! wrrre 4 ;r.r-,r lcng f,) rule rn'q ercr/

$ppu., t3l (<a.€t rnme = "rnax leng 6 " keu =" $ f va': rnnn tswh3" 4sq17a =u fatse,,/7 |tr-/

W:rle o{ ) lvat >

\ zvcn - Darne , rrnx leng tb y'vc't-mmQ' t-,r"rMh.0 $ I

rnl&ra vnlci a:vr.,u'.vil-l;.te.> E zlyar-v<'bte> (.r-lefrat /nsa \* 4vo,

4 Aeta \,LlPa'^'

\-7

, '\--l

*) Snce tlc l+-Pules oF Valld&fal plugrn o'€ rl:t df d! su88cre(-r fttt Qec.t"tntd -

plrmreau&ntng ib i5 ars:tr-U6 YecerrnmeDded lD use tbem olert'g cotdr i

''Jc {'rmvar"da}tdn logl(8

that me@ns use borh progrc'rrc'ric { Ogtl"'ot{vu apgruche6 togetkX Y

ih vcerJHr'e sconalio Ru,n fiormVaodc*lorrs ' ' ';'Iho'e orc tlree aproaches 4- *'s ' ' C

cO usin3 rrrdK Vord&r./t tule : zflanat>'17

O(g C"l,ng gr{er.Vottdorc br-) fu* VoLlchl((;,-) oF Ca't Fr'tBeot cl6s adogC

\btid&kl Pl{€h ge/nero}ed iavc.ScrlPt {t*- g"- "cr,e

icrtc5cT rgh jQ*rf ^ cf €rrmPa$e t zffilvoc'th-&, \r

@ MdtnS cssrurn Votdrtut ru\e b y6udatut glq Jn '" tA0uuh'"22 \,

on3

f.(l e

Page 105: Struts Natraz Notes

-,Approorh l: rrrdk Vo_Ldoff{

Ib i5 c^ pe Oe Ane d Va! dafct{ TuleUI

d^nt allrrrret" to keeP cus't.nni

\o-trdcrllon tcXice ln rhe €"- 4 Pe6ouEnp"e*t-trm.

0l', giv.o rgdert exFg6icm

-i lh€ Oefu4rt elftn rnss uP foS Pule 16 ' eTr0r6 . lnv,orred =[o] is lnvrufeal

-) ule

e{rrrl

u5e

is

Cao use

rneJ3af e

4116g > rag oF Vol'&fion'xm )

rhe valfdeb{ Tule oe

Bre m conffgure cwwm

ir ,4ri

*) owldir,S

dEerd mpdy ="uselname u dePendg = " :e1n) red rrtcrsk'r >

4ryA kg'"my-un' l> *> StroPties emn crcssag€

mg-un = Lo$n uiernarn€

fng.rnsK'Yns3 ' lbtr'norne mulr

Vd-lida^ho{ Ptugln ureBeffsoLt

ttu 5 t,hir re rncrun I trrrb fi'tc"sv-rvaudafut rute ' gecorrae

irfcrnPre+c efl('{ mesgage '

req,trirtd ) mosF rule q', LlseryTlorne WW{tAi

in \toUdcrHcrn ,xrn I

*P.r roolr rutg

ry' ktu="mJ,mtsk.-sg',/t

<va\ > hot gogas*tonba-red

$rnval"rdoHon lqicrr,4k -t<.r te

\r'tn al-0oros onty a+Loilnaag.

in rng Bre . poperhe s

hatte otg afha zurnaal'J

Page 106: Struts Natraz Notes

--7;t t,, lhnr alros ool5 alphab+s (or; orlu dig'r6.

ZVAY- oorne > n-nsk zlvat-noYne >

Regule"Exfxession & to ono,r rdnlrnl'&n 5 and. rrnx

+ Refn'ter Errresoion

@ (wr >

Auar>

l\ar >

ZV&1-r[rne >

Zvar -V alueT

Avu'

Fo$tef ErOrcs6ico ftah , Auu06 Le{o

NC'TEi'ffi ,un or+','r gdnta hccd ve ft'rrnce

Tegexg . U:rt oP DvD

l;p;6rion$ dirh roabk 1ul€'.-

O We ca.,'t u)ri te vdtidoh'on logie b4

[.houng coeoter F4ss t'o{d and "

ig not Possi6\e @ifi roas L vLrte)'

@ 169 valida$on la6i' is Speo,k ta

o? l5 obhaE&e.{

fir, rrore $onx derairs dba-tt PeJolct Ex PresSion

'.;

rncrlHple 'f*- beon PYo Pe{htg do}a '

r.at lrng cr not$ v"d o((tii \ i zir,g

{eqge Pcsscootd

orr F- kq Ptoyat3.

Iqtes): , r.,.i i,

r- @ rncots rtrl€ rebrcd JavaScript i5 *L exeafinS Pu pxssuro{d hnd oP

-' --T6 ov&&me rbese proble'ns use oprped@ '

--

<vor -voroe> ^lryzA-'l "$ [^ lo-rJ r f zf vot-v"ue >

zlxtx>

og

L\&t >

4Y&r -rnYne " r*aP zf Yar -name >

z\a{-!a\ue> ^[a-zA-.] {s.,ro} $ z-lvat"tave>

RquttrExpcsslon to olloQ orle or rtrc chdrac t(Y 3 e'csPt otphabers

rrn6l. zlvar -rrarne>

A I; a-zA -z] + f ^lvat-varre >

'Lregaton

ou 4u*to1 '',otafior)

d rDdre aPhc'bcrS in

zvq>zverr - nan e > mct5 rz- z-lvar -naro e >

4ver-varue> n (La-"1 to-'l) 4$ 4lvc"'vat't>

4var >

Page 107: Struts Natraz Notes

Affltoocb e l-

-+ l5i6 064rrooch e i d VerX g@d

ForrnBean fryupelli {$ clda . Aod

uirhin onc 0r-pg. / *rg*I.)

Erorrpte Apdi4flon t-

SlcP-J :- keep 6ft4 A?p - Dv

nPl&re ft€ brlo.Dhg

flqtste Fonr., 'iavo,

:

_

vPtag

logi c h"s e ct cno rry_r ll,FJe

Fa{ nN ati / c}r-leii t o6l c

'b .t itre .Io'ival;1166;

atlocos. to YeubealgO

alc!39 .

6le0 -! i-

!n

ptd

af?ricalrdn i^ax (+p.: g6o"r.)

Farr,Variabtlon logrc in *>e validalet ) crP ftq\fuDdctt'_

,

'.;. l

Rrhic Ar*oBrurs

f

llolidalc ( A.tr.'ll"p "3,

votuel/.ra

6r"'.'3

ACH^EtrctrS

iP( vsre*"ts .

f/lrt'9,.s

0-rrS = Supe-r . val ;dore (rrnprn$ I x") I

lr^ltte $ve'r side -fi"- varidrHon tryr. (Pogtr*. )

vsta-tas = ,,po,,.Setft tattte/€t C''W% ") ;

8rS = rp1s Ac+rcoErrc'rs1) j '

etpag g'no" ) ) ilr,ht., di€nr 5J de -FT m vari&sloos crYe rct &'ne '

t,il lo cbe* r*ather

iFf e,rs.sirc

.{Jei D ornc ar,J

t) == o)i

if fuserna.ne , leng$ C)l =0L rr'

errs.add ( posur'ra ''-

, Tur? I

Jiln

pors,otq' lengrht) )

(firr flcl..l'{6 rsage f"m6.unft d. *g ))f

&rver sic'le Vcrlrddfof PL€rn baetl &no \bite{ ans

J

O

r)

!i

\,

Q\.,

rr'ePiog, l-l trr$"ur.tP.+. "t n.4)

Page 108: Struts Natraz Notes

IZ6crlPt lOrguo3e =

" ftv61$-rip1'' 7

P..nctr6'n tqlVorao*c (ft*)t e\ - /r o \. ll.r-,r.r-r,,t nLqin fr,rctrled +"*d-

va{ Ploq= rtaudoreRp(fr")i llvarraorct plqrn Sn

o

^ "erug

' value =" Jes" 'i /ii'd;cfs clictd Sidc valjdallons o*|rrn.

ff(-Frq== tue)

{ "n.)' ,'*,. clrrr 5{de Srm varidc*loD lqrc (nFBBs

lho.t.or-teoltax "*t c'"t t'cstnotd rs h'+1S h

3refehJrn eotS i

j flvoria'r.1-, -1

g3-t:- rf,nkc €.rre *sr {orrootng

re{i6rcr'isP.

3ll*

3\t*rehrYn hax"

J /lmgvor.'ran t- )/ f3ttiPr

\

iF( Prro.qeroer e'vartLc' lcn5th l' = ft-' Pqesod{d' vatur' lcngth /

laogfl,aletf (" UiOnAl{e AnA gesrer el mug{ nouE ri(lr'rE 'Y!''

*,n. ccrrnamr' lxr*Ll:ftog = -[+ra;

variddiqo tognc is #e"e in rogValldale (-'-) 4

Fo T,rttE*ie5 gre

\-/ A\aeal>

.+ tf,nKe suYe tB* rhe -latco",g msg is ad&d

in mgPile . pYbpuhes

mg, unftr,td ' tns$ : trstr n orn( onJ passuerd m*t !..rr

Page 109: Struts Natraz Notes

\-/

\-/

NslE:.

Crr56e 5

b,sea

Tre

ot

dn

Approach o ( odd 6ru*- Volidaloy ysle b Valic{atot

Cu6rom rol e

6ne sY( 5

odded fo

a?Pn' tb

\hff dafEJ

qs€d rhe

to d8nroP

lnvit 3in

!./

\-/i

lqlc.

pocedrc to &l,etog ond crre

*1:l' m"roe

hrm \hridarlao

Java cl&s6

QePP<t

. ,'.:r' !

',tgya

Vet idolot

ofrl o{c

i..t.: I ,ql'.tJ ..,.r_.! .. ..,

i. ' 1ij.-"-d ]+- leirjir:ran,",;:- i

-- ."l.

l?-la- leptu6 rn ) 'r -

can be fiptt60te f",rr.rBec.n

this cqs krm nr-te

Ytlle ilr) V44idcrr rptgtn '. -

c.iava code b'sed Servi;;

0{ede?med

ff: a ] :: il

Page 110: Struts Natraz Notes

.t

9:1t" Qdd <sm.c-homs > \ltb\ cororoorrS-uo,,-aeitrr;Jo, '9re

Vcruab Ie. oA oddJ hfitaf -,,a.,?+ras, aod . Comprte , the

6r({)-IIl: 6nBguve C&$Dm Vdtid4{-.^

in \hlidato{ - r&le6'

I

lh Val rddtdr - rurc5 ' xrn \Tdlt

x#rl

{Brrn -vati&}ton >

{$to}ol >

zvotrdaEn rgrne = ctrtEgj ' tulelr

clclrs no-rne

eafua fuaato+cv g

S)+-S''

rrrs3 =" mots . cltsttate t'J? keg" haAg aeF"4^t grrdt ffP$ate

Derelop vrrrchrcfirstQrrre.is $re hrtts 0erntnpt codQ

va,raoreGst Qle '$ th]B-rllrf cr"ttt)

$ltxt ont

closg nome =' B;tQt're

rncthoA =

ntrhatPoravns

0r$.afr3(he ' @rrrn6ng ' v4trdc'dr' Voriaart''rA*tm

0rg 'dfalhe ' cornrnodS ' uott-or ' fi'eu'

org.apolhe' amtrs' acHc'n ' AtlionflcasaSej

Cng.anach e ' Cmrurrs ' V4l'&trtd 'Vaf"bn'r '

Jovo*. ;"'nnr ' fig' llttl$emrPoaPrT"

" wrraor" Gr Pt't e n"thrd

= "Java.

I

lt cL^$sPATH €bYironmen'l-

o&)ve &,lce Sl-e '

rar6. Obfir '

nPfur SpumenraS- kna"t* rll l1[ t]

Page 111: Struts Natraz Notes

>>>>>>>>>>Struts App by using all tfie 3 approaches to mix up our programatic form validaton logica wilhValidator plugin DeclaEllve logica >>>>

1

2

45678I

t011121314t5t61718i920212223u2526272829303t8233

353637383940

<%(OEg!!! uri="http://struts.apache.orq/bos-htnl" prsfi x="htnt.%><:6@s!!! uri="!Epl9!4ltsap3g&4rs&sgE9a!'. prefi x='.bean,'%><%@g!!! uri=' lllplEggts4pAgE!9lglbgc&gls" prefi x=.'loglc,'oi6>

<htnl><head><script languagF'Javascripf '>

function myvalidate(frm)(

var flag=validatERflfrm); /Validator plugin generated functionfrm.vflag.value='yes"; r/ indicatos clientside vatidations are doneif(flag==t;ue)

//write Client side form validation togic(programatic)// to check weather usemame and password is having same length ot not

ii(irm.usemame.value.lengift l=irm.password.vaiue.iengtll){alert("usemame and password must have same length',);frm.use.name.tocusoiflag=fal'o;ynt

yntlstum flag;

Yrfunction</scaipt>

<head><htnl:fom action s "r€gistef' onsubmit=.,rotu.n myvalidats(this)"><htnl:iavascript f onnNamo="rf 'f,Logln u3emamo<hlinl:l$rt prFbrbF"usemamsiD<htnt:aiibra Df0it5iue.'&gtdSlfibhit$lr ' ,',

Logh_parEwod<htfll:passuroKl pioperty = ..passwotd.'r><htrtl:onoB p?opertyF"passwod,,F<bp

<htnl:hiddon property="vllag" value="no"/><htnl:submit value="Login'/>

<htnl:fom>

<logic;no€mpty neme="msg" >Result b: <bean:write name=.,msg.' f>

<logic:notEmp{y>

4243114546474849505t5253at555657

59606t6263646566676869707l72

41 -..--*-____web.xnl___.____.-_<web.app><80rvleF<aerylet name>aclion<aoavlet-name><aerulet-class>6rg,apachesbub.action.Actionservlet<servlet+lass><init-pal"m><param-name>config<paiam-name><param-value>/WEBJNF/shuls-confi g.xml<param-value>

<init-param><load{n€tartup>z<load-on€tarttp>

<serylet>

<selvlet-rnapping><aewlet-nam9>action<servlet-name><ud-pattern>*.xtz<ud.pafi em>

</serylet-mapping></webapp>

58 *---.-----.struts-config.xml..<IDOCTYPE strut8-confi g pUBLtC

".r'/Apache Softwari founA.UonltOfO Struts Configuradon 1.3//EN,:"htlp:/istruls.aoache.om '>

<9buts{onfig><orm-beans>

<formtean name='rP Upe=.app.negisterForm"r><rform-beane><action-mapping3>

<action -path="rrc9istei' typoJ'app.Registe.Acton'. name=,.rf, inpuH.rr€glsbrjsC'>

<orward name="rcsulf. paih=./]egisterjsp, r>.<action>

<action-mappings>

Page 112: Struts Natraz Notes

t..

Ii

73747576777879808l

<mes3age-rcsoirces paEmeter="mlrfile"/>

<plugin className="org.apache,strut3.validator.ValidatorPlugln'><set-property property="pathnames'

value="/WEB-lNFrvalidator-rules.xmullrEB-lNF/validation.xml"/><plug.in>

<struts.config>

# Struts Validstor Default Effo. Messagesenol3,1equired{0} is l€quired.e1ro13.mlnlength=(0) can not be less than tl) charqcteE.erors.maxlength={0} can not be greater than 0} c$aracbl!.enors.invalid={o} is invalid.€rroE.byte{o} must be a byte.eno]3shorF{o} must be a shorlenoE.integeF(0) must be an integer.eno;s.long={0} must be a long.srrolE.floats{0} must be a floaterrors.double={0} must be a doubls.erroF.date{0} is not a date.erroF.range=(0) is not in thg range {l} through (2},enoF.cruditcard={0} ls an lnvalid cr.dit card number,erroB.email=(0) 13 an invalid eflail addreas,

#userdetined msgs supplying arg valu$ to defauft enor msgsmy.un=Login usemamomy.pass=Login paaswordmy.pr33l=pa33word1lry.msk.nl3g=uaemame mu3t contain only alphabetSdy,unprvd.msg.u3smams and pas3wod muat hava slme bngth

"r-18."u"gule={0} must have same fi18t and last characteB

# apply styl$ on error r|3gse.rors.hsadeF<iont color;rcd slzo=2>erroE.footeF<fonb

".//Apache Sofhrare FoundaiionrrDTD Commons Vslidator Rule8 Configurstion 1.3.0/rEN""http:/iakarta.aoache >

<form-Yalidation><fonnset>

<form name="rf'><lield prope y=rrusemame" depends='rsquirudJnaskcu3bule">

<arg0 key="mY.un"/><msg name="masf' key+'mt,a"*.r"n'O .

<val><var-name>mask<var.name><var-value>^ [A-Za.zl*$<var-valoe>

</ya]><field>

<field propertyJ'password" depends="requlrcd,cuskule"><argo keY!"my.Pasa"r>

<field><form>

<formseF<rfom-validation>

133 -------------.--------.validator-rules.xml-----------<IDOCWPE form-validstion PUBLIC

".y'/Apache Softwarc Forndation/rDTD Commons Valldator Rulgs Conflguhtion 1 .3.0/rEN""itto:/iakarta.aracho '>

<fom-validation><global>

<validator name="custrule"claasname="CustRule"method="validatecustRule"methodPa.ams="iava.lang,Object,

olg.apache.commons.validator,ValidatorAction,org.apache.commons,validator.Fleld,

83848586878889909t9293949595979899

100t0t102103104105106t07t08r09fl0fir112fi3lt4fi5fi6117118ll9120121122123124125126127128129r30t3t132

1U1351361t7138139110l4l14214314

4...---------------valldation.xml-----_.*<IDOCTYPE form-v8lidaf on PUBLIC

\_/

\-,

v\-./

. \-./

\-,/

_..11 , .j *i :.

Page 113: Struts Natraz Notes

\

:- .'. ;a'-'

-' ". ' il i r rr'rr ,.'rl.itri\'1'1,: iir;'ji; r'r";r,'jr":'

145t46147148t49150t5'l15215313t1551s6157.t 58159.t 60l6t162163164.t 65166167168t69170171172173174175170177178179t80t8t182rE31Ut85t861a7188.t 89190191192t93t94195196157198199200201202203m4m520cm7208209210211212213211215216

org.apache.stuts.action-Actionllessages,olg.apache,commons.yalldator.Valldator,iavax.servlethttp.HttpservlelRequesf '

msg="eno|s'cuatul-'jsFunction:"validatecustRule"D

<global><rfom-validation>-------*------CustRule java----.--,/Gu3S.ulejava (WEBlNF\cla$€)

import iava.io.Sedalizable;import iava.utll.SEingTokenlzer;import iavax.8ervlethft p.';import org,apache,commons.validator.';import org.apache.commons.validalor,util.Validatorufi b;import org.apache,strub.action.';import org.apache,struts.validator.';

publlc class CuatRule{public atatic boolean valldabcustRule(Object bean, ValidatorAction va, Field field,

Actionltessages erroE, Validator validator, HiipservletRequest r€qus3t)t/, get FomBean properttr valueSOlng value=Valldatorutlls.gewalueAlstrlng(bean,f ield.getPropsrty0)l/, get filEt and last chaEchar fchar=value.charAqo);char lchar-value.charAqyalue.lengtho-l );

,/ check weather fil1Bt and last characbE arc matchlng or notif(fcharl=lchar)(erro6.add(field.getKey(), Resources.getActionile$rgs(validator, r€quest, va, field)lirchrrn fabe;

)ebe{rctrm Uuo;)

YrmethodYrclas3,t>iavac CustRulejava

-----------validatecustRule js-----/rdevelop lhb code by taking validabRequir€djs filo aa rcference flle

function validatecusRule(fom) {var bvelid = true;

var focusField = null;vari=0;var lields = new Arny0;

var oRequired = eval('new' + jcv_rctrieveFomNamdform) r'_cu8trule()'l;

for (var x in oRequil€d) tif (licv_verlfyArrayElomenqx, oRequiredlxD) {

continue;)var fietd = formloRequiredl4loll;

if (ljcv_lsFieldPresen(fi eld)) {fieldsF++l = oRequited[xlnl'bvalid=false;

)else if(( fisld.type ==

itext llfield.type == 'textaroa' llfield.type == 'pa$word')) { -

,/gatheB Gomp valuoyal value ' field,value;

.. I iir.1]i!,!.

.:1r. r

Page 114: Struts Natraz Notes

I

//ctient side folm yalidauon logicvar fchaFvalue.charAqo);var lchaFvalue,charAt{value.longth_l);

lf (fcharl=tchar) {if((i==0)){

tocusFietd = tield;yhn.fieldsli++l = oRequi|.gdlxllll;iEvalid E fatse;

yfit)r/etse

Nllor

if (fields.tength > 0) {- .

jcv_handleErlors(fields, focusField);ynrctum kvalid;

Yltx

--:------*-----Reg iste.Form javapacmge app;

import org.apache.atruts.validato..*;impo.t olg.apache.struts.aclion..:import ravaxserylethto..;

public cla$ RegisterFom extends ValidatorFormI

privato Stlng username=,'raja',;pdvate Sting pa$wotd="htd.;

public RegistorForm(){r System.outprinfln('.RegisterForm: o-param constructo/,1;,public void 3ett semame(Sbing usemame)t

Sy.stsm.out.pdndn(.'Ro gisterForm:setusemamecl,,);

l thi3.usemame = usemame;

public Sting gett s6mam.0t

-. iti, l,,'..,i1.i- .,1 ....'Y

u

217218219220221. 222223224225?j262272282292302312322332U235238237238239uo41A2243ul245464728492502512522532542552s6257258255260261262263264265266267268265270271272273274275276277278279280812822832U28528628728E

Sy€bm.ouLprtntln(.RegbtorFo]m: geiusemame(),,);

) lstrm usemams;

Sy3t3m,outprindn(.ReglstorForm :sopasswordG).1;

l lhis,pasawotd = password;

Sys(lm.outp.intln("RegtsterForm:setpasswodG),');tetum pasaword;

public vold setPasswoKt(Sfing pa$word)

public String getpassword0

lpublic ActlonEno]s valldate(Actionlilapping mapping,HttpsorvletRequost rcq)t

// l"ad vflag valueString vstatus=req.getparameter{,'yf, a91;

ActionE.ro6 era=netv ActionEfl ol!O;i(vstatus.equals("no")) // when ctreniside fom validations a.e not donst,he.foms server sidc y.lidator plugin basod form yalidationr€rr3=3uper.yalidab(mapplng,rcq);

,rwrite Seryer sido folm validadon logic(prcgramafic,/rto check weath.r username and palsiiordb hivlrig san e length or notl(ert3 ize(l=Eo){q$emame.length0tEpas3wod,longth0)

Page 115: Struts Natraz Notes

32632732E )329

289 {119 ersrdd(.,password.,,new Actiontrsesage(.my.unpwd,msg..lr;291 ytit252 ,fii293294 ytit295 rctum errs;296 y/vatidareG,.)297 yrclass298 /Fjavec d. RegisterFom.iava299

---RegisterAction.iava-301, package app;301 importorg.apache€truts.ac{on.r;302 impo.t javax-servlethtto.*r303 importjavax,servlet*:30{30s306 publls class RegbterActon ext nd3 Actton307 {30E pubticRegisterAction(!309{-:ll l

svsbm.odtptin0n('ReglsbrAction;0.'paamconstucto/,);

313 public ActionFotward execub(Action apping mappingActionFom fom,Ht&se te8equ€st |rq,Htggowtenosponse 103)0

iii R[E['*:ili',+1i[SflH*1iilff"*"'-'')""119 Stlng usor = d,gott !emrme0;117- Sting pass = rf.geteassworriii

ll3 qrser'equslt('sitftvr'frrpiiiaequftl'oorr"ll

Eq.s.tAtbibrb(.'mrg.,.V.[d C]tdenthb"li32032132232334325

glss(leqsetAtUbutr("msg..,"tnvalid Cr€denfi rb.);

) rcturn mapping.findFotw.d("nsrlfl);

Page 116: Struts Natraz Notes

- I

'v

t

\,

J

- odd€re-x', dehg.rt An

io

6kf'tl:-

ercrr messs6p jp.e-agqr3{ Brc

m6ftc

&n$oure ft15 rute on FarrnBen Profre{tlt8 dtougl V

.]]j].! , i

" ^.1t,',,,, i ^.'-<. Porm -vdrl rdo$on>

tk'mgit> -'flt

' z?rtm mme ="rQ" ,j

. z?i€ld prufxrt = "usrrnome " dqxndo -- " Yryhed ' ma'sY t cirstr(rl' ' o.',

qA ke4 ="T'g'ur! 17 I/:d.1

'' .T1m-p;l'.nosr, * *-:'*,*:,:,''o,;:,,:,, .,, a-

4Y€a7 >:

zvar-noi t,i 'rrraF ' a/var -'no-rlr e;,.': I'i €+ .:. ,. .,-.., , 1.,.

' ' '.t .21pi.y-yaleds ^ [e.:aa.-a] * { 4va'11,tu9 a'.. ;.

4vat4?;etd > " I

ll Paa-yali do+t on > t'. r Iyi.5

DeoWmyr Drechrj smrcl<rrr aP rt'e

BilursApp - ovr

akr.n eref,s based &ffirt '

jar Bre5 ctdded- la enss?A>

Sfrals -t('r€ - l.E.t 'Ja'r

6nr'fn5 -ya1 ;trqlz,{ -1, 3. I'ja{Jervl€t - api .Ja{

if".q,,n-ti',:, :* l,:1.

tr5

l-+ *darcro)

&Jeb .x rn I

Vcrt{ ofi cm . xm r

\th-l;dcn.tzr - ru(el. frrtt

WE&Irrrp

Page 117: Struts Natraz Notes

. GnJluoicm:- l0 add ocrr programali c Rrrrn urI datlo.n /qics fo pxe.rt}c along c<rl#

Va-j.tdo.k{ Pl&gln lo6ic6. *e.ft ays 3 afprooc}e s OS &scur re.l a,how,

---J c.tp$orlo is secieic fo one bFaroBean.,_llj#;1r",jrkkf ii#f"Sean pvugrq 0( erqle F''-nree /

: Ior.Deon b$ 'lb con use mutripte ' Fr'mBec'n prorrerme:' &rz^ ,krc Aeu-qatn,

rd t'? a$O' Arg t' (r'ts-' ' - ' 4-

8om 6truti ! 3 toc on P\act aorg 7 hat in6K4c .,r -- o ' )^-

uhcn zarn> lc,g i5 used' " $e v&l4e'3 lo at6umerts @il 6e s'?Plr€cl io 70\

lel z?;etA z 4$ o( VallddHan ' x ml

order *,e Lolq> tu}q arc 4eciP;ed 'uor

Egi= " rr'rred ' mlnltrgth">

zgt\t 1rloPcr$ --"*16ame" &perda = rfl

M*:. lo! uarue"€ T:t' -"''n:,t *'",,="'

v'1c''tx rnme = "mlolengrtr" kq =" 61"er:minlent$ 5 **ttt= .'Fal

se '' >'..,

rute ms-9L/.!\-\tdl1te? 5 zl:V'x -vatq e 2

4vat>Llhetdz

Snm vaLdarron lo6ic.

c.{nuath @

ootS one

is visrble

FarmBream

in mcrLti Ple

t

ForroBaoos lfo'oW6ou

oia fime'

buj Cc.n cocr k- ror-rt

Fq,'n b^

trlr' lwrr

a$o, afg t,at6a' " ' ' w5 )

9+plici'f1ltaoc'P zud'{ 7

rom langrlr zvar-qarne > minleng *r 4yu-wme

Page 118: Struts Natraz Notes

- ' " n-- -, imporrcnt FrrmBan Tgee3

.) erlrndg

J or9 . apaohe . Strrrr.s . vdldolor , VariclofcrrR'rm4

€r tend 5 I'J

0rg 'a$a.h e . sFroJg ' r,ariaarrr ' Var;auz"&r'tsrrtxo, ; ,.

A

\-'1' l t"'''I

'J 6rS 'oforhe ' shu$5'valiaort't;'&mVoaaoto..funorf-n

L-' ^ '^rh^" r- o-- ^ o,efitdl a'e getrfr@r€d-) the Fom&on @hose Er-Beon pwper rP-8, gic'r, se$eY '

'../dgnamird'r, h AidnswlqF is elted dsrr,oicqs-Beao '

!-'-+ T0 hJorkuriri Qnamic Frr.nBans 6ra nurt dtat trlfi DU'eX"*k- 6to$€s dej

\_,, 6rn-m *1 . ,t

\v' Qm-ic FarroBeans :

I' pragramcrnt?, -Declarcrfi Ve

\,_,, Dgmmt kmBpan

Dsnamic fiarrn&an

-) FograrornerS €xptrir ll &wlogg -> tae nevel tare seforale E,r"Ban ctrgs berc' b''r

DgrnX"r h,o class€s dit*crt3 io.

- Fofrl 6es sel)G x (-; arxl gelX^x ( ),,aLnts St,rrs CmAg Are

\?/ \nlidarc (-,-) r;;crbods in 6r,o&aD ctas Valraqx [-' -) I ]'

' ro faPT m

-a It ii Britabte l-opgrParrn torb prrqnrr*c -;-l :Iq ts Stllt-able ol5, qoanartrr (*tta"1t

and Dclarpli\€ k(nD vcdjdendnJ p)ugin hra) R*"vuda'l'lsrll\.--.

' !gE:- Prqprnnnc rymmtc k,'seans avt rt@rrreq&cl fu dle \'il

r--: -+ pg66A$crnfirrm crass can't be used 4., Voridar<n plugrn klec\ Dcrarrerry r'e '"I'im\aU&^l'lo's '

v-t W D3nc,\tridornftnm, DgroVari&tarrtld,km,.,,clcdseg Can be u'ntl &l' D"'"#*kX)

\-/

Page 119: Struts Natraz Notes

ni Procedtrre fo ploc€ dt larrame Dg nomt cFirr- lkon iD a-' lsr Spt,fj dpplcdfiqrr, (Sn"ra,0a"J

SlrP-li ftktc Fd'rr8e.h cktss (Qq6rcrfao. jayq , eeglsrcrFnm. clcssJ

in 3tturg con Agrrc.f on ftre "t

in 8tr<u5 -con6j. xrrn t

Sitg- a :-

agu t6' Ccro 63 >

zf;arn - bean 6 7

z-knm-beoQ ' :rar* =

2fo'm-wle\

zaorm 'Vofio1g'

/l(um-bes-n,

4Po,n4eanc >

Zor$Ctn - ma?P) ng5 >Zocllcrn 2

:

"rP' ,,rn. --'ltg'*o.-he ' 6taus' o"aot'' Dgt''klk"6-

,.'i

ioi tlol =

l>U

zlutn'.>

4cchon' mo+Plnqs 7

zlaxn-c^hA ' ''

' in ftnonclassWY'r( -ft1r66in3 code

ohjeri.. \ ,il*Od oe

in erecctre L-)-' -' -)

eneol}f [-,-,- t - )

't€acltDrh(

Fe"r4ela/,Q

e,, tr',-fu*'1"" C

tSXP-A :-

tx$lic ArcoEruorda

L^//rtcct ftnm dara

Drolkrro"F"to

Stn^g

Pon P,mBan c'lats 9$Pr=[h*forr-F,.)9"''; . ',,'.]

3

\_i

"ho"(.)/>

Gn Pigure tbe Derlora$\,,e Qto-r c R'.mBea.rl

Et."3

Page 120: Struts Natraz Notes

Da;arative ftr*itr.F--Beon . $ #rere ls no

, \lrtrdarc [- r -) rrf,rlbdi '

5tl"- 4'- gxecl(te rbe

No E '.- birre c{le ov€

U*r;re L0OTUD$ (j]lrb

to plcr€ 1eSer[-,-)

sr(f}-+'r Ccmft3urc

CepllCali dO io

'rb-t devetcPlng

Begr.rl?{ r66p66

€eperare fil-Bean mar&01 formBeo n clcrsg

frrDvl 6l crD ftn Prograrnr

X) POadure tO c,rru cotrb

0? firrmVcttdo$rn5 in

J lt,tas

1-xqrcrrrreri c ftoamrc Forr'' Beoo +o cacnr' coi r&r c I t P-{natg

3h@tsAPP -D! aPPn'

6tQ-t:- Keep Brror5Afl' -Dv opPn rfddg (re8c* hs"doctf Biwn'ro rtll'll")

fte ^ 'm clcss e*crnj-tr5 Pt- DgrnVa'rdorrrF"p6 clca'S ----+ r(Yno'€

flft+-"'.- rrnte FormBe

Fcerogen fr{trdes/ 6erXx" fi mcr6o.l5 aB Shoton b)pto '

l/ Qe6ra.'6r.,..irva

] J **tg" tto'"o

pub\ic clcrss fuiart'Fo"o exrcrrt5 QnaVatt&rtrP:" .

o J/ do ob6"'{e *nt oo firo @n fnDft{h''5 ' gelX''t (,) ' SerX^ xC)$

t ,t ,","raoat dre YtPlocrd h.'r€ / A . i^ -^.-- -^*:r., ;1t, Saru 1p1[2e4ltl tFltrlc lpsnErrore''To,'aot( A*ofUpo''3 rn{r'')g' Hth8e'vraPeryo

st /r*, 4o.,, &t(^

6nnt use'|name -- CStn"g) 8e'(1'*'-t"" ) :

Srrrng ftsurr,d = [Srtra) g* ('r]asst"ota " );

J*-u * gtt n zts o? votraortb'-)pftx trlr:lrr t*J

J /vatrdoret-'-)-t:*i ili,.'1

StcP-':- od z.SnurA-*'"'e>\ ttu\ o-tt'crrS -@nulilS - l'1't'o iar fre ro cbssfti+''€,lv 'ol

ond Cornprle the alow FotrnBaao clcrsg'

in Strurs Amffgrrarkn BrCthre otpve

belco'

<epu6-ccrnPtg"l?:arm-tle.ao1 >

Fr"n&ao class

o.s sluln

Page 121: Struts Natraz Notes

Zkt{Yn -beofi rnrag = " rf ' tgfle 3 "d{D - Qgtare,r Farrn " >

<&nn-pnlwty k fon )?U,

rl

\J

co

o

n .rne =' QserDame '

octm e =" p**<rratrd .r '

ocl e 16

JJNoTE:. Since L^f &dap

dud-op F,rmts.o,' don'

mertr:ds'

gq! [a,n' fie o.?Pn in

fxugrarrn$e qmmicF:rrnn B€c.n

nSo cft 0* 4rt'e;tt+d -fa ?lnce

regulet rOcrrn€Y

#d€ h

Co/--'\i

zNorn-Wfn\

4(:o'r'4a^>

zl&lrn-aans z

zlsrr.us-con|nX 2

ClaJS €xeuretr -r -r - )

prrbuc

iQegwsAcfion C )

Rr,inc c*. = f6rrrng) tP'g<t ("ucc,nort,e" ),'

Ir.rr = fS*na) tt.As feax.'r"a'); ,

=_

r'

Sr'In3

. fupe=,1'&rn, lang.Srrrog, injfirl,I

f,g fE.,= "ia',a ' lao,;,gting' I >

Page 122: Struts Natraz Notes

l+lt>lt'>

(Va,raornr nl<Xin)

@e aYe plannioX

it ie ve orrerrl e<,1

o? vailat:ai. Plq-lo ooJ

fdaHdn. xrn I.lt" J

ftnmVatidol{on5'n

inlicd Faee 1i:dluYe'6sP

+ IP t:e

fL i5

dPPII

ar€ Jas| looun 5

Ye@rrmde d b eS€

hxh Pmg{rmdjl c

tu

n

Llsf

A).--,-- prarrple

',-4.Io he c.rbove dic.graro

jP FrrcoVoridatton e1r65

otlre'r caise &,,rtro I 2e)rbe

F^ at"ne diagrorn bc.seA

crft

lo

progrcrrrdic 14ramic

ApPli ccrfn crn i0

Dedavrlive Qmmic krrrnBean

to a{plg Decwl a*ive Prr- voti &*lr,,s

Oectavatlrr€ fowtmic €n- kc.nS.

llrcn

$cnercrttd tbe GntrDl goeJ b the

ol Acrldn clcrss .Orer-crre f-r-r- -)

ond Oerlan61[;tE \to|,la116y6

ojzt- bea.n.

UhtV coith Validatitn Tales

Sht*S itl' p :

or€4u68

41 *ntr ;ndicdES Vat;drl-d ple€-irl bce.l

a4plica;aa rePra onn o ol @ a @ *U*

Page 123: Struts Natraz Notes

Vatidole = Palse

firmB€r.n closS

----r To ihse{ t volue

the Qnm oP

laf} ln zc,ct/Ir, > rrnkeJ Arton 6elv lct

in FomBaaD tif€qde,

encde -

tr,t 10 6! the Varidara C ) oP

-!

Tlur mean 5 asinq this ule cor) discrlle

o{Drl@lr1do. the dpfortt Wlue Q tLts We4

''.J

grudr gide VaIJ do$cn 5 iD our, 6ktu+5 \-./

Vdlldctfe afHh/rr iS brqe indtuU i'-t

&nve" 6ide Vaudd{dn.6 &.e

to &< &'t& bPc db tute

iova-sq,t'Dx cro* fhr'

iP g;ven 5\"rr3ib ttere.6 in

.in. . . D!rc Clats OhJe4

fu.nvc.rvcd to jc,va'Agt

6ve d,r. Y* " idbc dn

t<- lr'>ola

kte vrust taw &te voJue in

i6 'fie €'r^ oP

cotulnn

d.rc volre u$t-mn-aa **..:*:r;-

dirccrt; bJ *tT val

java'sqt ' rbrc class '

..)a,< (-,-) Lo

-----+ Y,J g Can we g'?JL

java's1l 'Cbre cla55 oh;'

s?. *t*x '

lP 6qrgtitoflcm

,olttt toith

ourr.DS

Y€{den

\r'

t/'

o

othol€r6 rcrrt 1zrB€ Oclvanfqe

kl6;tHnf tOrcrn6 Eulcocn'a

(tfrtu }k"€t^oJ'\r

&

crlb6

N}\)re trvro;nJ (J}1'& I-16ro o4pucaxon u*\!"t

lr u*-d uJe (qn-l notice rh,s $auqicrHc'n 1t'orrcrrn'

u&irnome : eg:----- c*r* ur&nar.eFdS@Ord : FtsF K

L-to.\ Qc.rs t-ocrrl

ry' \hIJd c'tdcnfia;-:--------_T-

L;Urcm1 Cr^lgrf

c

rhe crduser roaaoll 'Ssu aust-€b}tA ter-n"'

inp.t \hpe, o^arP 3a,ra CIfl'licala"c{o'tto ' .P'rl.ole

A)sftr&<l

SOtfd€4lcm li ke tr t1t lrto aPPuxatlq =

nO Pnxtotrd,

lerattrc 4 thst $en it ib ca-Ued "39r- 9$eutldn grDblc'ro

Page 124: Struts Natraz Notes

Since Srmptc Shrrcrnenl objec+ &ncls gueg to doh,6ase 6tra aod @nlf'jlel V.rcftJ

in D0slu, aloq toirb Snon tnwvatrgs, &t i? ay St .t4rucot'co,ta.t

odpended ra inftu varr,es ;. D6 cunpuu 1-eto!d2es" ,h;::TTj &clnn|e rhe e''.6tnal bhwrt*r d the q*U,

-Td Solve Sau lqjrutan ProCer"r Use pnpaged Shot Ohja-t inor<ocl op Sfrnpte

Sratcrne* ** p.rlzrred strrcrrvrrf ob,ls.t &nds 9-,eS lo dan}f':e "l- 4

g'"-

Joa':

Gmp;tes ?lej in OB slk anhatt inlurfia/.uzs " gt7 inpr Valuer tpttt be

€et +b W

aP 6mrn z\cgmr clcrss i5 g"tHT {€4l9st Frem t "''-r-tr

ftrr.&an clcrss b* -totre'rfu'rrn farmYo-udor{crns ePfuulvetS

+11 taFe R'rmBearn Cfcd3

, P*^ Falrt6r'5- fhen ohotoeco;q Avoi;

Ccrnknk

a5 6BL

aTPend.eA told, o6ptrd.Hon ioF.lrvol.tt€s t.llill rDr Le recogn:zed

crl'\tu*, tu, .rlsre iS no pcsiurrrrU oP $erfinf SgL irdeddtt@8@

allti (ornpilarto , jwt ry1lore axaJLHoo' g) t{re Sgr- la"hnJ<^l

elewto p buJ not recornerrdect '

i5 fftH"3

\e5, kle Grn

rP gr4rtb furt'rn

;g ;g ra(omgded

Page 125: Struts Natraz Notes

l4lErliPse =

-ifpff- ptu.8;ns

llSEcttPse

Ecrpgs * Bd tr - t.n plugtns

rhe Ad!&nced te*nologie$ baoed t ejeu

lr/rrl :oL:

delr.lopv:r.r./-.

,l

\,

i \-/

l.J

ti

o

Simpl,q

tlpe: I.OE Fx jovc^ EnvironmeM

Veriton: 6.x (companlte @irb .br r.Ot )t0.x (Compolable roi*, lar r;6+)-

Vende'r: Ecrirse fr3

Cororrpiciof IDE , ' ,:

al60 to Cftr orber Atetnol $gtvc,tU

pfi€&re to devel@ $e otsue d{P}cd*lan

€r/a4.t- laurrch r,luFcripse JDE b6 chooatng

t-,.,

bJ ustng t"hEcrf'se il)E'

ar+etnca 'Bder'--.--|-L-> rt ts rhe 6rder ohere ftrDjecrs ollt 6 re

Sortr8o Te4,rotq,t6

(,

U

F1.1{824 -855-55-6qKEo :S"tatg+D-7

given 'Torn6;1- a5 hrrtt -in &rvel otd

-Td dq,)nl6cl slco." 6rurtl. mgEcrlgiglpF'com

P- Oqs: h,lNl^)'fosecliPse rdg . com

!9*:- Srbmi.t

l4SEcliP9e

rhe fubscrtprton detaits&lbgcrtbcr i

f{_enu -,------ su}trcri p Hcn inPumoHtm *grbcr,.,ptt* cde:

5glutsAer"t

Page 126: Struts Natraz Notes

.$/

91-tl- Cretltc Neb pyqje$ rn lrJEcupse rDE.

Fte nenu ---------: N€tD ----+ Neb fiYoiert --+ PrQiecJAlqrne,' SrrLrrs Att>+ 1-;fl nt sl

$tP-E'.- add 6rru.,l5 eoroa-bilf$es t rhe pl"j€al '

srrp-c:- odd Autonctasd

eA;@

Rtght cttcr on projzu---+ |tgEcup ge-- - Add6l{{3 crPd'sli}ic3-----a ahutr5l"3

> Eose p0*o3c & *. class6.. [Pr I ------3 Bnrsh'

lhe obo/e *q5 odd Stnr*5 jcr Br"s to fie lfbrcrreb og't$s pYuJecf,'

to thre fnDiecf

Rignr click or'' src {Ldt' -

tgeP=-o$el ---+YlSEdrP6s ----'wcb.-srnts.-J

b Actiitn --) Nexb ---+frJb t @

------1 &rnag \r'b *,-.+ add -' --r r,p-e:@l----rddj---+<lok

Oode in rbe Oxeqrrcf-'-,-'-) of

APrcr x$","

dKP-!f]:- 6rte forla.r:iog

Porttc clo66 Nist Acfion 'atcrss A.*ron {publid A*rzoFnr:ard exarrte( -.t -, -., - ) {

/lNrrle b.logic

Gr.na"r cq= Gr.niet' getlostamceC>; ll g;'* s5s'dort 6rgl dm€

int h = cl'gei (&rodet' HorR-oF-DAv) ; ll gil"5 cuoYtr* bou't

l/ generarc wish rnsq

$t,"g msg = null ;

if (he= rr)

ffit = "&ood rncr.nrn3,3':

else iP ( be-rt)rns$ =" Caood

e$c iF (hr-:ro)rnsE --'&md Evenln3 i' !

qse

m9$ :" &ood )'Jtghr";

W+rest,rerAfribrrc ( "ilnlmsq ", msg )-

.,4-.;'-

Rnf sh

Cnn t+sliif f tO Por Pe*&f

Page 127: Struts Natraz Notes

l€turn rmPPin€. BocrE,,ord ( t rrress" );I llu^o,n*q-",_, _,__,

I /cros

6ttts,iddd frr?e.jsp to rhe fnrjeo+ .

' prefil-"btwrt '/.7Lt. Q,wttb Ve$x =" beai 17

thffx = "lagit y.7 ,. ,: .

oO

OO

N6{E"'-;--

hrr

h,rp, i/ loorhot r roto / stol-rsArp '11ffip'ge.3snfiererarc Nish m59

la3 15 oolttrrpre fu Tbe ltdttitnoL z-a>

can,b goneratc eficnHcms Q narnteallX

4htrnl:tinf >" h"aP 'or*.n*rt

l

lctel

tn rlc'5r,rcn

Octlon

PBtrrcucl crn hrbrmr 6rder. ------, rr,, -------rt5p

tt.@,ap;.u rrri ='bttp I //Sh'r6 . a*che.

47. @ rqfb

Zhtrnl I ltnk acHon ="hlp3rb' > M63 zlhs.,',it'"ltnu>1b\l> ,l.btt >

zltgdtc. notEmprj

abnon:6616

, Lllogietnpyknfrrs >

ltP--Wlj- &nBguve E^tcrno,l Tornrat 6edvcrr' *6 nSUtUpseJoE

urndcro henr --r prePtrna ------+ Tn5Eoirs€ --t Eerrreff6 -----; Torn(ol -_-

1brr6j66o -----+ OEmbte _--'@:t|In:1T19 : ftpel5 ---rok

6j3-r8:- Pun rhe PfD,je*

bgnrc-rr!- crn PYQJeri --------tB'na5

&cP-x'.- Teat rhe appn crr(jr the al0'rc Cri4bstmbo 1'---r l$?e uY I

----; preNaro., IEE..i.FI-.-_- -Rat\,,.-t

A*trihJFe COr geryrrcrtC. :

uri

Page 128: Struts Natraz Notes

@ procedr^te tu CcrnPtgure rJ"g Dgrnorn ,Q"rrrt o€' Neblo€ic ao,x in {yEctaPie JpF

g3-tt" creorc Dorrr,ln&wer in WebloBtc lo'x

oraoe Weblogi c --- &rtcts s lar r --------- E g:lflff F]1f-i'{o'twed%fc,Ff\rq

DarrninName: lGffii ------rN€nb

-=

Starr----r PgronS -----+

--) N€xL --) N€xE -----__-

UAfimme:

tbtr Fxssurrrd '

ConB'm flrr$&us:

6rcP-g :-

iookmsl

&r.cbosg

.- @xp fu Ccnp;gua urbtsrc

Nirdorullenu __--r l)r€pc"ence6.----) tlgEclrpse-------+ $rverrs --_-' t^JeblqJIC-"----+@

\J Neblqrcro.x----------, errnore -------4 g66[ome diretta{l@ltzdte1L lffi.,?-Jl-r ;osleu,r'r <ro fa,tCl

u

- AdlmlorStfafi oo o8nnann e I -j l*ninsraruo F"d, lG;Tl

\'/ bar{cn &nrfrin yuof :

_____*opl$ _-___JOE

I Br.@r I

-----+ I7l Actirntnstrafyst) Sentr ------e 11erf ---*bstcnF rt [iG

----+ Ne{ b -----) 1166 -------l &me

40.x 6eruerr o\rh l15Ecr'rereIDE'

: Mfrtrt@A tw,sq\tF,Ft,h/4({#!ateePr8gu,w J6.6iT- ctef;:rrrtt clo'min S"tve,l c,rr$ PtgEcuaseroe

hJtndaoheno pref<rences ------t$gkr'inst-------+ &trExs -----t J-Bos5 1

JBOsS'x @rncrbte ---t JBosSh'me d'eecricry'@@

'\"/ -----) c4pty -------+ 0K ,*or-"."_J

'---rOorr""

* @ mced.r"e ta Con Ggrw O'rc'ssffsbi'v ,6t"uerl toltb t{SEcupse -IoE

^

\- l,'rqd0olt{ttcr prebncts ftzur,ee ---'-"> 8e'rver6 -q

Crr)zrgsfuh ---s

GlossBsf,P'x ------------J @ernr\e ------+lldef &€lir,x t @---------+C'1ptg -------+Ok

IgE;- Eve.,j d*r\oin Soueo la an opPliccfian &r^/ed' iP Cc-rnoary uj€J garmr-

.{pn sewe,r 6l.o in rntrl$pte pruien'' t},t"1 rrr-thp\e d,,,no'D t*ucrqs 05itt b

eredlL& ln thar €bofpn $sfl/e/ sl@' v)€ 6-an'r Cl|€de clorrstns in lomco''t'

de?trrrtt dcrrn<lins c.\e v]or thcrt in Wcb\ogic lo'r . fuf oe &,n GeoJc Cr*mtr-

Cr \Or,cte\ nnrdlte toctte \ uter -trrDj"-dt

Page 129: Struts Natraz Notes

ftearrli drrrciins in $Bcs

6nndc'rddefor.tru tdeFautu)u$rnlnlmol

or\

Deftr'rLr domdn 1rr Cn\6$f+th i$ '. dovoma-

thb€

dirredX

ln

a.rt hritt in

'ln ShltlJS

Aattons $V.n k^l gtn_rr6 Apf,-. ure ccrh uJ€ .$e8€

dffi'lqvrrYrtl*

flou,rqDq'at"t' Actt an

@grrraltcn f;re c, 1,e con ure fhe*e

4 ry^'t *rw;huaa Dla,'ses

ore the 3rb cu's6e5

AYe orjajbde in

in

LrareAertot

DumrtirdArdttm

and erC..

? A[ $ete cbsses

, Alt *rese CUsseS

tr

za ffi = $'isP

Cor)

Zbml:ltnP

Arr*

AaorUnq to mvce ru\es turo 3sf's oP Cx-[64rpllcaflcm rrr.rgt]not, lrtrxtt]-, utfil'

Page 130: Struts Natraz Notes

Lhnn : tink [pgp : " xvz'do' >- /1ir,-g0 \e

i \_, tn rhe obare

iottrC.C.f Cot th

diograo

B.jse

mvce vule is \ltoldrcd becausf 5 A'.jsP is 4rre{}\

€rurs - cao9tg .-rm I

$turi-":-

A&P

.44 hrtP ="ryz. d 6" 7qo z !a>----rfi- u(") v

4hrrnt, ttnr >

h"t. A.,jspi5pa6sing

Ac*ion chs6 xyzAc1,ari

Selntott uierde?ineot

ie rpr ydorrrnded.

rhe C{rn ttl, I

'And also

Acnon class

zlaucxt>

tu ti'jsp rb'eru8h

Sarie&6ing hvca rules'

'lD PasS canr-ro\e [&rn

A'tgp

<&tlist1f gg=u lxtz" Urt ='ora'ofrl'c ' srl'ds

@ {*r*..n .*dAflon" *)1atdt1a

A..isP

faf ="xrz.66" z9o 4a>-=-7-

(ov1 IZbnnt : linx hrtP ='jl3 J9"> !o z/6nnr : tinr >

CD

In tbe alove chagrc'rn IwC?. ru\e iS r'ot

tattcing tr)i$ B.,irp througb the Corrf.ottcn

,-"^ r^W" hrc=''xuzy'ptdn">z?otmrd rr.rne='ot " W,r+)'16,6r' 1,

Auio#ervt<r ""a [L."B.t* *trvtta one

oDe &p t 6rprtnr JsP

arriorrs . frru:ardtrolot ctass )

ktionServ la{-

Bra*s -cu".' A'g' xr" r

NgrEl- r.gre scqe *rt shors - e'dias-l'3t '&r 6re

ts odded tD $e NeB-rr.re I I ib tudcv .

vicldlcd . beccruse the ArjsP is

Serv\er Coilad A*r-'furvltt \ url.g

'- Sol.^.1-,'- l',- (usrns oq'a4ache'5hd5'

Page 131: Struts Natraz Notes

FortoardAuon clc.s5. h).r.ro rhe ctiagrarn @,0 .te hgptlroLs

gurerares *e {e+{eal- to , Sl.rurs O{rrl.t ca}tan base d crrr-

O Acrta.r&xVtC trc45 ond fiWS tfrc rq,t,taSt

\--l

" f,op" .rrr.

@ At}lcmseyvtu- !se$ *c 6rurs Corne6"n*"" B'te enrd.s ar,rl- tools Rx ihe

krranrd/$lon claJs crn?-t6ttta*lon c,i"rrse A,rr"" p.* i5 " 1x'l-u'".1

-ft'jb E*utaAuto aors uses the WcLvr*x ott';btr Value

@ Arr-*'nr* plsu'the Cannote +a B'i"r

CL1A .rtLtto5 ,-U

-> $r.tton P,

pp<*i5 recqneockPl

Vtu dehned

to die, brP4.*

' lrrnrn dx"%.'

fie'e- 15 * V4,& +aVnX

pdnflng tD "r66ul'- P%e 4t.i1

-Tbe.e ate ttoo

?4a,6on dc'sSes

,) Locol AcrsnTo,ua'd clV-*'wa

--+ ry<;fic to Eoo'h ftrton c/asJ

-> ftgse funr[oaoaru lgrteA atsr,$ PaAeA

or,€ h+lnAa"ss

'---t plot? LPowtscl> rjncletl 4vAat>

can.Ie uJd otld fr

e) Grour Atfionbn^rc.rd.s

--, GrrrrtrD fttf n'"rnrrLs

ou the 5"1116 Ac*m classes "P

Srrcrx a4plicon^.

taoes & krrctoTr"''etae lf"*"otas

Page 132: Struts Natraz Notes

-----u Jhese A.ricnf*.rtc.ras

' Aon- Cldrses .

"--l ute Lglobol'

ogrrtrfs a (mPig,,rafr'on +t te

(0ru.t5- ccr'R€ 7

' i aRnvo -barn5 )

lrr,nd Pe54r; pgs co" te "sed b wtt,plt

&rlt.oards >;t L(zir:ocL{tr> +q"'& rtus'

4Onof" ' Fmfi)ints 7

LPvnttord n&mc -- Yq = "f'Fs{atE+ itt' l'

Locor CmPtSt rcUroo

l"esrrrr'isP" lt

1 ,'.- Rrnprd. GmPrfoa$c'r

' fresult?''jsP" l' J

lz

" l&bc WPe --"ABcA.rtc''.L >

r€sqlbi'jsP, tgutte''Jsf and rPJ({lt'td3!

t rt"'t' i{" Yt5@tt B\i{P^

*:::-

GnPrguralrc'n ane 8lobal- fttr .d

?otdn t

Ll%.rn - broD6 7

Zgldool - €r'trards >

Z1tJrti:alt6' narr€z tt

Lk:a:gd rrrme;" Te"

zlgtorcar 'PtYaands >

AatY^.La$tcrn 0erh-"

ro6 t

X: zAcdcrr r etarS carl ase

ABcA<ttc,f clrasg Con uA?;1.;l

(onft?c,r"'u

0,r Wh.r b".nna{ i9 Loc'r 6ooa'1

K drme bg hor:i no* 4* tli,.rrns E

hllrran ktion clc.sl yelurnS Acttunftn-ord OhrB* ht,"5 $" "lpt€

name fhe", {.g rtsu\r pa$t Cc'nftgrne in

t4os'.

6pel fttd logic"r

dr ueirt e. ft'xe^ q{-tk fgtt fule "P St"'hsftIT

Page 133: Struts Natraz Notes

i

Lq llzl 2r/t)

6t(ars c(flrlrcot,on Lav,or1 rnatdple fiorm ftqrg, F*-8e..r,6 ,ltrn;"n o^;u,Pevc rop,ng $e

Acnr.",5ew+

I U! tt

5u&css?fjsl

ffil1:'i, F'F'*u"n lt- Lr&rcasz"isP \-/

, &.luwr-'ire

n be imfnDtiised in +crYea'9 * *

(t') index'JsP i5 lnrcrarfing c,rir1] orlTr lsPs drrecnS ' (.ot'ith 15 adoJoeat H\fce

(r")

tn)

ru.\e, 6t:) uSe Frnra,raAtrion Clogs +* *: naoi6elton

insterrd rg bc'ged relut flrX es

ewn fottao chs6 \t n rwat;rncled p u'e Co-'trct "esctti ft.tes fttt ol-l

Acnonctrsses @Since oil th€ '6-4b t+tee 4-rtm tr{es a-rL

Q"^eomd€olJn{ cotrh Smflerr-

6trrrnurH PE FmBea" !Y:

\ogics So, uL carn

(ln)'fu. A*,o,rc\crsses a"f_ F'*'''3 ".l,le Sirniller lDgi6 $/

cor^blneA them ,\nto Sins\e ft$c'n clags tb +u"A tbe &qtlz'f "fl

.,

$xprrrnk-rit^ clc's5

Page 134: Struts Natraz Notes

\:--, 1be &vq clos$ r|ff arcn'|S [lo^ Ofg ' ofl.t€' 5rfar6' Oc]idns' Dbr&tchAcd oo ctc's6

( Absr'r4.l cla5s to;rtr no ibsr'arl

it caued Dispartr'Aclctn clc's6 ' ' me$ods)

'-- --+ rtts closs €an hoos rnutfiple regucst. PYo cP(Slng loSics ln rrrrt tiP le 0scr deBrrd

rrerhoct dcholtionB

---+ -Ih"r. mefiod€ 6i€nor..re, ^retLtyn.uf'c mqsinrorc-r' otrb fT*", rlf\J nA,rra, clcrss rflrgt carYb m.d|d nctro€ cls

"*,4 Evcg r€ifru,r i'e' clr'nins t'o Disrarr]'^-:

_.,,*l a_.r*.. t4p* r"retr,oc{ ep

octdirfdndr 're1rds1 frocrrnfffi vabre ' ' f,-n ordel ta 'txea

r , ^., thp,nar,e 4 t{,u s PqA/c{ t '0C,[CU n(rrl{Irrc-!1'l,rro.r

Di:prchrAcrton ..t*u '\ v"'asrnt Tryt:: :jt";;;; *

- .-u'rtu'' ' t*J Lr'rErL nerhods a $q,"r.t ttt

--> Nheo rnutriple Bnnp3es ac plcrnninS *:: "*'t::;;,-"rhoA ",';' -> Nne-o mcrtnl)tL lq'|r' r&dw -- - ; [r;,**"c ynrsr &na tbe m" "- .:i:i ;!'-l

ctoss tb p'tcx d''e \9resr rle'r) rtr ,-^r *;** cte&ry:i,,,,,,,,,-,j

"'-7 cro55 ro t'u-"

u'*i*on class ato'x yid. g*^qxd reryup-gro* *- --*-J

rn"rel oP Disrc :" u

l9/-te6t Pcd4meJcx \la}'te'

F'3'" Poblic ctos6 Ou''Aoon errcrrls Drqartft&r{an t

== (\-?-,\' .1n*t'" &tmEe'tOatd l65i*rL(;r-r -t-)

oL

--"'""-" tt,.!#csr FDcess\5 logtc

ir\\J p*i'" A"tianFnt,rtrd uF&J'G' -'-'' ) ' *' ': :)1

- i ,o, rogic " i' : -:

----': /f 'eqaesr gvoessln' ' -

1J/\

- fxrbllc AttonFont'otd Ttvrow t'-t-'- ) ';t

{" '--' : - //req-,est Procesiq

logic

LJIIJ

Page 135: Struts Natraz Notes

in $rt*f -4n66 .xm t

2, ukon ptrh ="/rr z " tUfe -- ''&r A<*torr

'' rrcrrr€':'rP lt'roroefcx : '' &il]lon " >I_-4ddJ tidrol re-jlresf

furasT'dar no/ypl_: Ne(!r Jmprc(vi.5e Dia8fam :

D6naftheuo')

y)

l,))

in srurtl-tonftg. xrnl

_ l.ollJon parb -_"/x.rz" lgoe -*.Orq&tt c,n " Daxar,etq :,.fttrqlorr,2\-/

zlo$ott> U

Ne gcngeroll5 ued htaa.", b*uo in drr forn\g fu 6end $e nBrbocf narne,s op !-,

fQrrgon) VDrspoJdlAu.{cro chsS a5 od&twur relrert"iimrrftrcr ws ary co;r/r. rhe

\--l

Famp-.Xa gartro*<a 'ftYrcst q^a Shc"n alru\€- fu rlrrs rbe m.<r "F. rfux kaar^U* ,-

rxr:rb € (tlW q*Cottect.d ftot Diqu.rnAqr", .Jors A-45*ctt'ar{ff;4t*1-,I f+nrr{ c'n) \/

Qir€sr$ Prar*rt'f n6rng

51. r, lo rhe dic^gr.^rn \ -/

Co,) &d u:e'r crrcls crn A4aUcr [6'h''u J(c,r) Acionsefltct trals ovrd *qkes the yAtul

Page 136: Struts Natraz Notes

- i (Oo) Auon&rvrer uses Fi{eilrqeddD clos6 onPtgt,rcrrlczl done tn 6tiarrs&n&9qr-a+}o'r

$'* m tranaPtr $e Clnlrol ro rhe 4"- g6" A&Ue'd'isf"

(o^) Efisu,t s,rt-rntut quoor to k,joo&,l\rl+ Aaattolsp.'n?js'r<#est conlalqg

f;rrrttcm = lnserL at addtzonal vquesi ftmm tlaluc alarp airt 'teAurcd

F.t^ il'td.

(ot) ficlo.,5e*vtet trc4rs c,nd k*€5 drlr .,€?jrst and tl'* %* cc"'P;6ata+ld-n flre

e-fiieg b decide $e fo"t'Beon ond Aotoiloc'sg rhat aYe rt4tlreA to Wctss

the relrueab'

[ae1 AuicrnSrvteJ- $r'rcs recetved FgmDrta to Tarm&aq ctess ohietf,

[4") Aetionservtq &tl's Qt€o,,ctt-t-t -) on cxd Diapar'*r&tran ct'ris ohjef - gr4e

) tei'r e *at'r'ncrr aoa,lalle t0 grf'r class (Uttptut'l"tt-) e^ec"rc{--'-'-' '

(oc) fts Su.Frctccs exec"re L' -' -' -) v.octs dd&ttrndr 6ay,ertlnrarner<r Var,e

€ - r, \ -^" th,rA cfl Crt\', r, . ,' o-- "p.,*^" re1ttost&.rarn) ond cn+s -e.rboa c+ crt\

(mtt"T b&fioseYt irom l:"j:j- '"r* '- /LlxJrrur S , o^^.,.,v*'ttnrt /

DiqnrchActisn etoj] tol.ose rrame i5 add'ilional Qea1rc+rbtarn varJre Lc6'I{5

\n lL{t l, -, -, - ) rnc/boot )

the Pr6l6tcnce of)eraHsn {'n DarcBaSe

- @ -tUrs ioserr(-, -, -, -) G'Plcrcs

''-'/ C"q) lnsert|, -t -, -) relurns /tcrl€toF'ur'rd

(aro) loic,rlfu*1or crs* entrtas op Stnrr5

..--. (ou) fiornServter parees il're atnka1€ ta

oW tb

rhe

the'

Acfiotl6ewte'r'

CnPnuvatlor'' f;re to decded

]r dtresnt

Rsun{tge'

DoD t Overrid€ exe(r -c f-, -, - ' -) m Oar Dtsfatn&$orr eto55 Bera'ule

glve Chaoce k? e,€cr*e fhe &qrr ct<rs6 €rcg'1e f-, -, -' -) rneffi od '

For exc'mple al'pucat{olt o( pcrtt-r of abwe mrnt(rnjeLf 'rck'{

olprrca*ton @ ofr &5e nrs @! t, @ op ,r,, bouer,

Page 137: Struts Natraz Notes

OiIe(ror! 6Lu(Jo.re:-

5a,.cP'qieaAppr

Ird€x ds p

Addgscr l5pIuli06ue,r $ j

fttoetllor j s j{rrrceg -j g p

€utar.j sp

jar BreS lh cUs5PffH ;

$1rer -api .jar

Sfn*A -cctr€ - l'36 ! ai

8trui6 - e.\hb,S - l'3:8'i.{Y

rJarPlrcs m NEB-rrvr\ $ Podrtr i-

Jo ) Sr'r.rra jar Btca

!-------4 o.jdbcr4daY

!-----t 6farfs - exrrc.S - )'3'S'J4't

Flo(o oP exeoal<rn B o-

\,

rl

-v

ldE6-lN F

A) pragra-e.l d.+logec s 6tu'd5 BqjdrAPPr ordr@Hon ln hxbs€'/vt"/

a)"e**.ofLlod-.on.Sl,j.tlu|>r+efuvl*&nnlne',,tfx,.rk,,ns,w-Jheoq.tfuften{

P\-e-inrdelizoJlct cf Artcm&-oref el*vr &n"fl *t{d (lanll.1 <*tA dt*ty

thc dt6rsrenf oP wdnl.,ltPl^c,l1an' (re?in I ro')

c) ft116n$ewlt+ reads ond veolPteg the err.hrtes oP

bercrue o? - oxP@ "

.slqtt ca PiguroHun Sre

D) Eli^uw gate]- ql-t$t- to $rnrn apputafion

E)

r)

E

4

.{fu- we/rane 0f e 5inaerr-rjsp ercutcz

Frduser clic6 ctn e'"H htdfl.'r liok Of

klanServrer bo+S ond taU€s tllrS

("eftx m to +o, e -rs )

Index'isP' (rczur 'to)

rrgpe6l L*k"t13 tD 66)

's

\-,

(,

cohore - altkn, fwl

Page 138: Struts Natraz Notes

\-?. upad" dod fuqra/,s rhe cor,rrot ta "ftldu6e'r'i6P" ftrrm pa$('' -E-rtPer: gg tepet: oc J\-

,-- (r) $e Aoaus€r'iap ,,,,*l*.,* on the bvxoser c-rrlndoco' -ThIs irtftr"altg cY0orq

\-., ftrrnBcarl ctess Ohiear (rep:r6 io loo). { (+q ro st)

" [,]) E.]duser sqbroirS fie frrrf}pdBe (AaaUser.J6P) . lfuSFonn pxge s<nas rhe

\._- re1rre6r tu &,urtofpn. (*e, gS {tr ) . *-5 r€{ue6r ccmrcdD R orrr" -iosrrrt c+!

\--,. 0dctilioQil re?rebt prrarq valaLe oloS coirh r€Auter '€,tro'aoa ,

.--, 0e) Auiun&rvre* " f*f , and taE€s rhe reryfti+ ('re8: ra n ae )

'- (,L) Aotonfuww Crecr.rcs Fr*'&oo elc66 obuer1 ond urrircs rhe veceiued

Fy.ndoro to ;e (rtp r +g ro bs)\_

_ [n) n*run**rr* crra]es ourDA**' ("eP: er- (os)

- (rv) Aermn&wret Cdts on our DrsprclrAcl^roo clasj g6slung hrt cr.rr &+ronc"lo4

Cp)

CO

Ohflr. Srnce €le4rlc (i-t-t-) lt not a,edla-ble the gl1le/rct&SS

exeturt f-, -, -r -) fYgfioct cojn Q.xeos.f€.

thjr &#x closs €.rerr-te(' - ' - ' -) fod5 aeJclr ncmat rellrest Pc'tarnet€/

varre (trnerr) and colrs insccnC-'-r -'-) 4 CIrr fotrmCloss 'C"ce": nr ro,

Thrs insert (-, -,-,-) y€furr)s ArranF'g'coo'a ob;r'cd' artrtr lq;cal rnme

(*,,,.ntt1 -P,rr"'..)'

jr :-.':

]' . ,. :

tacces s la,ttt

58

628-935tP"ttnte ..jtr')

}at --------r (.r)a3-36 -_--> (U)Lfutonservre,t frc45 *3

6r ___t (v I3-15 ---------------i f hr)

5? ___) (R)

Elt-5xl --> (s )(tu(cers.jsP)

(tnaex. j5p ;

tares $e q-.e*t ]

Page 139: Struts Natraz Notes

F..b.m tooorcl6 Ffi Yn \,larl daHe/q ,2rfrrf"rorz

hpe iS Votidcr-.r{ Ferrq [o-t ) DXrr.Varidorqrt Rrn.) coc need bb

Coof,6ure Vqfidoisf ruteg in Vgjjdefbn "xmt Breb6 6[€dPUiot fu-Bea" logi<"l\

't

fruUarn.' Wherr hrm&-orn

!)

J

Urr: t--lftas: l-----l

l!Er_ An

---4 TO &rvq '*tS probErn $€r'€ CIlr

V*aua.A.tt"nf-- clcrrs

(ar)

hmVala..rtA,$a"R""n ctt5 "

Adr^tl Xer ., is0

u6err I_---_l?ors: E---l

@

Slrrttcn tl !,il.ute uy6uot

ClAssr$ u]e Con

Ac.ttotl clc,56e5 OP

fttr *,tS tule nued

}:.lffi*rukr

ornP€crte

galpq 9o6)e'ftT noftaao w qt+! \.,,

@irb VcaidotorActtorrFt'rro, Qta\h-ridcrlor'4t'tloqfivrm t€f" p:8*"

Valido*rr rul€s cttr Forrnfiagee 'bard on 6e fargtt

[rot hrca o", r],e frroBenns & f-mrtget). 'Ftr,-1436'

t0 Sfeaq A$6n fr,A of Atrtd'ctc'ss |n Yalj&tlorr'am't

Ji

'Jl

v

.his glves one pro+icte probtern i.e.toben rocrrHpte 4rr-poX"r are 6lT

Stngttbt- 6qo'''' 4 ryp. VcrriaartrFsrm Lor) {)xr-\huaor.re."', ttpn crr corr't

r/}lle (ep'rarc and ilek€"-* Wrlrdafitt Tde{ P- eorhPnrnFs_te.

,-l

(vUaoL^n"* Ct)

Ctrs'VdlrdorDY F/vl/b '

the 3 9t rt'9('4,a A're

t@o 50fu,$crn6 (.r$t't3

tlterr:fJ

wh;re con?t6unnJ rlauacrro rure-s &T €otr>faro We'

Page 140: Struts Natraz Notes

adlian3 6ingle RrmB€an and rrtrtHPte

fur{}Pags basi 5

fu crse

Va\rdirf<xe8a)afc.r.-ttc, ft6 errt'X F-'"|ete

Frn', or DrrnVorraor<T Acrrto Fot "r

gingle fumBeo5'

hre cori rc

otbd SPecihng the otlion Frrb ffdltar, cl45 used '{ t61 fzr'mnone'

fuar5 - (onBg rrn t

gj t'rgj1e\) tsmtta- crnn$n>

\-/' ZPcrro-beao5 >

$l(fifml irrplcvrr ntatlon 7

6r$-T:- maFe rrtulliple

AGic'q cl65s€ 5 on

6KP-[:- lokg Faro&on

Ond olSo rr)crl4e &lt

!t p-o = in varidofi('n. xml

ZPurm-bec.O hor(€ =

ruf€ 05 VatideidArja't)

rhe # Nl^ closses

-E Ftlt-Oorl l%\cat rnroe

Rr- ooges

One AtJon cl6ss &tt

z-lPolm-lr;cLo>

Zf ftnm -hans >

,laLhon-rrnppings>

loulor\ po6 =/xvzr" tgr€=*E-n.m

rort,op

rmrre="rPr " 7-f, 5ot-*c.n logic.t

.' ;.. ,../

'' x yzAcruor

A*boclas5hame

I

lj

, ,,,. I,r ,

l

L

laua>

/0aiao grh ='lx{z-5' @?e=- aYtTkrrco3 "

zlut\dt' z

<l ottqn - fttl+plnf I > nl, /lr

ir'; .,

l'

.-', ZJSrnrrt - Conhg t

Page 141: Struts Natraz Notes

$e-tr E4tnftrlDdr

toryr, FSeg

AddUser.jsP i

nadifuUs,r.isg(hnat : form o(Fao =

" x"f zral, t

-j a,.,11 1fl 11!yri: ili:,

4hrot : ftrrm:

Dekleukr.jsg :r ' ij n-Jl

ztrtror: ftrrm orllcrr ? DrzO >, .,,-,. .|"a r: ,tJ.,

:: j

''r;'i

, Zlhrmr'. .finro >'i.r-

Sttp-Ei, 6arrple AUe

4Pnm - Vatiidctlon >

L?urn,SeYz

Va'

tx

z.firrm rrtrrf =

aftetd mmez

Ah.u,zPretd nomg="gars"

4$e'i>

LPua

ztletd ndme =

4?aeld>

LWl/_ earre="Fr$'

:-:4Aedz

l^S";*F"rh ""1"

b5 Ada

-" J'f dq'erds a Ye#rre/

Adr[0{c/r 'JsP

tt

d<ryr.ds=" l€+dred >

\br&abrrult!w?L*E,.Ut(rUfr

Ll?ra'z

?^- r\ar're="be;:-adt6n ryh cuei b1 etrrcrr{I;3p

zR'ed nome =ti;; dqt ^ds =

oq€Xlr,ircd, rnasts " >

aaral" :

i' , ,i).i: ..',

: .i, ;rl

,. ,:i \r !\,

\" .' 1 J rv.l-) - .1 r.;l:i ,

,1 i,.; ;,.i . tir:.:',

\tttdutrx

ILdEJ

&4tnls =' w4na9t -oa lc'g rh" >

Page 142: Struts Natraz Notes

- i \-/ APum>

zlfr:ta'*t >

4ftta -vo$&ns^ >

\JNorE:- fbiS S010$6rrl, iS nor Stri ta'b\e '

Fd(oBeao and Singlt Autooclcrss '

\-r R" *rs Ltse Solu-nl dn e-.. L | ..,

.:tr:._aArh ctoa gi€lrA<rc,nrrc.ss)'-

Solufion e ( r,JlT n rDulliPle TorrDflteS ave casin g $ngle Fr'o @n '

J-\'-"-'

taFe Rr,ro8eqo rgf,e os Voudok^ Actlgn lolo tol) DgrDVd[o'ttJ y'idronFo'Yl

q ':i: d*P<rrffLt Ao"nrrorbs

.--, $$- coosgure ooe Adoo class fd rilrlHPle ttffrs (Dith

'J6tcP-E:- rmke rrrrltiple Fornro$eJ **:,$ rptdPleAt$"nrorbS on ooe Arctbtd

f." [ompc,6e bsts ^ ^d^ ana ar#cranr{t-

!udc'$6n'xrrl\ &{t{t*^t'-' S}<P$:- Crn?-'gure VaUdqKr( t'\e-b \n \(

AuronPorb ul€.d bJ eccr' R'rrnrt{e '

\-' fu @'ch Ftmlr'8e bc'sed o.0 $e AoHonPoru (!FLr '-(

firr6 - fonft g ' xrn Iv

- Lghd-tf6 - CooBS:

Lknrr.-vego I ruurlc - 'l

'--:_'- -' ...\-- 4l^a -Vr'o>

\-/ /a*w' rro@r€6 7

- orre Acrr on ( tt$]lurt Frrb= "/rYzr ' lgpe='xYzActlon" Qaroe='"rp1 " 7.t

Cl&55 's I '.'--_::'I zJutta>

Lrnbt-g&je<l J ,

- fo;;;61 -r.- sryr.,="fxvzz' rgoe.'xvzhu'," narne=ur9r P

_ Hres 6rrl /A^tlort II Ll(ltrlc\ >- m-d/ a.*"" pu.tr ='/xvzs" t3pe='Iyzlctton' nx6,'o"t$1":

I -,...\ zlodar r^ -

/*tn-tqk > ltatjtoa.tn3a,oi", q z

Page 143: Struts Natraz Notes

i frrmPc€es

€arrre o$

ValidoHol.l' u\m I

above '

Eorne as abo\€'

e 61)e Atnoncla*t {T tot'f rtple flmes utrb cliPftr"en't

' P^ -tn'1" flmei '-'t

Atff cnpqrbs t 6-1tr 1,2c, 6c,nlt Con$6,re crne Fa-Usrro ctco:

" ..-. r r-t , I ! tJ

(r)lth dPf<tffr loqtcotf nat''egU-\J

+ Er pa{r-tt.6p miotproje$ $nr de"t6 6iv1n &rovart&+toos bX ustnq DlnaVarJ.rur'tt 4c566fz'vPII

^. l ,. /'r\ \r'it to +t lr1u oa " oPeVta+ton(Q .

0.:- can gar eiptarn ctiPkrcnt larxs 4 Enf'jcttrcni hnnBeons

----+ AcHernRnrn, Dgrn&rtorrForm ' cldrsged , &Wc,.t 9"15

-> VcliaofcrrF<r,ro, Q*Vuaof,rrf,r., 6lp,asr|enL,unr orrh brb rlu8armHc {e.rf*"fteg'l-

RrmVariclc*{crns, &* iry v4udefrt"S rnlsr be en86ured bX urtn 3

F.n-B"an \%rt't r-t.lc '

erl*seA gqft/r W,

brt tv- reet to ctnA6c* thac VafJarans

"^J

\,

: .l "r . \-_/

b""A ona

the arnon Pth oP 6"^ A{rtu' detse^ '

1 VuiaomA.*r,k-, D*Vo'a'*A"t""fu-

t^c %'"Vaudr,ftrns

Page 144: Struts Natraz Notes

L*r,r.eDrsmrcr,A.rro., :- Loov"rDlm}.lrAt'rtt is rbe 6u'bclass ,e Dr'Fl'h&fion cla$i'

Lvioq oolq one 0!6tc41 merbdcl *at is

"-!---- " --

LmoaDrtrn "r'At"r"n

65pe lattoXe C6.nlajn5 rrrrttiP le "g,5r,t birttr's"'

Ornt&ioIr)t rrutfPleoP

-trhi6

t%t.0

-TFr l"r,ntre rhe

ore *tree

cla$ i5 v€t'l

$iruorlon

opyr:adres''

Fom F:6e

Pro trcf tg ?' 6 I vOue ="ad d " I 7

$e&x ro Lahdle lfu *1'*r WCr:ll"J

Strbmir kf{uo6 *x".

grbmit lirfan C-onIld{\

drPPc',q*'CoPtldtl5 '

. ' '-: :.i

tFar. i sP

!

NolE:- hlhrn gubrolt brrtun ls taken coirfi nome $ttcn fie=:

roiu Solo 6e-rvctr c6 rqrreltD'?ar"ct'r !or0e '

E$;- 4htmt:6ubrob propenrS="st" value="send /> '

=

51 :5eo d gus to Se,rvel O$ Ytlpest Pc'saro \'alL( '

tA\.e rrilltiPle g-rbmir hrrfooS fiirmPc'ge h*'"36Kf-r)

aod S0rne oame'

zhtrot : €{-''bml t

zhrwo I : s&b ni t

Zhtmt : strbtni t

C-f----1

t

UJct norDe

Plt6i nctrtte

lagi o<^m e

emor I

add c-,;.-';-)i-- -1

trldore L:' - ' -' -)

{... }

Mer" L-' :''- ; - )

{,-.-rl

" ry&re' i:pro0enu ="5t' lo'lrre : c

Fdfstq ilsr" rJorue =" &leK'' l>

Page 145: Struts Natraz Notes

' 6q'-tr) DertloP urr DtsxrrcbA*tm daJs lortT Brbnnlb

uJode8ned merhod narnes (tP dra-gram)

bdJr,qs ca^Pricrns a8

6rtp-E) CmFE"e Our DsfnrOActetn elarS in Otcrf6 Can&gre

Dsrnrch&rtor) cto35 rnerhocl mrn€5' 80, uDe 0Lort elwvq

Caprlonl R'*'t' ' .'i

Jr^vosrrrrPt )

fpme BIv€n Fulliple arbirnlb b"Xons a..g addlHcrrd relaerl

/acllon" lconrrolur" tgrre= ot''rkfiao'

'r,-r.rg="rP-1*

y'utlon>

In fii6 Clt'roc4h su.bmti bdtcn &{doa5 are +tghi3 Ax.rftea toirh

ftr,taro \t/de' '.J

rJf&romtl-v = 31 2 -

Apprmc.r'@'"- (us,ng D;sp,renfu-tto"ncl&s6. &na

llrh

S*o,',tt blktrt

.i?

6r,,.rlwrt an

ir>g,,c(.,-,-i-)Ct

: ,----

3

ts4 t+tL '-' - '- )t

--.lt

&n+<(-,-, ---.)I --.:LJ

u!93:1gcfi0; tare mutiple Submi i b,tt.'ns ln furmfrac6s ha^rrq dfPfcten* @?ttor6.

\,StQ{9.' Deutluf o{.^r Dlspor.chAdlso cl&t6 l',n-lo3 d\?krftil t6tr &9rcd rntrfro4l

r ploce htaambox Jn ftrrmpe4e anl $crrelele *t rntAodnome oF etrr

Disrrrr,$Ar<.ttar'clo:S os dg*,n1. .Vs1ae .+o fui hofa.thx h-r"d <n dre

eubrrxr lrttrl\ \krk is cucreeA (*. javasoltr 8* il^}S)

$,u lrc,r:rn3 the

6ttpo

Page 146: Struts Natraz Notes

-7

g'P@t

disdlole druralh

66"bmlf

merbod

&rl'lnS6

$cp€:- Oofigure Disgcttch Arrlcra clars io crrt 6;vcrn crn?tgura-laon B'r€ lo'r:t",X tl"e

h;d.tun bo. nora o.s crdurl H crrrat r€+{zst ?cae e.meten VaJaL '

luncry1 ft rh --" /xXz" kgpe = " Ot'rA<ttcro" nctrr€ =

'' r Pt' Pc{.{arnefor = '6ot-rvci' >

Llauson>

In 15i5 6pprocrth@ rhe

CLrr DtsgakhAet't c'rl c\c!s6

bwr:scrr

htu aoPHcrn6 ctre nol- trghrlY

ndrneS b.h iF the Java6crrPt

fhe aPPUctr-Hcrn cDiLl nof drdrk

curple d oi rb

)

gx aadrron 15

;e rkrls c{$Pod

fiproach @ [. srq ]arst'uPDrs9a]chActloo clcrss )

{cctloo gruh ="/xy2"

Atton&wtc*&rrAdoo

fppricot on Peoarcd' Pn Po'ic1

brn'copt = aad

btn'&0e : ntd;fu

btn' or{B = Ttrmvenrr(r'ro = rtrmve I - *-,-*a ^-,@

tuf€="cxgAcfl'n'' n*-.J rp;1il* =

6Kp€: - P€rlrr€ pyDPertles Sre 1'ror'r',, &l'rnth h*hro C&PrlaoS

,1

Sr l>

t-, enp€:- odd rnrrdpte &rbmit !&rtmS io Rnmpage

.ryt9"6 $crbered €rom pr6t.rl*o B'redl,td, rn6dipS

, rrrn.ve

Der.,ctop 0rrr Loor.&pDisflercbA,fior)

vnerhocts' Ond Glto im0l€merlt

shpr,ln ln rhe "t.rg*.n.

cjass Lctrtn 3 roqltipk ' --a.F,,ld

u3q{ Id

g'r6rndme l----lkarrarne 1____=1Ek't,rt l--------l

@@

dn

I R*trc q, g0lqfkr6od haf t ){ * m= ne,r JLrh Ha+o l

r,- n t("br.,. q+l', uinsent" )j

b.Frr C' utn. a+z', "SE" )r','R.J f '$n,&{a'i '2er4r");

, ttiurn -m: (9lbs€.t(-, -,-,- ) f--.

-,-, -, - ) r_____

gnKgl"lol,"aI'lotC ) *rh,a a4

Page 147: Struts Natraz Notes

h-*lngm49

eK+@r-

lr*,t\3

\loj.ue .

NofE:- -rhe llap o{irt .rt}crvDel Vf gerkltlul'oa Nlq ( ) mcrbod asn}a}n6 ere^ryfs

merhro.lYeA6 oP he EL5nir |gfiaa OrpFfanS cLg W Cur*r)os anl-E - prrrrt -: g,e

a( oar l-mpq D.rae^,A.r+rn elors ' Gs V'lqfs,

&0ff'guve oar Lmv+.PDracor.rrA"rtcrn clcrs5 in 6rru6 ccm$3uraffo'n k<

the narne a? 8lknit b$i$s ag odrli rcrrar Qeoy:tg'rfouar'r-t<a

Tn Sters- am66 'xm I

t6f,e=- dr&rton- p.pe =" I8' Trarameror-- 6t " >

kt*lon Porh ='|:t't z-

zlaucr'>

Flotn o? Exe&rton: - r

End use'r c\ic\6 on odd suxoit br'rkro

tbe re4 r%t ( *ua teryreat CIo'nFdn8 3r=o'dd os oaairbror |qAasrlllcrrcLl",r \l",l"ft_,

kfion6ervle-t carrB Qrcatn:.:l-t-'-t -) on er.{ Lout+Dtp"Atnr"o \-

C\c65. gince not aoartc$le it $rxstu SuflerrClasS €neorref-,-,-, -) "nerhoel Y6d;rt be gxea*ed'

t-,

Operolloos /'

@ ,e"ar oddiHonoL rery*t *Y: Vatrtc (Cl'aa fto" '"" ) t(t fxnPt^ms ,s.qrse LooElL? ope^crtl crn t'sln3 a'ad wrr,re onl gers O

* bm c"p1" kt fi.- P""ftfcl &t. ,@+-#- : ' U

@ Or,,s gularyn,rbodl1"f t'l rncrbc"t ond r€cclues $*f''11*p ohjerf,, \,-\.

@ in rbe recsvled {tr,shtlol obes- }b3!1' k3 rdc,d l/al.o :ullrt be ftr-lcrecl (@nort'rn3 6ctt* tnseft") \-'l

Ug &{il6 iffertG,-, -,-) s? as t-sWDlsnaJd^,fuJcrn c1o$- *o pruceu+

\--l

\-7tbe t^€r1t-l-e-st.

r'l

Page 148: Struts Natraz Notes

NorEa'.- $e*lng Volue fi"- firro|f-rli€S'

Coue e Lmr"P 6Pa"aH- .

g*'ng t%-6;;rr*u,Tevelse Lool4 o(.,eroflon',:

Bre br gt@

---r Q6 gxamola

P18e no 4 @-e

gq"l,l- hird, lsY(.J.s o$alr'liH'e3 tD tbe

RiSbr c\tch oc) Pqterr --------+ iltEctiQse

--., ps1;oaServlqoam e l-atirc'"--] ---'-t

------o adasrnrta Cr+a,loiti rreS -'-----r

Ue4a)r3le &n n* ct*""if-__

.ftre,

PQierr'

sw-s ''-

Sttlg:-,--/

.------.----, Foish

geflz,rt Appucart n lreY:cttt6: I@'4-(P'Dp"Y?i6 filc )

Y.geP &lttr'rng eoil'es in Frof'errres

APPtr cau'{on Qes atru s' fx:0lotll!

btn.caP.i. = add

brn'@fa = "d'PgbbD ca,?b = '

YLffove , i

Osve\oP DgConrr:-$ cnr cJoss

Flg---r-r,ao------r clcts5 Con"Orh5q'-tln"*O:t

@

se | ,'l -,'

@ pv<rce&ve fo ctevetop opIlca'lon @ oP rhe b.ure; b1 ustog fl5'ecriPre roa'

6rcp-r:- Keep $e 9.1tog,x aop teodx in oacle DB Olo' (Emeloyee-io%)

'torchora, Cro) ,'---- r4P1a(ro)' Btsrnot" \

06r) c-'ecdc t4ble eaplq}r-loPo(uertd "'lc'

frflryrr' ltt'"ho'e(ro) ) cd&e56 yarctrora(r'))i '

.i

Sh(P-!:- cfta& t'lcb Prqierl'io n5Ecri0se 1DE

Fi\€ ---: Ne!o-----'-e v'lebPrqied -4 groretFlarne t

F- r Pi"'tsh

s0bmirdog ils ts1 i5

B'r" \ g.bmirtn3 its voJse is c&ued

Q{)Pn on Lmrr'+ Drsra.r.nAalao rePcr{, AgPn oP rle

Osrrur5, 1.3

';

.req:r 06Conea.rl on . .iava

Page 149: Struts Natraz Notes

Enp ,* add oJDBCt4'ior kyi to the Aura pa*+ 4 the ftqje{*

hgru clc-ro on prlicrt --------+' &dtd rarh ----'r rlild exrcT Dor tutiltel ------+ B'o<qe 4 *rc+

elti$cct+'ian '

6kcp-vn',- add tr{'tB€an' Ae$doctosg) Rrmnoge 6 rha pqj64-'

?-tghr cUcfr-rrugql'ert

.,---+ *'*a tb Rirm, A4ton ( J"e -_-t.'e*E -.--1#tr;rffi r6E''l."ltH-"ix]*l_

------------1 ftnn\ndpe 1 Ih* R t;l +"b -----+ osrid, *<rnrnet'.-

[osrneme, a.td'r6 plu@rfg-----+ t".rb"dgf tab n De-*..o-ralrctrrr.lr-x (B=) :--------+ gar6clE-P-l

Herbo

rr&disp garh: L/tr5.r'.i:U \./U5.f,'d5?

-=--=4 tstu,l6-ffi1 -----r [r---lr,^r N4me; (+-_l_= my'*r=ifrJr^lqar'rarv P*o.'t+ot : L$d'grigJ----:'4 \:ah"4lt',b E e* c AF ereu*e(-r -, -, ) ____-,' ,-".a_____r J

n rDw;qfttd*tq-114 /*'f,la.rre ; Suou-X xlr.-t' fl;ttr"e

- 'l - r -- I -_rr' 'a

v'tr, ,lMA{b w*'t lQl:we-lrt \.,

ralrl I.,"4 rtrl-l"rpFT!-,:.4-i - ,,l"T- ' ._

dtcp- ;.adalflurnetegdroitlcutt('f6torl€$o'.n"6ed...............11e+ttt3:

$e co{$or'5 9rc"" PoPnte* Sre

,-

g3<rr us.,r'i6P o? Po6e No 1 W '.-

ry U, gsvclog 't't Suottng cotLe in *:^:;

j

'€Rt grnpAdon 'jcva oF FlEe Not (t'y {- - , , :

D e'$P rc the crxbroot 6a- te tta lrrodtst't- '

" ']wP''X'.- odd *cutur

t 'J'P to the crxDr uu I r.*'iyq,.X.'.- Odd +citLtYe'Jlt' rL' 'r'u \-/

.,.'rh,vinP'- ffi] --------: Bru rh'ytw-trrn----: isp - -" E Pna.'e : L-E!llee!l!-J --) Y-ru )'t '

-urite. jsp

a"/, arqpcEt't*Attrblsef"o1urcuon") f' > ts ft'nf ' -

9K,f-E',- aad $trcr,r-,X co.lg ;. Usor'isP 'J

2yzxryllJf , qetAtFrf e,,+(.{ uqaxzttt'on" )V' > tt 5{!0!a}{&J'" -

\.''l

tlrD

Page 150: Struts Natraz Notes

,-\- Stcp-I[:- (ooBgure og &werr totrb,'rryal.ipsc roE.

T}$hc!ck crr prqled

-.' Esrd@aa Tuna6 --_-..-{}$Eclif3e&Jar,{ a{Pucq}tg}.)

_ Fite uptoc\c\iog and l*-v"ynnloa&og .._

il8,e i5 CAUed !iec+ lWUn$ oncl yeuetr6e

. i6 cr.rred fttedcn:,otocrolrrn

.,u Sruts Btu% hr;tt-lo Sape'd_ ?^ FEr.4loocLng.

'-+ tdtle d<rrlopin3 &bgcfctt, tldlqnrs% ofPllcalt6"rs FtegPlo€la|;ng ar,i

duonlA,O,oS Op€rc0ilcrns Are ?r.lle irnpcr*cnt .

- --+ Au f;6 aod SrdaS oP e Crnprl€,{ tt6erhor rb caged l1eftercro,

Y

crient lladlin e

proceduve l-o der,elop rhe FreUplsctinj apPn usJ'r3 8vrurs :-

&-ive^ l"lcrchih C

wl*v

cr'jpS, b.doc

skp-r;- Design f<lmpcrgg lroring

&terf firer6el&,t tr(ez

FteUpl.u.ttn3 CrrmfuqenfS

critnr rrr-rdnine Fre8gsrrrn,

: zbtnr : fi're prD?erA =" ftte l' lr- th, ,: zhrnt:$re

frypfxffi.{ ="f)r-1* [> l-btz

rc Seletrrbe fi)teJ

Page 151: Struts Natraz Notes

Otg . apao^t e- Sro+5, ,

Dded.&rnDFrte.

ThLrlte3 rha,l-anq

9g-tr:- Design Farrn8ea.6 cta66 h""r"g rt,e gmpertres op fgpe

.,;6.-F're qce fuft'ftr%

UPlm{tsd".

Or€ "6tfe4rns ' rq,res€r*lr,g

9f,'!-; EerrroP

rrnnrr^'

.'J

Jt€

closE lD uldre rhe e4toaded .9r to 8er.r'r rrao'l"Dne Fles|mra 'J

tbre rsroainl'o$ 'regour@s oP the aapp6*o in Nonrul

'i

[:ay gprnple Ofl l)Co]fr'1

g ,*r**u dtrJl'd^3tfrqoung otbor trocrrcel

0 lon-,t dunloa&nl .e * .'*yer.*,rce p"fl os A""o'ua*lz

gi")

(tr^ut rtre *sfons

4 utb-o-{fn as &leonlo"ttoPle'rr/l6'ae

and otfu' Fre-l '

Fre oPtoadtngapptsc,,klon @ oP ..t4" r'ro'or @' 6,

\,

EJ;- d,"raaantr oudio'

D R"fr- "d0tnJe dn':ntoad;n3 Pleae

F 3*. lire serrvele]-, it?-r.sxgI u la$d 'anrr tii.rle 'o

io j5p u5in9.Sri{*l%

@.not," oe rhe Bre

6JuY c{rtlyrt CI-, chrr,.,,ltu"l^Ae

NorE:- -rhe qbovf. lict rifie| u? @e' &n !e ured ln aq oeb"-s'ny

$rutl ac[fjs [0 Yf$-LQlt/ Tesncrnle Orq]'cd-s'

-E rx^8*.n rclcrdte da'ob''c{rn3 in st'<''rs o{Pns ure'rntrll- :::'*

n . .- n, n'r{rrn , p1*^^ 1 66 a ft-r-l on ,,"

*ot Cc"+ctnr frvetrt !'jd,reldrYctrlrl

d*nerf

4,..- \_./

tr,,fix,',' f+u+r(J,i \-/

\-/'&nctn cta,"5 q

',J

.'.../

*o *t* ("g"nG'JV!--gj,, 'o ttrrrl,r'e.rf - Bctnmei -nrrer' xts' ) l-@-

s+&'u.nt-!n"("omt;*

thar €xtenel"e 'fi". oi.'*'L"' tn*{'{-=]}Ki.

Page 152: Struts Natraz Notes

\J

poc,rolood Autdo clcr56 & sr&JJo frPl iso n otspch ctctss

innc,r inrcr?trr€ ttrd are

CunrGini.rq tcoo inrXr <larScf Ard dr,e.)

Q FitesrreamanPo (;nrzr etos)

@ fJu:oo,r.e 5r*o- I"'fa ( inr*' abis ) : ' ' i

@ S*t,,,I"f. (innor it'n'Pttct) .-.

rhe 0,(9 ioncr et ol5€s

aPPn on

btruc&ril:: -

.brBtes in ctl5sPArFl

hf isp,i6P :-

L/'@, ta6ti.b

zhfin) : linl(

Neb'xml l-

6arne dS Orbur

Sttr*S-Config'xrol I -

&wret -a+i.itr , 6hul-6 -dfte - l'.l:t 'dQl ,

l5ttuJs - &m €i g >

l1c}l.fit -rc?Ping6 >

. lott|cm frtrh =

1r*rrr6!1ffi,- tYcr'lag s >

r"rpr.,i*".rd rto 'Fe@KtP*te [Sr*e't:"e" )

Sbtrrs dfPn '

' dalonloart",-

.,1 li r' 1r

LnAA.ncn claW" .:' -,.,;i.r,.f

,i

[\reI}ft,,t'-" I ok " ao c" I >Emctbttd

ttaft,rtoe$n ta dprrL,ar

.lol',r,

@ E,ra,nr'te

llJisp'i sr lp^*,y

" /dtrlrl'r" tunu="t* Afiao

Page 153: Struts Natraz Notes

/ ftgrLrt"n '3o'r<

imtsff Jarra i6. 16;

iroPayf &toax. @wlei ' x ;

,r rr ', . htfP. x i

lmpc|lt oY6.cr&che' 5l'1}6 , octtctn'

It ri 'r ;,.,*,eetlgng

ilglcnon

i i , .l-.-li

e^tcrrls

xi.'x)

D."bd.4ur."r

prorcrrcd

"!

i

ger$r,rrotlo,Po ( At'tn^Fhrn'"g r'" rkttc' F:n,..' P '

,,tt )fltrp&okr@,trelt frlt.,

o(-

Frrccnon

/olnon:> \

1ts, serFleaa., (uG*r,r -Dsrts;non ] 'oruclrrrer*; fitenatl1s ;"+ B'rernn'e );

ll gu n*s n Sstlerccnrext ohj.(+t1

S*fetCorwx t ctr = lqtrftr' get$"vrerGtrtrxt()J

f/*urn srream o[ie!] po]nxnt ro *p Be to'S '{ocuoloade'a

Telurn ner, Qeg"cesroamrnPo ("apptican'o. l,ns<*ta!' uu Arerrare)J

' nk'r Valrid$l'e' oe 'Org'o@iqlf*:€)--, srvl€r is rncr

I'otd;ng the 6ft"ena oP fottor&'vte'' " clars

er,trq Sh'^f6 ALfion dars ' .i,,,

i .r i..' :'

sntrts.ocfron.Atrron dasti r'

ohia,t - Thrs is Vis)gle ln

] .-, 'r'!..|

l:

Page 154: Struts Natraz Notes

i gcortrhAuio'rr '.-

-t eue.X oHcrfg Afpli cdlidn

ohlre develoDoS lotge

m'ltliPle rrsdule,s in fn+

ffr6 on oDe Ped rnodule

-.---a JP oe aotv coir\ gingte

r T6 snecifl the Srrc6

coriK rhe {trrocorng

in \rltb'ttol

Zee*lef >

dePault rnodqle fnnoat re ar;rbart nonre )

a0pltcorffin 15 ;5 recomended 4e crears

Conraio 5 One

Scole SFrcd-$

str(fS 61p6

bols '

mming cCcrsheg to owncorrr 'ltr'ls' cr;orl< or:irlr rnqlHPle

Bret4cYa/ingfiutdPlerDodulesinsrc/6a{,Pn"

--t'lh€ e^pticitlS ereoFd rrpdulea oP sfiLtrs apPh e(Ye caued

tP 6rYu6 ofln i5 ho'iog tcoo nomed rrod'uleg ihen toe

5 rrodule.) crc tterc in tbat gil&t6 apPn' ( t &Faltt '

Eftur! Coohgural*q

Crnf,gurafion B'res af mtrtriple rnsdtr/es uJe need tu

€ofties ;n 6e5'xro I Bre tolrtle can$grrrn3 Acign**tet

acrton zl 5-n>

fic*ton6ervt<t zl6-c>

lp-,nt rrulliple srtctts 6ottf,'tro**

Stcrrs c.rnBruvaflao Bre *rre i5 ct fJossjbfltT o( ger$^iJ

rnnred raoduteg

Con ScLU totu.)

? $amecf j

.J

\,

t-/

Bre oP

defunrf D

6ila"k5 en

ZSC6Vlc-r - nome >

Zservl$ - sloss>

Lioil'(xttuYn >

LParcLmef(tl -nome 7

. l{xtlc'rne& 'Vabte>

4it'it -t'atom t

Orn$X zlWal"rtu'naroe>

l"ua-t" I awurs-con$S'xm\4e-v;

\,

\i

' Lio\r'gxurs conQp

Rrc oP oac'(maAe I

L.,,n"

,AoilStnrrs &nl+l 3\

ft'. "9 &"rdhodrrte I

\ zliniz,6erv\er "

- Palam

)i-", co-',helnar 4P^'

Lp-v > /nrB-utF/ trltl,J- c-Ag- EtL'd€nt 'xml 'Zl?-Y>

- ff,r{crrn >

-F1aro 7

?r::ffil"-,T'H'l ; ft s - hc"rru' rrni 4 P-v >

t-Pq&mz

Page 155: Struts Natraz Notes

*€

o

kte

r)

I \-/'

-) fic bccltt ln Acrpn ctasS at6, aqrhe.6tc{r-6, ar*ic'ns . Sti"r,A.rr*,

(onftole blrrr tzoo cliP?t:,crtt rescr-rrceg oP lW diPPwt,t rm& teS '

is g;urD t-o rrtDt1a,t<,

Sut*kn o sly',td

orooXs be CcrnB5t red in t6oc,yce mod,ule .aj.dftd gsrst tcnP,gtrai o6 Ate. and

f€r repedt- l*nX itoo &d{ili.rr.l \e4Rsl furcrwfJt/t ltil"qes tlej a'e

O Pogo t-

Navtfladoo blta dePaurt modu le 'resocrrce and Narrcd flodcaef2escr"c e 3 -

(r) d<plryrnent

l€h-rrfr 8crvlff

shartd

_P'"q!- lsras $e

hotds rbe

iavget rrodcrle mrne .

kog+ tsoc.rre ide*''A'c*to'n rnrhe.

,-t'l'

gfrats-Conff$ - mocl4'xrol 3-

lacHcm firrh = "/'rtz' tgPe ='XvzA+lcn-" / t

N01E'.- 'htt ooir,,,g 1r;6 'gsi6p,Actao elasg ;t1g resocrrre ol |outce rncclul€'

gives €geest to Brlr.rranao and t"s &,,wxkttrrn na!i541-cs ilc

ccrnrrDle h SpeoAc ^ftsrull ol' lesuno{en mdule' ftt{ rlrro *'rtc#*r'n

Mel, s[outd 3e] reluel t' ]-,ng ]a'Bq nrodulehctme anJ 'ta"'6t vertr'rct

I

harn e h"l PYt hx / ?c.f e Odd;rlcrnol r€{O€st PQrc}hetc,{ Vcl.{rlrl.

rrtis -GmBg. x rnl

- ccn Pt g. nrocl f . xm1

q0

-rel €recq tt t-'-'-' -

Page 156: Struts Natraz Notes

N'{.to th€ dagrc.n

@ progtot. deplogeg

Jo *tS ftoce6S tbe

3i 16 applico$dr)

logfann &H6) And

29- lL'lr.r,.

-

o{pllCafldn 6nrv€^,

A*on6e'rv tet 'lalYe$ P)arl -

in crrebServer

i ot rtatfrrrHco

cd

o+

&r{an&tvlct afo 1ed5 Vc.via4 (s\ht& iqi.t i p. av4p,,qlr-1 \lafups .lo ye cog hi, ze rndllrrut"rY

ond thar 6rai5 ?onsgrrradtrn Br"m"rrs in {}4{---<, gpbccflrtrn,

@4@ Eqdugex t## ^ -€ohtrtrunr op , A,Jap *+ bacpga tp. dePf,ilr n:ndtte-

In the Prucess lcaed orr upt k€P,|- jn ftg,,*^ ofue: oP e[ttrrtiok> 1e.I

Te1l,tr6t t'itt be 8€rEycfcd I n Sffltfa a+fitcaftoo '

Th5 yr{p.sr c6ob)n6 roo -l1rduton^

***',,,T* 1ffix'psv5

@ A.nt &.,* rct06 anA towt the Y€#rebt'

(O nr.tS* t$ qqrya' pp daPc^"-tu t*tt: " 8t"'i6- conBg'xml'

y'rrffa gtc66 t-r*rorc Aclr- rath ia /at'ttl

l0 *r 3.pirch fulon clo-rt trr^?5 ot'd -k'r<-s tbe rtqreet :ond

fsAe ddlrloral rqreet glram V4!rp4'

.';

i rr" vd,..e oe

* p*Bx" addswnar ree,,rebl vr{ar*}c fant',le tx ro

rO Bcsed--on rroctl ,,Ax_ moc.r.^.,,r,, Fre

iha nodl nodute ?elalti *'3f-'6* - ,, ,'' I

13,r,'P"A \t '',/xl+"

@ s*ud "^ ?axe--xtz ftre o','All jTl,r* Tf u)

rrLr5." u'r r-9- . **{.7- crnvrl - rra,r. ^r., ft1.g6irl be loorco ih "i-l-:lt---t-e0ilt bc rvt:

@ fu6on6ervter cofr6 exeoure L-' ''-'-)

Page 157: Struts Natraz Notes

NoviqoJton bet reen Named rroclule Quso.ltce and De?ollb l'lod"t" Qevxlce

lsB'

@Parb =

srur5 - congg-rDddl'lnnl

Z- o{rlon

w

Navi$oHctn

@ gqrqeertnl 4Srrcrts af P

r.b"

0..rst

4blrol: lioK acH6o:

Cno

4html:lior >

lgn rcn Ncrrre d rnftlule ResUrr c e ood Narrrad rrodute Qe-g'r ct

tgpg ='org'otrdre ' 6E'r6' artl6n6'srd"nAt*ron 1>

6r1(}t5 - rdnBg .rrn I

6W$6 - ccrn8g -noc{l'rrn tsr(Jfs ct{' ?

bgpe =" or5' ofiolno ' Brr&K' e"Hdr6' fuu,A.rt"" /t

=" XrrA-oo"" / t

AJ5? n , ...-"

, r :nru

.-'' rrt r"o' oo ?' @->Gl0

tlaz

4o{ji.m r)6rtr = /stotch

5t{r!t5 - crnerg - n.'cAa']:l

Ia$s{', O^ " E'" tg?e

ksorfuvrer

Page 158: Struts Natraz Notes

--t In ev€rb rnoddl e relorcd Sfrur,s C-on 6gur altcrn fre rbe p,tr" $eon, At-f+or'cL:tss €$ , -&9 fqrorns o? it,oJ moclc'le co)rl be a-r'g3Tr€d \--l

-> 'sf 6fftrrs opfrncdfldn dsrtt(rto 5 - loge o'"ott'f op rcsocrxreg ' ffen '*unk- a]oat t--,

IClerrtoprogthotgtiGrSct0Pl'lc4ltan[o'hgdigRtrenrrtct-tufef:/\-'

4 vo^ ,,o.I.'te is ro, a &{aratc arboilp llca}ron, il i5 a lo6rr^1 lz.'a} l|€'D in *r J

Urb apPfn ' fte c;xb oppln ttrd rr{tre8{'^,l-s OllEe oftryofionS 6-n-fdn5 the \-/

\-/li-.$rro*tng rrndlte

\_-,\

O rea'tg rrrodul€'\J

@ 6ro,cft* n'ndlle',J

@ rcoacrnia modlrle'

0 bu"oi rrrrsScrff\f rnodute ' v'.J

ObJpor crnl6 u*rn *c crces o( *a* 6[pl lrnpremenrs 4avo'io' &"roLiz^l"te ---'

ioterPace'

I -Fr: u'*- Lt,-atcn ^**:

----a (fr. Con'k Seod flecdt&i oheii otrcr rhe rfrcoorr &@r'Ae it 15 not &'tal,za.5|e \-/

obyd' -To 6otve *te poblern tlet o,oe +- Bturlor6' -

(l u* wn inslcad oP 124"n&ts .-/

--, [LrfxrS aye %*,n'cL eaYt]s { deffa'rt g '.J

--, V.,ri &- ,ralt d"$ed o'e s'Wn"A *: r , l\ t^ I-' v-'J '\ '1-' 'Lr +" Gtreuot fr"-croor V \)rctb'"":un

@ c'Pg 't" #rl"ab & [2n""nSet o* *'

:;:: \-/

= ;":

''^^ * Auasfi..a,'xa owo ttre *Yu .,

-r Alt c@lPqfidr) Farrrrarv. >ta'rnt'r!t</ft2 aTt 9*"y'"yt" ohFrts' J\J

$o\rHon @ if tecnttnen&d t-b ttse

+ rlsfl ct.. tot'n$to t"{Pam o-"rs (o'd qr'ortoos 6.6'' rbe ^"t-j....-.-.-.:

Colleenoo Framerrrk Cdxtgrtutlt'\E thrn tllse run -aXnchvoni zed &rc'sH'aalurQs

R" krtrjr 6rerPtr.mc.nce frl fr,r"1 Lro, *^hrno{' and e}c"'

-. y? flo, aoe tmung to qe,r$orm l1*h rord cn& u:,rrc ofrJralb'ns 6n rhL &tt- 4

Page 159: Struts Natraz Notes

i !--, Col\&n em Rarr61r6, E- dafasrrrrefc.re *,.,-., U,u SJrrhrrDnjzed fldtashuAltr're Rft

Oclrei$ln g ThYead S"fu.A.

- 5ll H6shiob\e, ved-Lr clrld ej? '

-> 't0 6eod oo\ledlon ft*1a 66v Dffi'Elru0futr€ ove'{ *)e netLrcF \' *e obie-tts

.\-'l 61$ 6eiricdizalitg

OhiecrS' oftel @\6e coe carit 6et'd rhor @1" DsJcr6t{udLLre 'oy*'thu

r€i(OCT{t

",2 --) trle CAn't Of,{ eath gydet-oA oQ QegrrtSer fo gc(h elerne'rf oP' '\""dLlsf

\--'2 be.dL,,(se gcc-h reod oP Qesrrtr&.t rr6fl Gtnt&ln mtrtHple 6hiea}3 bd eo!-b

'J eEmenr 4 ArraSl-rst .ttqrs o116 orre oq)ecf . &Jr t{.rs .qrla+cn Catnk

\'r &rne in&'re-ctb Loirb @ ile tupfrrn oP g.f'o crcrrsJ V'o clcrts'

-\lC-R-l rs[Pecrrr5er oh1; ' al 6'$!sr ohr J

j- lrot raio hsd "l----7--Tz I

' \/ Jo&ad;s ,l* ; q\ "rescds * ''***

thl d"eartS b rTtr elemerrs

A An%Lisr oai ro/rr/eotr

\-/One obie{, of user dcPloecl iavo class and odd rh}

..---/ I ;'rli; r::

cbjed $ eoclD elerncot oP orva{Lrst, 1bi3 u*1 dekned java. ctase o tt*aan ',::\.-'

is caled o.T,o clars (<r) V.o clars. '\--l

5tt.,de.,t8ean 'javr^ ( O'r.o cioss lv'o cltts5) . .\r'J

. Rrbric C\O55 Sr.,a.nlBeon implemofS jarn.iO'SrrariZaS)e\-

c1.v inr no j

.. V $r,iog qcmr, oddv6 ', ,l

'r/..\ ^--- '

Page 160: Struts Natraz Notes

[-q'. to +mnaft^r rucn6s 69 Qes.lr&r- odj to Arraylis+ elenf,nrs i-

Re*,r6et 16:6b.exeorQan ("** -* &m grudcnr

fi"c,6Lu. ao : ncur {'"6Lr sr t ) ;hhre [rt'nexrl))

st, S.rNo irslerlnrc't))'

sr' erNa-.Lts' grSnr"6c'-l ) I

&. xrAars (.s, 6*S"r.6Ol ) ;

/lraa S"a.,tBu* orags eqj r0 A'"ULlsL ele'ner*

al.add csr) i

1il'w,.

t-t

"):

r, ({t.,r,S.t ohi

lor qio, 6ta

+32 tamesh vi^3\-,/

oU\./

\l

\,

t,

\d-'

rte

CrPPUo3Hong '

9tr where did torr use

ry-;-Q cra D.r,o C$r) V:O

€tcmcnto.

&vabec'Jr 'n3rur Ptu'etr !

clcrss obite cof{iog rec.rrds oP

O os PeigisRnt

@ as Fnm$ean

clcse in h;barsrc

clcss in $xrrs !'r

re$,rte in Y1VC!,

er?pllcolrns

Y,llca erfP\rdafiang@o.(9 crs

(t o$

flodelLala

s$ngBean

V.0 ejcs6

in frni c4pl;a!$cns '

ro s+6re rnultlple \ld$€5 4 fcrneqpo6c in 6in3\e ohl* tl"tt"S

$sstorr-li.'cttng.

ond erc. "

Page 161: Struts Natraz Notes

i ,.-. --r tohile gr.rfier;ng jdbc profrrUcs Rorn ltxr pbpe/ritej Bre %v,

- E" Nhcrc did Ua{ use fir)le.ddn5 in W prnjutl.

- --+ To 6end Qesurt&r 6g6169 cryq rhe oeru:cr

'---' r0 mcuntrrio roa' py'pcrnic$ in jom,*,,-*:jil T:"Il.-,.propc'rcr crc,s

-- To vninroin Jnd; pruprrit3 uJc necd t1a+ Dara.grrrrur

&re DPed sora"ttkv Rqurn",cl4i

*-- To nr.rinhuln hrr6e c.mocrrr,f 4 ap;.

!-/ *sgton c,ftri bt rct.

'.'----+ Jo mdin fain

fut Stnttr.rc-S and ele....

dolc. ,tre furs GllanolFa6

6) ftr E orpte aPPn on 6oior'Arr*

pdge No's () *@ C tf.)u bookr€t'

rlet@&P )i not ttteYe. - -r evm il-otr3b

i5 not 7.1d'rf.t,ded Procel5'

rlat

orJ

CryU $e P<uds oP

(

tru6e amurnr of ctfa ar'C dnaticartl Srot':crbte

in Ses6icm-Irc.tl4ng toe add Dcoz'€hc'$t'ves to

cro<l rhe above clisclss D'T'o el&JS ?e'&ry

ar/rrf ror>_:

ib ts not r€comend€d ko Send PesurtSer obj

[t- fu-ru\e to D.,HmHcn

[&xru&t to colklnctnFatn(-u-rrk

{lr- 3r6e lrrler to deshirnrlon LaXcr d;'e*tg ' Bccarue o$fing Jdlc code in

0esnm$c,q 4u b rece;ve QnslrtBcr oQj

Tb o\,ercorn e

Dalc^ Srn crure

lc6e;r dtt rrl[.

frlod.eYo.s

Send ftr^t

j--

Page 162: Struts Natraz Notes

JBN ( In..rnor1*o1i ,*,,,*o.n)%

llaung ccrr o{pn croyrcrn3 Q" OPPcverrt lOce.tes bX vrenderi n oJ

i5 coiled

1

nc-rrnbcr6,

ernAelJnaJ

&tteA,

\-/Cuw-nq qrnbors, labetS. rri$ t<rele seedfJc Q;-ot,intcrnotlonoli zarfl on Ch rbe o?pttdxHon J

l0cote rD€dno 6oooq + Lrn6uage'

E8l en-u5Pt -FRde-m crftl erc' " '

'-rh ernbiilD$ ifSn on *'e efPl;coftcr) | utbsires uf @o rrrahe mare -Y13\Jcric'rf,s. qliuz,-ng wt ptwuta

,pnlnA_"U ner'.rt-4 i\6n i0 \y) ba! ve.tarcd torrh Buas'lnersLbSlc & rhe a+ .

\.-./

frreserrrc*ton LaSic Q rhe awn' !.$e, $L.s @\ ;colrh rnultiPle P'ofx

--+ Ib enoble ilgn ur need la UDd6\a- ci)lt" r"4'!! '

\,/

one P"^ Locsle baz;so..

App.prop*ieg (!rr" vau' S't) ^.. : \-/

[pp-Pr-cA ;J';'tg P**; "; ' .'T:: ll^ rJ*r,*,; ,App-de'DE'P'f/nex(f'a ff'rrnn as it t** ': :Ape-hi-rxt ' Wl*'-l""s( ff"r'brna-. o'- i t sPe'av-s Snaia) .-'

Vau'e rt'ti is tJ

+ gerr'.,at\ Batevwt'r|Pile lagle,:il

rnar"]rn3 vy,v\ firels .l

de6.,,rt p'Dru^!.J Bt. 4'ps ereat-tes -'].-*' ; i^ *,,"j, locale 3g)'0tc '-t

D -u*tSf a)-

ppt Satnd' 'rhe 6ase {i'.'te"te t.''*,srbe tk,"e in e \)

o. ,)Pzqrtlias h\e '

,

a bua so,?po{rs OftrdQ clar64her s'+ ln cohch c.lYrxf,r au pogtatn v^ytrz tJ

ydc,red Cttdrabem &nd &r0Ptlr^tnJ?ie] c'e incjcrded :

-? h uinJ Unicode €djt-.rr, rp'li\E?dcii ldals cr( cQtn 3et- oruc'de w"#n e"l :

C|OL"( rgionatlaJn8utlte CtnJdr.l.' .,

Page 163: Struts Natraz Notes

j

..--,/

procedare to get Uorcode nurDb.rg P,, .ft fi,ottog hltdr coo"as

(gasePne ---, en6rrst )fuil-d's'frfi?t

6lcP-r'r- Tnsral Dhi-code e&',z^ bd

6KP{Ei

nrrnbort

t*,lnuxoocii

# €" hi.'.t; l.^ngqal e

SLra =

6rra:gtsv5 :Str4:

*8" l"".tt Laog"c'3e

ApP-hi-lN' ProPernes

" :Q,, t,*t '

5u Unrade

tars:tt*FC; .('r)od€ r'{*t+r+iw hinar criras

Page 164: Struts Natraz Notes

hhile rie kcXe of rrr-trHple pb1xFf a, 9r c ,rrst be ruvz o Ser.te..

tarUrg t:itl itfn

/httn App.jc^v a

imPoL jcrva. at:t x i

impcar javarr ' gtiD1' *;

l6?d+ &va ' trhl'* i''''.

pr.br;C ClcL96 JlfoAPP I

ll inranaricnor i zorrcr.r OP an''ciiapUcifuaq{rhe,oPtraoE.oq rb+rfu+$ ., @i, ! coroe

l/based oo rhe tr.r" "r*F,c'*o+,E ertr'$+tJs "f!M)

P5v m(5m"9ll o'95)t

f/ cna+c locare,ohreu1- h+.g,1 ,, 6rylt"Y^se,co,.nt-'l ?Se#'

'

Locole li herJ) Loco.tefa'3slo1 ,aAaltl) ',

[tP;"vs"f Vytfx{hes 0rre br.s.d -, Ae l'c"ia o$ J"r<

,.'r l"

Qeeo,rrcr &,na I e

JF*'oe

Co"rcrrnerr

JB,/{-Jb!+r,

J$un"t

Jnurun

br = rrero

bL =r*.ut

13 = rfr.r.,

tt -- .rer,.'

r=-Pesxce B"lt" '6c,&-d, t"rr/, l) ;

jP:ncrg JFvneL)',

c!=iP'U*Gn*ft'^<>;

(luwt- fu+u'a b6,l':nn5 [at"s fu'n d$Nat<A v-gr+'t &rc '

J6,rrd,, (-.5"Sg"s("1@")); : '

JSsw (t: Xctlil'mi gsra"t ) 7

JWa"( t'{.t5r""l l'Sr'a') 1,'

f,Br,rr.", (r.6+fu n3 1 is,x +" ) ) .'

ce"serbrl oc"r(rrr^l Flr.r lt6or-tt t )-ep.add (br),

L? - ada Lbr))cP- add Lb3 ),'ca,ada (sa1'

i1['P*tl )

0$, eoVrau te [t"'e ) '1/'rrl".l // . r^61

Page 165: Struts Natraz Notes

j ._, />javac IttPaPP'iavq

l> .wuac lKnA1^? P. q6 C&T- P"- cA ' Pmwrfites B'te ';tt 'le , aoivarr/ )

l>,v.,tac ]-ts.nAf'f ' hi av CAl,p-hi.,rl 'pn8/d?5 Ble t,,;'r be ornvanl)

/> trc.vac TltnAf r X Y (o ,u, .o.. no pfovttt..i P{r' 15 o'u.'} t+f/' Bdei"*1*{,ixi)-

6rntrb givcb brirt-in &rttcr,t &, f,fri .tSabo inrcrrs4cg coes locc,le, Qesocrrca6uncllc

cbsses f* rl"t. !

r\C,:e rreed lo f:erRrrrn fdrrmorng opaial}cng t to oeble fl6n

'.:,6rcP-r : - flyEpare rDcrwip te laore epeo'ht P?Dlterni.-s B'"

oo

aoJ

'--/

5xf-p :

61t(P3:-

Nph-:-

hlrB-urJ clcrs6es Srdet-'

&p-n:- C11r1P;gu.'e tbese 'pn6'rie5 Bte'

6te-trt:- usc gn€r&ro.t-D Sartrr prcseraroo

in 6rur3 t-

ConBS',rc'rlcrn Bre'

eftrjt af Pli ccrtl ctr,.

keep rheo ;n

lc'?r4g

tsh<n Shult aPPn lLYeb

beadcr vatc.e lo plcrcrS

ZbeaO: rne sSC.6e>

Worle{nea ftre.

l6rrcrrs bc.s€d

faa int JsP

rhe t4rrrett it )ortvrp,tgS *nrt ,fru acccpt-lc'rXt^5t

rhe locole speo'H c a?frrDynte prup<rttee B're'

Ro-

Deplogeed 6r"l! Tm t6:an5'' 6etvc'1'

ocrni lcyDcoser 6€rt'n?5 cb('6e 6ne Lntq"A*"'{

yqeesr lo Shz'rs afPn'

169 Lmguage choseo In slcp-v kcomes GcrepL-languo6e 7e1A€st beo&tr"l"'

fr6;,c5 Lrrrgc,aS. (ft) )6, chsseo' *'."04b

b Lrte &,:e Fr",ranj e - P''P'n'6'rrles Rre '

EX1' \(

lool'5

Ffi OomPle oppD Ilgn ftP.qo.t pgeoor 991

bocr:Se,r &rHr€S 1\en Sfruf5 o?W

' ::i ;l

Ruqrr.otPtoceSS o"r__-_:-----------

Page 166: Struts Natraz Notes

I AbOtccf G'nfrotle{ :- .Ib ia a Pp61Q-rntrolter e^ eervraJjspozlotlwrz

using rhia a_e carnPrmtG"rrottcv i6 colred Aberroef6on*r,- cta,y.

orsbmi"€ the togic6 a?

0q.opache.6lrc!tg. a*f an' Ae1ptst9oasr.rr goJS i5 obsrratl

AcHontewtq " the &q'poft 4 plo6{}sc)/ grocess Xa" t ) .nofrqls.J

&re like e,elef tc&rtn6 ForroBBan c\&ss oU6/ Acjicroclass cs\js,._tf ), exeou'c[ ) merlodg 1nA en.

?"

irtlota3

!J

, , \_-/

\J

t-/

YLlr/Sr .----\

c,L) ibt),LL);

dc );Ttmplcrrc

--4 In 6kot5 -t'x

Ccnbrutlel C\crs6 F- rhe Ru.tGrnr.tl.'t Artocr &wrt*.

-+ krion Savrr crfdle5 o\ieeffi par Qefles tPro eesso v cl&3s 6rr ctne Q'^ ew'rr| rDr\dr'cte \J

basie and ttllttL Qqruatgrxessrn I openenonS Ae'"A {e'gdn5e flerrldr.rc,ncl^

of*"*tlttY

"ffi ?.?#"** ; &uin3 p p-..rrx rxL't .,u,.-,,a,s bn foch rrocl<,lt -^{Ltq ,n shcrt5l')' \-/

Qq,restPraosor clcd6 chfcf' 16+

--2 Eut{L! 't+Per 6lven tb 6tYcrf6 appn sndet 6ez d4

Y::::::: :

cfe{a$6n bt oorri.', t6t P'arseXrxcl flxlods & ?elutetl"oc-''s-

''-: v

16ese vncrhod5 crYe tik-e P*"sPoa,rt'oc)' [r'ocos\ArraapC),, p'oc'ersllt'rrrprh ond

v-G.',pr,rt ll"ttodDesisn pcrt.rne'"

Thye€ be *ElyVHere ur oeed to cou iqiaae '*tbudS

ti;a* ,\-/

n\r5(afto to cdrnrJoe d h:t{larv'eir seq#ence ir invocoldst 11) (omp.rg''

.,Jrye-:- j!yt'.

.---r kTreStPrDClSsCr{ C\0si +.4]ut's G'{( + dn k-slrrte t ftcCcstnT oprarcns

bn

there

GUJ

be hore 0?

C{erotldn5

VaUdafe

@

Crr)

&laHdp:- ge5lsn m<rtwd.

Page 167: Struts Natraz Notes

fu$ic vo;d ryz()

to()ibt l;tc)jdc );

1

tagy:: xYzt);-lhe rrfJtgd i.e. ca-ued rnrtt{ple ofte{ m€thods thrr io a $e+rence fu

-lhe dser-d.P,'.,.c{ o!5no(f Cornffotler clcrss it crtso cntred as

Gsi.,rn Pe4,rest llocessc,t 'ff$L'

!/ Compl.rc a trrsl< iS C6Ued hennpl.Jt merhOcl, clue to *ti S

: proqrar$,,s'r iu5r need rb rerrcrnber o.nd cclr cnlS one tttbtrl Q66 rbcr€ l5

.-, rb rred crg remembe1ng ond catllng routliPle ortrcr rnelt'ods it' a 6€q^'€nce

Com pterc flre tttsE,

-.*4 prtress(') o? Rqp.updrssd closb inlarnalri unl 16+ pro"eqsX:txc) rnerhods

in & 6e4!crtLe' 5D, rhJb rnerhocl 'i5 cdlecl Ternpl'rrc rnerhoct' xnsrcaa op

G1!iqrhel6tfimcerbXxx()rt*tto9sino*lpanceonpt+'"stPocr$ar'

ctobi clajed *,g Aodamgervtet caul onlU ;rocessc) metaotr f2'y'rstpta'rol

--r Qe,urcd tnftr,rrartorr ctn tgLr&5r I 'r.,r

'-; mtrbods repcx pc.-3nor 14 lo ta'

o-cpaf,** tl r"etl'&ts+-

r- --+ TD grwide addttidndr Insrrt''$6i|15 '*,r*.

lu. & 6ntrrscanPrXr'roncn

p'redeP;oaaQeqpresrp'ocessc4 c-tass use 4ccnwot\er

> wX c\

Bte a: ghoton in o&tenoo +t \+t': - . a1 ^e.rL ^*!.,^rl.t ihas P' ktl*V*'gr

- -r frrogramrrr1 con &u<lop user -desneJ Ab6rrc'c] cdnFrotlct : -

'' +o cusl.,miLe Qqp'eet[4u-"si1 qe.,tlrlo'ts' Jb ig' reonnrnended to &-ueJor

\-,, u*" dean€d ab.rrcrcf &rnrror'r ,*a b3 €xrcndrng &"- Pr€-&gr€d

\- Qgp,atkoc*s.tt c)crs5'

Page 168: Struts Natraz Notes

Raedtrre to add cu$larnQeofr€a 1(*otessor ctoss % '*at modcrle of SaoS**

O{ptcafton. t-o alloco on)X lnternerEaPlore'r 6'ette'rorcd rc14e3i F Acn

'Cfase,S ,._,

4 rocrtl rmdrJe.

\i

(,

6t<p+:-#

6r(D-s:-

lceP sLDlrt}) ft$64 ofi,D "tdl

dereup rbe crrtknnQ€+cfFoceJ-s clox ln

6hxpn belcP.

fl OotRe'.iuuo

imgctr iavc$ ' Eervlei'*i

irr,o5tt &vax' €eIvt€f ''btt?'*'

irrndrt iavd' io' * )

ioPsr olg'a$aeh'e' awtS''adbo *)

Srbuc cvs6 C6rh eirrdb l?E'*'P*tt'r

{ftdi]c hrteon

t\JbTH

O l/* bocose'r cplndoco rp't'x- o? Y* -oenr,\t \i

6r,,"g b'rr"''e = *'*Hgi Cb- -a3enr') I

;r (brmnne -*,.#i:k " ) ! -- -"\ il:Xffi;X

{u(a(,Yf) tluei

t *,*v:'o** ;7*';ee2i : :elses'Lopnt'D'trtutl^- 1d= r@@ 'gu+<En''eb.tv'-'-

\J\-)rd' Rtr,nta (nc+'"es);

rtam 'ftrse i \-/3-

I4co*'Cz"ccPnt'n e) t -c ^ i*r a.;', ter,rrn ft'rse '., t-'

_1 p. rra nt bttot' l'f o(l L ' / ^ .\ , iq .,rQp..bva \'-l5 *r*-kg, /> Jaloc tr4

3/t?'ocer'l?tilte"' \J3 /crors

Page 169: Struts Natraz Notes

Y stip-tr:'

- Lb>

acrcl erld[ 'i5P in t.rb o?Pn ' o*'] -h*., nqj,. Ex p@ t 1l ft:* > 4t'

zknr 6614er zred 7 Aq35l rnusi be 3iv€n tTdm -lrtl-cln<-, - ' i

iri moal erroJule "rrghfcct

5*ctrs

in 6hurs aPer zlocrco -rro?Pio$5 7

p,areog ='praerscrcb-ss Value i'C^'Pp" l>

6rcp-a:- anh4+se tbe nbr''e Qeope6tflacerSo clc's6

cstr$gcrrc.llon '

-to"?lg- 6tudcn-t'xrnl

zlcl-noo. rtttMrtXt z

4cnlto LIe:, >

- aer-PpPedlX

4 (onnone'r >

zlsn;.ts- can\gv

,- ryi Jat rbe d{Pn in {e6/e-{ rr}anne'r

r-"'7 Ne ccm cctnfi$rY€ CutrornfleqA'est?raescr

ct&s dn gr mcrlae k'sts nol 6t)

\-''z Qef6rY(JJb o{}Pn boaio'

\2?'| re{efined Qe4rerr9rocesscn clo56 as

NorE:t -Ibe obove 6l0n i6 uriog Fe-^"""-- ' ,\,/' :

\) obarrc'at conmu'etl &"' d"Po-rr' R'Ltq mockrte'.- ({ crec*rng kDo oqh

\-? fu Qe4rrestPocasor c\as5) ahd 'osinctr CtstPg clrrrs as Ahr'aa cc"'l'/Dttq/

fJ1 rnodi, mo&ite [q 4rc*r5 9ne oqj €x .CusrPp

cfc'rs) ,

\-,, o+lor / r"ra,-'

\,/ --. whle devetoptog f,r516a"Qtiaes Oro< esss{ closs uJe genclallt ouavn de 1im cess ( )

'\,/ pa floc€ss C') rncr'oao ttt Pl6': -PYo'ramrn€., ef.,,i ce ' (becoute it is rhe

'J €-g\ merhod o? predeff'ned R'?-testPiocesscrt ciass'

'---, ao ct*tv wa,rhe, rr., ig fierc in rhe 5e66.idn

i Rqpeexd pc'-3e ot Login fege t'oe iarc rhe &t4eott o( t,

\J fxq{arr,ini 1, do ftar tln{v in 6r"*a bovirbnrnun* ue tcrke the

'J &.,-pp"t oF Co.snmpqpresfftocese clc'sS

--- Rn r@dtl:o{ld 5gf14rlo p\oced Custt-Qq"tutP'tre'<cd derrtofta"r ttRtt

'-'/ Tllge no'o @ ( @ tV te hrokkr'

Page 170: Struts Natraz Notes

i Ncrklot uirh TileS-P\ugin (b{) hlc'rl..ng uriib 'Tire-oRornecoort< :-

ry

&'ot&in3 $me Header,

6lDue 5 6en tc-t Pro6rarl I

(n"6'a1 qjdn tfio%L thg ate Sa'ne ' .tha

Oorgo Pgr+cro-

J6p gyogram lna.t .n4 ttd.tor loSlcs

(wruarca waP6a)

Al\ trrbfates o? u*8lf€

nnJ n ConlerLt ' Sn $e

Crra p\oced in aulg

&tuwn'.- tffrt' cotth Cc"nroSr te -vic'.-

SuraPqrl

(C".*t*s

Fxrtcr' btm t

dmrx.,sirc Y;sro P€srgn Pott<'n

$qtetat< wlo'r<grtz PYD€rams

orher rreln ur,urt966t1" rrrDqr.[ms

foDler Conlant, &rf tk{ &lrrt<rr'q di Pf<,'er* V

olnr r"'e s

&v)wetoLe zJsP: ioc)ude > lztg

insr-ad oP rd; ircluda C-'-)

S"r.+frqa lt o*ttH&der t%lc

f'ldto- Crnt<rL'- togl c

oP crr5oage e"

frcrx \o6tc

(G"*ont wffiqez)

had.r, Forcr l%ie ar rot Ye.usd'bte tttt*'

the PYog{(rme", to

and 0Je9 *Pse

&5 ehuon ;n

indrcrrtg

cornmso'[o6]cs rlr/r'

& rrr,rrrrPtehrnrS in

pfcrc€

1og'q5

the

t/vUU\,

',-/

Ff F€3lJsPH!1{a1-t3ra

t-tlio -r6oic(lf logftop t^xboag et

koter to6t c

6g1v.e d)c^gran '

Page 171: Struts Natraz Notes

\-/ one

o€ fhe U* fro€e 'r€pr€Serrrtr5

ang ro'oP t-itt5,

C:tta.,n C4rrKnr Ot $e CDe,b 9&g eiS l0$@r Rer$Hon

(rrbpdse Can booe

Webf']o{

- t:I Hoat'I-r_r-lffi*l *ILf 6orc1 t

\---l ro?dire vied 0estgt'Rttet

-i 1be T c6 -Plugin o€ strors is Sven b-'d'{d'LQ io ioErrs}e Cor

\-7 b*ges based 6h lagr.r r'5e ond rePtf4tlng rk mocrf+co*sq5

'-'- ftstgntnu *

: ror,s dcrna'io lotot't g'se 16 cu-oeclko trxfopger bc'sed gn rhre rrodiftcartonS dc'ne in L'"tt"

talrcr* Conholla{' d- ,l..g-rn rel.,led fe Sc.,rce 5 ond logics c*r'

.-- + Tn 6,fitLtb J'{ environm€nt ttre HleS 6

\'-' ovailob\e Z 6ftcrr'5-horne z\ llb\ 3hur5 -Hle5 - l'5'8' iat1

- procedare to cootu coirb

: il-*u*'u Hteb Plog-tn 'in erurs cone;gt'ro'srn Fre

\-/ - "

^'^ - arr'rxp ' q',.i5 ' yil€S' Tires Pla3tn " >

\-, rprui-io ",orr|\c-e="0r3'o&'cb€' s]tLus']il€S' lrrco'l '--')

. r..-o rr.relhres-deps.lxll

: tn''s-'*,"i;:;1,;;' =

;il=].,*",r-. c,,'pr,, riarue ='/r,re.-rrurl ttr#4sel -{'}Dt€'' r5 r'nrr"q = irnoduteAt':etnc'

vcdue =" true " lzL>rtnrus rbe Ht€$ glcg-in tD rerDqniz€ mod'ole6 '

'\-'/ AlplQg-in >

'rlJoto PcSe ho"ing H\es'.

_,,61e6"2- gl-st- Desiqn Lr >.0/tr.gs-rires', pfffx=

\r z'l,@tagllb g'";="http;ii6*ctls 'o{e{he *',*:-:::^" :'=

^

Lft'tie border = "o" @idtt) ?

- t@/' " h"S ht --"loor"' z

\'-'-l ''I" "''oi

="locr/' " \eithl'' x'r'' 7i

u

\-' .Lrd7 Zhtes:io6ert oririb-tJt-- hindef ' l7 LIVAz 1l'-- h*dt f't'--t

Lla>

Page 172: Struts Natraz Notes

\lL. crli.df):' loov." helgnr =" lov)' > \,

Ltd" /Lile6: insefr ollttTlktfe '^w)d|" t> ataz l!--}rdatite- -7 .--/

LlEr > U1tt 6;6g z'' ltrr. " |*g* =

" t0 7. " z '"

Lcd> zHleS: in&rt ottrhlt€=*&ttr'l 7 zltd'> t\-'%* dte--7 \--l

Att>

.Lltrl$e>t

,,res (hare'F au, Po t.r') vrhis lqour jae ia *e hg ha,tng 6

t tetts _V

6m?-gr:,. ge$tn rhe no'4 "crpbeotes og &rb6{lc '"'*d o" rua t"t@ t f;T;

6Hp-E i- fuwrop tite con9r+''r$ror At1 lu"r*S

--:--- - ..-"': ' 't u

!o''r,, DP' 6ter ;fu q4 uPurott' \,'I i' ;'

(retu r.',r coat "? F$F no '@ ) v

Sttp-:v.- ereoe the Atltcrnc\&s6 in Y€3ureY rrEoneY' :

- A"trcrn Uearcnd: b* .,

Pdtlc clo36 't13Artan

.\\JJ \ \'-lt

*t'" ArranFo*oard a*urte(-'t't-t-'1

\--',

II

-iUt:,-1\-/ r

:

UI'

LgPe=t'tas!"

&w -si'_-....-

iP[corct] ntm:) - -, Q..^r*ruroqt C,"*");

rm{,Pln€' FrE

tn 8rrul3 crnftgc..retlcm Rre

05 fJCr$ [t]-0 r

" fl5Atfio " 7

6rrcifutn3

'l

':

6kJ..r5-Ccrnfi€''(Fn I

crohgtrre Arto'nc-tass

c\ehnoHm ff1es

LL' rl

Ic.cflon fnrhz /XYz

lRmlard f&rr€= (lrt=" o*?Tz

Page 173: Struts Natraz Notes

ZRn atrd mme = Grvest "

L4crr.:rr.rtA r]an€='r€54"

Aau+cm>

,, 6iQ-Ul:- geleloP tbe--.-

rCrrfuoing 'ftlflr'tce'

lbere i6 $c po65ihlitg oP deaigning

CcrnB{L,yaridn to inh*t ran ce a5 sboarn in

-ihere ore 6orn€ [email protected] t-o{(Itrg 'i" deAgn

O crossr Loxa,r

O f* Grrrr"n Lalcrtr

@ rr"rtreG.'t"LaSa+

@ Ci*rer Lqc.r arA K-"'

prr."b&:P"lz

whjc+.1" l"

" 6l gats'c l-ryo,^t

f^leder hle

BoaglnoJn-cc.'te* tite

Focrcr ti l0

fa3e no: @

@@

lL:gtcs o? rhe c'PPn

D"A'0.

&rab.se slto r

yonl(rrs fulLD

io regcrler roannq

*'" Ae€; 'r^Ho n

se fire dc6nrHaoS cu& ivbe*rE*

larpWes

6 Ttoo Gt"t'n lngcst

0' A'o ( oa'tg l\ccess ohjeq)

Th€ clc(55 oP corofso efi rtar €r'rrrores Per6f6i'cnce )-ogi c Ft"n othe"

to rrrrke pe16i5 Knce l,(4't att&" Ptotlole Loglc to rrEdJ E iS '&xed

*a Thit D-A o clc65 Gnldns L4tcs eil-Clblrsh the csnnecjton blu:

tf; nelesse the Ccrnoalicrrr trli$ drnbcse Slur aoA fb pe$r-

oP€r^all anJ .

h.a''ttre

tegat cn'

filet lojn- onlcnJ-ri te

Fotcr dle

Cilcaler lrt(rf91b'te Glu'.lot'$crrt

baoaer $l e

Adglrb,n

Pirotc tte

Page 174: Struts Natraz Notes

-, l-r*r"s o? D.A o clQss can be dc,,eloped b5 usiog Pel 6l6rcr',r:e tca-hnolog3 l;l'e b;5t'oa;t, .-,,

Jdbc ond ele'---' \--'

-1hernuliiPleAer1o"nclo55€5o(shcf5a@l)datl6D€irlhet5,*,.ffi?.n&l}'P?fUD A.o ctcoeeg

Ftfl fireb RarDe c,rFc bcaed rolo; rxqie4 Yekn Qt{p$cr.,*l(ID@ er+'e pegp'nofs @ *@ \J

\,

-The flurr o? ezca*,ott 6g a96n @ grvun io fie bcopter' \'

NoIE;- bhile urort,.ng .,rrh fileS * ,"rr**iu *" o+ ax'bsl'- c/rniog

tites degncrttoe . fie 6;o,rs appo rru.t Bej dne iradleit Rrylar 6""ugh eekome \-'l

\Jfr4e. &, ftr.5 rrf- Coo cLse rct.Rncr:ard G,-)rL6{) isp:Fz'noaxd, fctr) resrrre'gtQaxac,-Lrne-rhod )n dla* eoc\uve fxane ab $cro,in iodex.jsp 4 ap,en@ i

' rrie:o+P) ,-^^rr'rn doq

@ rnq.o.n-er deatogeo "no"

@-!l-,)f sa*" cn a{'ptrcc*tso se'^r€^ t,*"r.,"'r,-t *

O

OtntaJrrn @ Cuq't'W Pre-lr'6lcmfidfi^ a@ bcorrle oF lood-or'-ak4ilup *be 6entt€-tftnrcn;'"'\-'l

* ;fne#;" o? Arnon&wter. er*e,r ohorq 6ewe^ SlailuP a..'d :.i ,yQ az) ^ _

dcmng &4"gvrrx 4 "x-wnrtcott- 'a;;; s*,rs,cdner€.r-r

Bre arl, ,,CD fcnoo ftrure-t rads onA wro6"g tt)e

. e.Fnes *

-.':^ rxoces' tbe er*der or

abo yelbgru?r5 *e tirespru6in drnQ3urcrrrdt ' In *tia poce-- :

\--l

tiles-dePs'xml corir atso be ve;6ed Cn?- G,@) I \r\J

(E p*use.r Blr,r,5 Tqest to 6tes antcatr.o .,

furp;/J toc,rbost rrl>o/nrclrP - r O

@ rie defu-urt urrcrrc pge index'isP is encc'rcs *'s n%e &n& irDdlcjt c

ye#Je$ 'la Tires,hp afii apptrclhnr' ' (tekx@ ) 4 tt"eCD) i

ft) A.rr-&^et ffirp crnd t&Fes lhe \rnptrclt re+!e5f giwn gorerered q ' .t;

N\J

irck;x'isP'("eP rc't'r c\ re-re7

@ Ao-fo.,rt (tLfrb rhe &tnhote t0 Lotxoo> k'5 co\tose fuironp'rh ts J

l ,l A - ff \' /rnsHres : t'€f e)J l

./

Page 175: Struts Natraz Notes

- @ C.me gces to +i'te de*na$oo u.rboee r6.s is

-O tu Lo4orr no6u FgT'resllu'*'.ise @ir\be diseloded

\'-l llle vc.lues.

.,-, header tile \eue

\ -'2 Q66r file Vcttue &deFaobcr -i5 f

h-,,r3 €'-''

\.-.. lePr-cr'rcnr hievohe bfuN&viSoltond 5P

rrr'i n- cunren'r tr le vottr€ --+ rlebrne ' jsr

\'7' - L --t'''r to aetne'.rt<' *re re+lesr (rce: +aSrd,re-

.*-.@ Enau.ru., crrcr., dn inserrluprJi''F l."ta*r,,r-er and $-rc) .. , ,-.;

:fr il5;;ffi,"i,TJ: Y"'-'.^'tux coh.,e ar$onr"r"' .rr"':..

..-.@ *-,e ge6 r' +ite ae*mrto. -*

ff^ff : if,tr-;l\J - ' tlglireallome'JsP coi ll be ora*u-u-*

.-O ,a lquu lr.g. rlglile6tutt"t- 'r"r ,{ir

"n5l,et'i G.P linno' +25-

on rhe b.orr:s.r coindour

+eo)

lbuo'ing -Tite vabres'\'-./

[;' file va\ue t*YY :':\-'2

fuaa.| tt" vottt => g6'sehcFr'jr9 ""'';\--'2

l€Pt'ccm;nJl"uorut ------- tpf,tNauigrHonJsf ' :rr' '

!r'.,"{t{ ##J: i #;'rr#' ffi'u*-fo\ Enduscl grbolri **:; ':''|9

;;s YqArest 1*e'rz6(rr+)

r@*-*'*' *:tt:#: H; l]lJ-*]),=,@ *,*'* T ;_';, Fz'n'ean cuus ,hj [<eP: +z-r-t ).-O fu*nsu'u*" i* ,':'_^.:_ * insrtArron crrss cohose us+cnq,rho@r*1

- g il::rl*i !#,:'r }#: :; *x:;"* --' - *'' -This gc@rrr-r-r-'' r

'-@SucesS

25tt {u )3"' t"'tY Arrc'nFnoard obtl ) '

{oo-at tur" A;tr"n,1g{ a-P3,*rr*')

"arrua'Cr.P ++t'%a) i

R.it,rte

556

6t-+o

Page 176: Struts Natraz Notes

(N)467-+a+ (uses iilg &hrnnon cfas)

@ *. lot* pt. llg'llesfbme.jsl &r;r be

tte Erro-ain3 irle VaI4€,9

h"rt lilevo-'tuc :-' &Lv-ileau'ie

f*ro' rtr. \lall,t€'---+ &'elmret'isp

ler:rcontcr* h'te wlle --+ Lefu/Vpi6attoo'jsP

rrptn - cenrrn* +i I e \t/-t4€ --+ 6arzz.r s'Jtp,f Srt u"e'ctp

d*ptoael * 76q boi'urtu c,,vArclr"'s'i

,/l

+35- +vn

IP rrxrrgpte fl'rreaag are dcnng cr' 6iqgtaohied 6,*rlrctnetcAb d6 @ncusYenrtttr tbctc e r:\v/

rhat Otapct ts not thrEod6aft obsr ' t,% acheive rh'{lod&tftt ce nee4*to 81ntl-ttorti=-rto''

'flrrralsetcty meens ftl-uorol ao[ arre Jtreac*a ]rre oo +othe ohle4 ' ," :"-+6sr6Acton ctals is nor rhrcadsc.€e 4 arfo,,rtt' Wcorjte

^" **1t *ttT;':

at 6un

fa Srr,6lc sw',rftrlorr crax $tn1 rrr-rr'aple +r'"adt lf,itlla slv'rtxA l'

firnurfcneaol6 ot (anuxerrLT o{'I One hltt 4 &rrnA*ro,rcrcx ' \.;

_..tJo r*te ,*-#;" t -*^-q* ^"o rfu fu"uroruzea bloct+

jns;a -.-

$c ereaut<l''-'-' ) 'rd'od" , Nno, --,

F,rllc c)osl t1JAt"- lxrtnds l:ptton \-',

{ t ? -^r) excc'lrcG'-' -'-) \-"i

P'dt' lddnfuo"A e^eat

L-/1-' S*t*'i'ed (tn) \ /

{, ,.' ---':: lLntu ccn ''derc'd st'aR 't-,v - 'ttitOd'*'='o &'lrt)

\-/t ----^ llsuw N {datx^ shrr\ I ;

aJ,_tJ

Page 177: Struts Natraz Notes

-

\--,

Eru+rr,nn-lL.urtn3 tn 61'.l-r-3o*lo4^,s

g.c$ion is o Qhn -riftie eir6f . Loe car, f see *r.t ig rpr @ct-.yiDg ?ot eu", . So, tb is

Te0wrrended to Colah and [arrtte $e Brcptnn and also veroyrc nele ci fo clise\

ftm-f€lhr'icol |a4maa @ rn€ Ssc{e s gil.rd io9 rhe end u*u"{ *-E €xccptia-a iS rdsed , .

dlonrt di6Pll ' unclcrlaging lerhnologS fenercIeA ltchnico.t rne.tk€ej ot b'*''gn coinJot'

Lolrn e{eftlcro ib rcuised . lb i6 .rec.} rrfrde c,l to dtsptaj lbern as rnn - ta-hnlcat €rd

rrvs\a Loi$ w(xr eLEkonkndLint.

:?\tena!../nlnnarirrU dn gh(rr6 &ndocl4$ fan be done ln -krlo c'odts

O .oing fxugwr.,,tlc o'plu"6 (*. hb o''d a't.'h bld*6 in rhe execrrrct";]* iff)

@ uring &crontive a+Pftc4h [use Ze^c4rlc'n? lq o+ swttbtuP5 hte) :

@ guur.t pxccpncrnl'r:ndti% Cc6rotrEn €r vrctLnple 6Nrr5 orJJon chJses )

(9 f'corp'rccpt{cnol*ot'"3 (qeaficho ec'ah slar6 rkrron ckrss')

ftocedut

6r(p-J:-

flrca'll'.'

6Kp-G:,

fu €rable DrOgrarrr*tc

Keep 16t Srrt-rr' opn

urrirc h5 (totr}r block

P fr ox€cltc (-r -r

{trT

1a-

g

corcr't f nc+rlot e )

6hua o4rPtrc'rto4'

{ *rn,rrrpdoq. $nakru:a'ra("erl");

t,3'0ne6dd qddihGool tg.a\t-0c€e cortBguro$on

$tnrrs'f5i$5 .xrn t

l5Fdt5-6n Ag 2

ZPa161-bean s >

4P-a - beans >

&ffcm- nra$Qtn qs t

ExcePktoo banoting on

"ec.ds.

os sho<oo 5e lr<o io rbe

-r -)

er.eorl<Gr+,-r-) oe' Fgtt$n

c-la'a'q cs{ sv

iP"6rst* at'r-';-')

A" Brc"rs furon d@6 ID 8HG"6S

Z<**,-,-3,- 1ta!ir*nry,6 "., l9olrJar d

l\ ri

narne = ef{ prh=tf rtP.'/t

Page 178: Struts Natraz Notes

.j!-D - DcrttO 6e M Qcne as sluxpn &f"<rl

Eror.isr \'-'l

L%nl Col6i =red > a*nrC, t !l 'l oh --' Ei:rr€ Jntc'rnat PrDdeq zlcc'orc't > zlknt ) -"

zbr> D{> -Lct, Irre?= $lstr',lsp t -Ig Aga'n tla> .J

Sr<.p:il'" Qrn the prDqram tn Pe1rller w'pnne^ ,,-=""-

ice4rt on -l-lztndl,n$ ' t-,(! procedr^'e to peoft"") DeclaraJ.ue I tv.r ExcqrHon -rr.u* -<r'

'*J&a€i- F€ep 4st cr00n *"dt

, -_,, 1q(cor.h H".*s h ir,*e,r"1

orer(9:- Datelop fie )o8ic, in elcttLt<ctrt-t-) lDArLouJ t(*"hbt"'n, h'^t*

:' tlttot'ls Ercrf rlon '

o .s od&J fb &(1J6 o$n \-/Stq - rr&ke SLre *rctt pmptrties +ile ' *,

d.o i &n$6urc *-on- on6 locarEePtr-lonol'n3 4' R3.,*ltod' c'bs

Y

$n 6trur6- crrnBs xrol :

Ly1ilr; - ctn?rnz"\.--/

,-=_ t(" > ._",*nr"t {

tattcrt-y6fr.al\1n5 > ^?p.[hKrc.&d-

** - -*=" Etttot+.,jsg,,/,

J

Lcr*1ct @tu =" lt$srca" tlF= o " ven=^ m,j.e^Q.rrr5g' r-" ---- ^ \-/

Lextpt*n tgrre= " jova lan$' ExccpHdD -'u, ;;-f, *tln rhe gmrvrno 6rc

li.raola' *tt--''**o' pth'" lsuuu-jtP ' 1> !'

t?x'watd (vr^L--"+'.u''e" w6h;1fu)ruw'iti lz

'\,

zluxla^z

Aatfi$- fiiu\dilr,\\ > l/

LI/)guo rs - co"ft ': ?

trrrordsP or shot*r ba{al' \,6.rg? Dartb' *t

r. - r-r-a!, ^.-p,"-"bm),y.7 0/:/.e.*rb arl ="ffi:i/stru,s

'afaahe'd6/t436-blrnB' pahx="btm .,

'lzZhhx\l:$r6e lz \-./

sc0{lr)i Qun r\t pvogrcrm in Qe$ult'{ w'nv{^'r* \-,/

\'J

Page 179: Struts Natraz Notes

&$Ple cocle ln 5th t-ocor { Orotaat Eac+don lnn&ng i, strtrl|3so?9'flr

i \.'-/

l'j

io Stn-rs - Cao6'6 'x ro l

l.5tt0t5 - ConPtg z

tP:l;o-trlc.ot>a

AP^-'bft'osz

1$ldr..|-€xuP{orri > q

lexcfnnof.l tgrc = java'tong' Ex<rprloa

Lglcl'(tl - extglftroos >

Za&bo -$oppiaq6 >u,

<crffan @l}jt-- lryz-

Peg =' nn5 ' e"P'

b*Mffi.H*).

rgrz=. R6rser/Ut''L- p16a--"rP" >

1erc$ioo tgne=' java'lang'Exccf rl crr WM ptn--at'';*;ffif-

zlar;ra> (nore'a+ttonYt:'a"rfi1P'n a'stl&;;;L

zactroo prrrb =^ lohc" gp ="peg;sttlfunr"'l-' n*foejrPl" >

/excqnffi'' J€Pu=* jc,va'ong'ExoQnt-'' ltrr,) Etn:szjse' lg="n'5'e,.f''ti

Qat/d(oizClqxdE{cq,ficmhr,',dt,dftsct,,.$rrfofumo'Ar'c"act,t/

Aacnott-rttPPln1s >

tLl}rflrl6- LcrrkS,

Oeclaroiue n

NcrEi" if bo$" Locd{ 4 $dor

tr*h d;Lfe:,eAt Wnfhen rbe Miags Ss,{

excrfrtcn handLing eonPrgS ue ds"e in Some Mkt''$loM

( a,t**tl e'.ul P4e t erro otg s )

,) L*r, EYct{)von l}'no}'in3 ?W*n^t tou Ratf-a'

Zexcepdon > lq 4

ftcrton claisa'

blod. b&se pTocirc$nc*lt [ffi4ttcrn ff,nctuh{ is

bcrrnple on Frnn$atn ctos h^red Ercc4tlcn .1;|."*lrr1

In

Fx'nBeo.n

[b$lb\e

--+ i( lyh pnifrarncfic 4 oa^-nw excrfrtcn hand't,n3 en$ds

Sn.x knon cw rLq Yhe WV )ne io b&

Cn&y^"ners wA L*. c.pptp,l

srrc*s omBg At<

Tb tktncl\O fte excPrlctnS 0F

tht-&n hondl€ cntS' excc4rlcro s

"..ird

cwzcltne'cn-

cll$s c"il$ fuC+h

Page 180: Struts Natraz Notes

.j

\i

,a,

&4-r:-

8KP-s:-

6t?-$:-

keep L6t o{?n w-erdg.

krrirc {t,toring cocle in Vauztarc ( ) ets l-arm\fao

tr,buc fuft"g& vr$dd1tAfir"lt0ft"$ rmlnrng,flr4SaotaP<'y'ro* *'')J' trq

{ '-. r"^',"i) '. ll}^^Vot;l*^4''

S rerurn erYs;

drcrrl\XPttorr q

6aarlon^ryr [{ " tsrr,rrs e6tL--w,' [.rr-,Err<'rot)

#-##1 H.t".( ".01 *' A.--l\*"ae C'''e'e^p' msa" )))

. Ye,&d I *rn erra )

{ld

rrr.Ee &lTerhctf frfJ-exP,ms3 ?.{

&-e as SkP-n of " Preurc'ts

is rhe,re in pr'fn,,lftr H' [% err{t,e^n<\J\)

Ji*r.rtlso' v

!!,si: Der-rlop 6ne err<n isP grDtr{z,}m' !/

E,vteT'is? - "r.lt6s-brrnt"

preRxJhtrnt''{'z \i

/7 @l46ub t"'i='W'll slt,'s''0s'he' 6re [ *o- ' w

,rffi,i.;f3l';t nclo*S- \,

drn3"-ar€r6oxe ik€ ch'e e'rar*?e * \n*i lbile of At$o !/

::Y-=:- -- - tr6 -xm 'l '-

la*(n *ffirrc, ftrro, u qa"e*'-re' irrr"t = l'Fng.g)f

\*/

-d5ffidn,. *ng ls*er. b eoih.r* t'qe) (t" ?";il";:i'- -=:

offih, *n orr -*'rr.r.r n s (c*n,. c,^

3, l):: r:r#:,**,*.ril

J o_ >'\. -/

rns@icr"-q-jrf

Aa'tloo > = r\^ t'r rx.,.'.<rv'r U4r,-{t'.- -i.^., ,bn PS in Qqaa Trfftr€/

\--l

srarts-\g\\\ *4 b,o'ooxe^ -lu"i'-\l:ii ffJ-:'JLH*ffin^" **,

Page 181: Struts Natraz Notes

@ prue&ve to Wlft-o Decloratlue lrtat?u-t4t1q ll-dun3

$Ag'. ktp 1st sklrso0po

^Sre-u "

Ox*t ititttoin3 rnde

U.@WXe eort"P"Ee ='€rrJ'isP" y'' 2

zr. Cnss.fuiNarre.,C:'b.pJ;,f t..,,.,

-

Ziz Ptrstt, CrY--l ,Jlp,a/i" tbl'z

sF) *#ospa'F

P'"1 I lenor-R4e> r.i.,.-,'i

.... r'. ..

'.' z44&.lol t'

r1n jsp .

hdr4f-tot}-.,f,,$"ei

. i,_. -

f€i4'in c.nn'J6p trt', ,

:

*' * -J \ zenor-lus€ >v6cr{rron J - ',d,4

r5rri ra I Leftnw.r'E](> iava'l.a$1W+i%3ltJ*lts a,lr(',oo, > /errop jsp locottc"

++'' aof,bl tlogrD

-_., Jo, a.iv,o;;L"S ;n " t=.'

4**t *r'i.Pi- ll .n.no os tbe aliie errt'jsr" "- gt 1>ly Prrn tlrarfrn ?it "

" .: . i" ...:, ..- .. .., 1 ..

#.- ;;;'''0"**; l*t, Da'r-taftdue globot br''pdaq l'rrnatt't.-

v olgne in $w-,4 cnnlg.r..ttt-" fl'tt '*e ftj'+1i$"'&nE-in

Page 182: Struts Natraz Notes

#&(]r.a

er',

#tt

k)

*) D*eutn,

C"

LP+.'l

- Wlc,J i5 dr,.ule q66 yra PlDbl€roD.

Clictiog on Form Sutrnit hulftm Ccrnrlmrog'5l,

- rePresh b.rrttr't On rlg0 revrD PaX e

" darde psr,q prroblcml'

-*re 4rrur:it3 arL the gtae ePP<'att rddJ<A

Stoti og 6c.me lJgr{ dck"i ts 4l rrxrltp.t-e ti meS.

emourLt & rnut;ple -fi.cJ cofr.; re

o s,f or J e"rz

rnllriple lirne-s (d) C )icl<,Og

&5rr,iihr5'ft-a1/uQsf cveaj<s

Jb &ote po<tt ng PrDblz'D '

du''ln5 Uu'(I1,ur""t"n'

otorn; dnhne f4fltYu,,fi q"t '

- To Solve ihis durlctcpsttog Problern We "r*rng o ernt 4r. llpt rwans e'a,re one tal<n v

-h lk!,s kt*r^\ {*na * +v- alon6 uli| tle wqltut anf, atoo ftsu- il,}- -lov<\ \,orra twat frcexti,Ll k &mplercA. gal"* ocv-@Ld cLr* woA* tobin,t tl"*ta; urcrr4e-e in *ryi Bo^A^d<A ;P l"* ltacx la yeyluk 4 ,V ^t l"o* 6*"'t'&

"n*puy'(nnre otr n&r,n-r'ettpest Gnn\46 1s Artl-rcfut Lno*1+vtn/""L D*rleer/7r;'.

&la}.l ftV/e$ &tVlo Aa^cJ"*t vcvldar+"-) .,1. +t,-lnX Z w-inol< + or1.ala*.srcs, auar,&$*r elat4 *

frrr^+zi n*-nnl^6aa

O s"tf,Ev^U*r)

-

t-realtt ottt-low', io ttstk Q'v81d4' 'i(9 **\fi^ &,rr) ----) ,.2r,,a,,2-lirz,rt -lr, lJ^ g* - -,O ;ilru-V'r d (n+) ==-- etqtL utuila^ '16b"^ +*-..,^ \*n':-3* "#*,. ".-

NgrEi- 4 -rc,zn u " +,",ifffi}**n 6 *"h:^;* ,1,T3'**'*-,., \--,

fu*yu, p:Asu tubcxL, c",t h- "fu,rca ar %il'Det lg ***^.2v,!t^, ,v@f*e"a^rl. apJseatro'tu, A,,",^tt'"tl'1 Wg.+*n @r+ ^nd fu\efruk^"

.f*nL +.tt" nPF- f'" Wna"JarJ Lil'rt- b^^ rrrf"rl-*

Page 183: Struts Natraz Notes

@.grds g-Sricit rc.l,4,te sl h 6tr.rr6 &pprr lD&L,iog dlsnor.l' = Sc.vlcgT<+eo a6 rca1te st Paran-, ,tahrx

1 >>>>>>>>>>>>>StrutsApp on Double posting2 __.__-_____-.__1n6i4sp.-______---:____-

€) .f 3 <jsp:forward page=..pelpl9!_iEgEGrqo'.>:

J : _,. <jsp:param nafre+UGFtct vatue=,,savingToken../>Lt <rJsp:forward>

Athoos€wlct

-1,t6 r.,n Itor,a 0y*^':

67

.89

t0111213141516

--------_--___web.xml-.-____-_<web-app>

<servlet><servlet-name>action</servlet-name>

import org.apache.struts.action.*;

public class RegisterForm extends ActionFormt

_<servlet-class>org.apache.struts.action.Actionservlet</servlet-class><init-param>

"-/Apache Software Foundation/roTD Struts Configuration 1.3//EN,.

171819202122

<param-name>confi g</param-name><param_value>/WEB-lNF/struts-config.xml</param-value>

</init-param>

. <load-on-6tartup>1</load-on-startup></servlet>

<servlet-mapping><servlet-name>action</servlet-name><url-pattern>*,do</url-pattern>

</servlet-mapping>

<welcome-file-list><welcome-f ile>index jsp</welcome_fi le>

</welcome-fi te-list> *--fdj:

</wsb-app>

?1 -:------------------strutsronfig.xmt____-28 <IDOCWPE atruts-config PUBLIC

23242526

2930 "htte:/,/struts.aeache fiq 1 3"dd,.>

32333435

47 <o/o@tastib uri=',http://. gtruts.apicire.orq/taqs-html,, prefix=.,htmt,, %>

0Jbla !.nHtrae pa

i3 .*.**n=",9"t".'99 UGerNe;e :<ttm t.Gii prope rty =,,username,,/><rbr>:1 Password:<htmt:password pioperty=,,password,,/></br>

31 <struts-config><form-beans>

<form-bean name=,'rf , type=.,app.RegisterForm,,/></form-beans>

<action-mappings><action path="/register" type="app.RegisterAction" name=,,rfl, parameteF.,dispatch,,><forward name='.success" pith=,isuccess.jsp,./>

<forward name=',failure,' path=../errorjsp,,/></action>

T, - <action path="*g:*=:*r",type="app.RegisterAction" parameter=,.dispatch.,>1t <forward name=,,succesj, j oaftr=,19gi91qqpp,"l>43 </action>

-

44 </action-mappings>45 </struts-config>

2: _<htmt:hidden propert)r=.dispat"t ,, u"f ,i"Jpio""""f :;r,53 <html€ubmit value=',CheckDetails,,/>s4 </tiimT.fbrm> -T):! ----------------Y-----'negisterForm.iava--------------------------------56 package app;57585960

e

Page 184: Struts Natraz Notes

a'---

6162630465665768697071727374757677787980818283 1

private Stdng username;p.ivate String password;ffwrite getxxx0 and setXxx(-) methodspublic void setusername(String uname){username=uname;lpublic void setPassword(String pwd)(password=pwd;]public String getUsername0{return username;)

public String getPassword()(

return password;)

91 ------------RegisterActionjava-------85 package app;86 import org.apache.struts.actions.*;87 import org.apache.struts.action.*;88 importjavax,servlet.http.*;89 public class RegisterAction extends DispatchActions0{91 public ActionForward process,t (ActionMapping mapping,9293 ActionForm form,

94 HttpservletRequest req,

95 { HttpServletResponse res)throws Exception

?9 System.out.prinfln(',processtC,-,-,-)msthod,');

:1 System.out.prinfln(.'Token vatid.,+isTokenvaiid(req));:l if(isTokenvalid(req)) p ctBtUs u€ar[ey f)e C,,yre.rl re?ues t ls rrrCnk";oio59st-

'!99 System.out.prinfln(.,processingBLogic");101 Thread.steep(10000);192 RegisterForm fm=(RegisterForm)form;193 if(fm.getusernameo.equats(.'raja;,) && fm.getpassword().equats(,,hyd,,))'to4 t199 req.setAttribute(,.msg",,'vatidCredentials,,);106 l1OT else108 {

public ActionForward savingToken(ActionMapping mapping,ActionForm form,HttpservletRequest req,

toEeo cr rt) l-

117f118lrs( 120

I l3:#.blhlft setAttribute("mss","rnvaIidcredentials");

11L t resetToken(req);(]ry"@ return mapping.findForward("success,,)iflit "t'"r;*]

@e)"*,0

Page 185: Struts Natraz Notes

I

\

I 121lnzI rztllUlnsL rze

127128

1129L30{ rerI$zLrgl(1uI 135

J rreI rgzI rrov39

140

-HtlpservletResponre rec)throws Excapfion(

System.out,prlntln{"eavingToken(-,-,-,-) mettod',);,rrcglster token for client .saveToken(req);folg!! rnqpplng.ft ndForw!!d(..succ€ss,.l;I/savi n gToTen

-- --IGT .-..-..-----

llclase

@)--- auccossjsp-<b><h1 ><centepResultPage</centep<rhl><bpResult is : <96=requestgetAttdbute(.msg.,) 06>

<p> <a hreF'beforoRegister.do?dispatchEaavingToken'.>Fo,mpage</a><rp>Jsp.....---

<h1><centopDouble Posting Not Allowed<eentert<p>

<a hreF'beforcRegister.do?dbpatch=eavingToken..>Form page<ra></p>

Tokcn APP

jar l+tcs io clAsg?AlH

14 -..?i, J a\, Jttt/is' aof! -I3t1

ih toEB-tNF

lo -+ g,ttt i a'

> I'Eg -T NF Serr

*,lPx4 \ru &r.,aa

Atos -

Rqptst 61 1

jI

jj

1I

II.l

iI{II

> ird€ { isPt Alfof,jsl'

libf-r ; $a1 (r o)

htp :1, t,xottosr :).ro l'loyerftfi

Page 186: Struts Natraz Notes

',* 6nam a* EgB inrc6raFiarr'.*:

mudletocle Servr€,5 A.re O.r.tl ll3n6t , Opttorro{

6{p1i(afioos r{rnc tx,tkt aod orarra ^r .

E3:- T,arsc-rrrcn rr5rrl, Set_trrrrg, Looln , JDBC

-+ g1&l1t- arr-re YfliGA are rbt

An Ar'r A{"o5 '

Ueo,rrres

to Ccto 66a"e

-7 toh;te

clo5S

.._,2 0

-,, e--, @

'-'/ O 6rtu.Ds i.o deuclog reurable

"L 0 olto.t hcrh lcal ' rerrote

- O trc l3-rilt-in tniddle c'oc.-ct

C<rrr$g iSarab lc Eerwi'(g

Omrr46 Pooli% ard €ft.

1olffiFe o(1{

mrDirdrr" tqrcr oP clt {\ &*Wft*nt ' -Ilzl Ne ade)}fior,il loAi'.\

duxloei y 8lnrt6 GppnS locarng Bustrr1, Lqrc aoJ fxrslst<ntt' lqgic in atutls.funoq

ie h,o;n3 fne 4rro-; nB \irnlft$6os.

lqicg beome Sftci Ft c 6 611. u.f-b OpPn.

Io0ics Canbe cacecsd olg &rrr fioe. tx"rs

Addtng mlddtaoa'.e Geilices &o{0"it cn he logtcs

col'ro can Ben',n.,t? f*ry'est'

'.--l ->

ro 6dws ib€se pwblrros ule EJB corf,,trtedt ' tttl) epirrg colrl

\+'7 rrdd l433'r Brrsiness Lo€tts, [s{6)srcn't lqt}cs

---+ ustng EJB compneru-s ur cao # SrraoinS hne'tl€'

Itl6ics Pur ruttPle aPPo6'

cliarrfs Gnd b*P ' *''*trP tvtttrs

?uR Ccrr'Ple^''

-lfibr" ocre ct{'Pns to dqx]oP

to ases< fie lo6l<'s '

(veWnst)

Page 187: Struts Natraz Notes

-? ln 9161116, t0 FJB Coroyo(rhtcafi an

,IP efr^rA Atrtoo cUse Confaio"s

llodel LaXcr resdtr.€. T SarrC

Latytt rtSaxceg *ren i t ie Gutd

$e alrcrfs Ac-flon doJ6 crirkrl n

&x;rrsSl-trgics ard pur', ercoce

Itltrnclccre cdnfaLir,s lqtc ro

Convmtlert l'tr<n,ry:a^,ce.'

09Iotl2.{rt3logtc tb )nrcrcc16lF rrforyz,,q

t4r.s d*nrlg tbco ir.is coll<&-,

inlerc<'t @ i rb otbet rloltP'l U

\-/

En exarr'ple olpn co tfu ala* d'q*- [eett,.

@ e-* ary*.w;b @, @

6p*au.* to dq,loSee

APfooc<5l l' deplo6ee ,*t \ i^

&{3 Ccrrn0,,}rr, 8wt*7P -unt

' i,to'l -'nPr4rura66tutt &aatol &rutr 1

S1,.* {rso td.fla"" wfu aPeucattol ,-

---: 6crn ml cvv Ststcro5 ------' a?Pogtuet '-'-"---' .

8tr"ftdefut'r*"'('{ )

cmrrBte

dnd a€aut€

ffirllruc,lhosr rro>"f Surnkn l*1;j"r

aLhi-.t- ecrf Rle : jcrrFl€ + iarF[e+

fu, hrc -- g6ati t e * t'n' fn e 't '

ert ?-'te = iorBrea taarftze+jrr?le+tn:nfirc't " '

Frr Enr?;te anfrllslt{oo'xrDf i5 Natoyenvta Dscnpi?r 8ro t'*'rO cfts4

j"t Rrs . .

i

jg..\ hpo\Prqrzr\ EaiTest > tior

/5+ltconoo'rrotr,..

1

1g6),Cafi ot z l

zdspla{.-rpnr > EARF le zldisf'laO -mrt'c:

lJooclu lQ-

. /urb> /-, r. .uxrr 4*16 -/rjg-]: -u(i> bto4l^{,{or*c^t-wot t /Hsu.l z /&mreot

*rool -, * * ued uhi\e oc-oesrn3 rh(

4Lttr> *f,ffi.g"*

6p fig ureJeo{'f n ,tr)/'1a',

Page 188: Struts Natraz Notes

/'lc4pr;cctr]'un>

zrpodul e )Lfi:drrle>

2qibt GmP'i-dr

- 4rnclutez .

al&i b >

. ; ..i. '

"re$'r€St 'url ',: ' ' '

htf r/uorhqsr:8cro I

f

L,,1

\-1.-^-

\-,

\_./ _

tir liJ.r;Jl ,.j?;. "!

-L dtllFr :- 1.o1 ,ii, : .,q.,1;.. :.

.f

r. , ,";1! ;".:l *"a,'i

:,'.'-"i-,.,',1 '1 ,;: ,.i.'r'

Page 189: Struts Natraz Notes

lirn;tarlong oP €rrn rSf " x :-

-t Sntrr6 APJ is horio3 rrrre, Ab6n6.rt closse6 .

-+ The .Javo rrsarrces oB StrrrrS opp n 6truJb APr

resorn€6 (grugrc,rrrrrS Te$hog ) i5 C.'mPlCt, .

lolo\l1ol5

goocl APJ .

soi 0Di1ffsdnJ o? rt,ere

6()) i[ is nof a

otqrrnolen l- .

so) (oe nee.d to €rplio{ tPf.'t .&n'Hro$:g[!''v

'+ (Nnv';$S ttrifi vd,id6lrr{Pl'rgio ib lt,&rm .Qr.- vofiaorr""t6 i6 +titc 6rt'Plex

needt some ad& ticrnol Pr€faro lr'3 '

K) &daP Presen r(rH(IO lo8ic6

4

-1 urclrt',T @irb cherbcres ( lisfboles

t ltrre i5 no Aomfdlon g.pf,ofr

-> Vierole,Xer al1&o6 oolS HIML, JsP )drrdqtc{

--+ fthrg8i"l o? Srrcrrs appliarflocr ItK CornPle.('

Actlc,n cla*<ee o{e rDr llrig4dfi.,Bi- 4drku'tt'ood erc.. .... ,

totUch ort ourlt{'{o&ke .&,t in" ,)"tt9r t"s bc.s€d .ve{cx,'a4

.J

Arfficr.riorr5 oYe

ConPig-rrarlon 6

Jc.va stcrrcwrrtrs

crta rgc'dPjra

o( rndthcaHoo bt'h bad pet&'it"soce (bcz lrr'\ PsG

JlmL h\ts gi"'e nod Oexluit'ti

a* k"^5 urrXh"r 6kr's ^ .,

An'otanonb 6\w t00d penPdnance oo,a &a '$exibitinJ oQ ttcdisd- .

AF,ool(,Hon5 a{e iofodx"ad &ur. Jdkl'6 {o pfogtaroioS'g' *'e gtr'nolqlea 1'6-

cre deoigoed bcrsen orr JdEl'6 + cra Siviq st'{f'fi tt'r -Ant'l:tulkt 6-ts

-lbese lfthholo{i€s &Ye "

SNom> oP rAonorarttoos i r--> liye

@ Zancoraloo-mrrez 1pu'o*'r= ur'cf ,F$c$P =\plffz' " "" )fL ;3 l*e Xml tag n4rr€

gr{P[es

SkrrS g x" '6i1,

CJoe kro! I ibrGrb 1o",.9 5 rgfts $ tu3S .

(l Gerwi" rc.g5 @ Urrr"r.nhn.e ta{s @ $crx tc3$

Blnrhq a i3 deg,Sned k*ed q* 8rrvlc.t*Ce A+, Jsp Apr 1,o )JdL 1,5 ,

7-6htt2-haoe > f trul twura-Ce,re - 2'o'll(ve$lo!)'ie1 : €d$s6 XU:orK -1o*-. jor Breo

ye{'resenks B$s}Sb hOot &rt^

Page 190: Struts Natraz Notes

A.r kcfi,"es of erc'rsa'r rcfu ftge m:@ o? ge &roPE+. :-\,-,6

I'tJr ,

on odi narg 3116f,r,ce <oirl-rtrr ong Telhrdo6b sfrecJBo

l5 c&ue d

I rrurs a

implernenHog Cl&ss/ inkrftlc€S of , g;r$s e Apr

ofie cl,q ?<reme b\u: 6tYrrri 1- x a|., d 6ttur6 ?'x elr)$r(Jorna'u I

crn ord;mj Javo

PoJo cta55.

clasg corh a* 6p, Te.J',rblc€ 3 srtuPi c Aer dependerr, is cdlre d

APr dqFrDd€D3

\v .-.,

ei

Actloo clcrss ib o crcd6 be.au,. i! crn be clerelrrgred oirt^,ot'{ n^46abD$ r

Whrrit

refu{ fx'te oo's rot4rl1.

. Termioofcr.lg rnar4rn3 bercoeen\

6ir0r6 i x aod 6ild6 e'xgf or/:ors

6lrc!.l5 ?'x

Gntot tev

€artd6 i'x

fu;tbn &rvte-t

(otS. o{l,"}'e ' 6rILd6 ' cttHdn

Fr'r E^ D l5f4t*,€d

F.d) (o{.a@qhe ' 6rY4rta' c}eP,nr'<T

FormBec.o

Acw'tz'roards ce3 "res&rt cel

S1,Ld6

^u{oo

ctc.s6 (rrrr-aio c toss ) Slr.'ts

Ct,srr.;anj

CcmkD ll€.{

fu6a"flaptnX

use r -dePioc d flceln:t fticas c,t

<+ng firenctme > .rml

(aog loco-H c.n )

wk%%

(rsa{ - de fined Jnrc4aa

6rrc.rs cft3 Bregln /rS'x rn I

(NrB-rr,rr Jcrcr.su )

Page 191: Struts Natraz Notes

Ftur: sg O(ecurloa in 8t[u t S p,. x o{,p)i c.+t crf) 1-

$ruosc'r totodoco

-. aP ttHen clorS o'ot&rn g Buslnesi Logic e*L3

--a I€ Acnon c\crrs Conl(lros knic A inltrclcr orirb

EJB Ccrnpner*, Sni^6 toirtr bih"na+c c.pgn c'nd

"' GntrDllc/r Lqju{ yesouY(e

-', 6h(]tK a-r -Aefftnr, CtosS obje* oi r r nor lcg C*ecr-fcd

O O Sra-rts a.x 4rpplicaHor) (Dq'rogced arbaagrc26an )

\J*r,r, it Csr.es Crnc,te,r- -tfoael

VtH(Jr rcr,(dt' ,\-_/

ofts rrroder tata resotrrced llr€ t-,

€Ba €te tbeo it (a66'a5 unde/\-l

\_-/

g, lffo.rcd otr^ tl'r E^t"re"ge;s' \,

\_.,\c".,rghe d on rhe BrD@t{'r coi ncLcrk)

-> g*rerlrrcva a*e k'uio3 &Po''t hle'ia o(- B"ttJ^3 inslt,'nht,led ^fu 4 u

.9"^u stc.nre4 or Ch.nnSstd+l%cT ncrut- Q a/.'ktap\ttattcno o*wtauat)1 "

- S0, thp.a is ne n6cd oP errcbiring z\futol- tr.4 - stc.Lttq > so *""lctF Ltot'

N r'lo the d.ta$"am

@ fxqpcrrre" dq'lo6€s Siuls e'x oef/r1 In fie krdxll

O Sarut.* c'Dtrdnor c-,..rtca ob€-.t og FrtotDiefafL'lDex gjrl'tr &*itg €ar'o srt"r"p 1o"

duvinSthedqlo'ltttumro€tr-axty.'lr,,f''J{'tl"rsP^tu*sFrrc^D;tp'rtlne"v

rcodi r.qd ver"ihel Sw*6'xrrr1 Rte imdr,.tls

@ gnJuscn lceunches rhept- P",ge of 61ltrtte'x c{40t"! crn $ruo*n atrr_iryr,,

\,

\,

i_.,

Page 192: Struts Natraz Notes

\--l @ 9.t us<rr Srbmirs tte re4uesr f,orn R{rrl lr,Be \ e,s cnrrcllw FucxDlco1nhc,t\-2

haps { 161r."g Jh. r€ryle-sr

\J

_ @ f.'nnDistr,kt.t^ (-les 6,farr6.xrql R're e.,rr).S tc, c{crlde fhe A.nonctc'ts tg.t fu{

\--, to be Osed lo fnDcers the rcTre*t,

-- @ E'trfts$t4tx.r G(,t-ca 5Mr5 *.d6ocla$ ohje4 .

..-, @ FrxnDirpatohrc,{ G4s $Xx, ( ) d 4.rtooclcrrs io c,trrirc Fa.nl*z^to fur""cla]s

fJtDft(fB

- @ F'rcnlspa,rchu errt't,

fue^*.*.( ) 4 -rbonclcqt tolctre Br-ernersL6rc ic "*^M'

'\-,-, to ProCerS *re ftrfre5r

..-@ gr*L) vu,rrn Wt 6rnng larrae tb trirrc*Dislu-rdx'v '

'@ F't.Drsfrdder usu* p3a1sg 6oftgcrr'afion rcd@cre *t {esutr P&d. '4 Stsaacl,.s

- 0 FrwD;sfirfcl1o{ 646 -oixd Rrrses the Conr6 ote to Pex* gc'g:

\'-'O pree.nkaflc,n lqrc cP Qescrtr pcqe *-rrr*rrtr. .resrrtrs o'd grn& t""tfitd r44l}s

\'---' to 6roc.op, colndoto as D5t*"i' utbf'uXe G^t<Aj '

' ' ^ *"rnl-trr Oicq inJc'rcepfrr* '

\---, ',,,.n ,^ - ; ,s,*n116os Er rc"Di srnr<,*,r ;.r t..t'o113 oicq inJc'(eP.r{ '

NoTE} ohirg f6r5rplgc$ng (0 * O qtxaHdnr

'-- ';' 'iJatD'r6rn<il'-er- ----I--l .-r.,. , Brc \o-.rg lx urt-.-- ] *e conAgare Fr rrDsrntcls in t-orb ^m\ .. -'- +a*r.--

I ,le conAgare Fr rrDisrntclsr in orb'^ml nrL r : p,na orr 1* **i-{*<*

.- I F,*D'rrrar.f,e,r c{s &nftDlltlr and 6 o1!ro Frtt"Da"o}ot t6{

- | G'r'rn5 to ShrGrsa.x ce(Xr.

- ry11'(:"*tfj.")' ltrxt:'oP? >

. t?tn.'> rmez 6hdrs a zlg-n> r c\. ^--L-.

' ' iirt't

LBtrt'.-trtme z ":':*;". .affrsr. drsmr.trn' Frr*Drrlrrehov zl P-c>

:--'\- 41l."''Clctss> oY3'a{srhe' Sfcrg t '- clisr,,r<''v" rr^''u -r

l; '

\r AP-,tw> .' r' ''/fi'lEl( -rrrt'PPlog 2

\-,.ZQlr.r -fu.toe > {vwi< ? z)P-n >

Lat- Qdl+l: n > /x zlo'Q >

\:7 zl Aw<t- molplnq u

- <lrrtb*orf -

Page 193: Struts Natraz Notes

6trur5 - &Pq.rrlb. xm\ F," Siwn b$ Si"nats a.x (6ntctns g-e. IrLtcTct{'jfuf 6fa'!S

Ond

ttus Bre cc,r,krin I l1 rrs(alr tboes litse choo, dtsptctr/c;

o.rt LL\eR! to

-ltus Bre Cclfllcdns

These ir*cralfu'.r Ccrer€q/u.est Comlog tD

re\&rri F0 Acrtoncbos.

&lrrt-in ?€sdt tU pe6r t rttc".rO+r"tv

shr€clm.., and elc 6rr lrr.l.,

.\,

&^ *ruts -&A*.dt '?aih4e'

ge Pofr to Brq,c,tq bindciru.\_.r'

EO no.4 Jr*<,,cepfor6. 1;p Gtias/VdfidcLNhz ftve6rt€, sco?e r+o,r<o vts/_.of,re ..r.{..t -Pn ErrgDt.rcrchrv to &zrde $e Fto..4o*"."",_]-

!,

$krts - j3p6411 - 21e1 .Br" olro 6irr.r JO .lnfon6ef,f,"1 Sfte&S u,hpxe rAarcL

lni€'rcltzr6 &'re &'nb;ned into B,ale uwt,

Inr,rqrcX &€ Con€gmJott An lvt h/d*i,o claX 6a*t6.

&P.rrt a.d inftr,Le+t<n 6lcet conrl<,;w l6"tnrcrccptors dhi4 d.ur)

nterc l-nto,te4k* 7ay su" 1;* &trcEoot-, dtPa,at SbaA., e*an't<{ol A*, "*uu, o,l J ee-.-q,

rlC!.n,tro L rht &*+-

\,

--? JF no

6oitt te

&\Plidfk c6"g6rn:al a^f'g hmnctag c* &,afs a'x

tt e lnt<Fa+tat +*AePz""trgni Al !'l*'Lt '

--; .5nrs ?. x f&(-r.ose is c. 1:6iror uni t cobo.e *r 4 AcHdn clcrKes / Qexrrr Pcqer' rt'rc'ctplt(

C'nLe ConRgmed, \-/

---+ Shrctn ?',x Dockoole l€:,.lnoloti \s nocrloJ 'refcu"a to t\e gt:' Pvt k{r'indqU" \J'

cleParrtt 61ast , oiltlr In1t'r(tn.7. and to vPLa A'n +J-L cl&s4 ob' i'

usl\ Qewrr lgtu (&r,-,o Q*rt't +yu) oenecdra prft''m *''t &'*i 'r'"o \J

\,oft ( cdlot\S

Q lnr,r.te Sm-rls-d.Pc.,,r.^*, Pire in Srurs,xmt frte.

Q c**r< o* w.ddqr{ in srrrrn,xn\ Rre \. g^FncunS

as shaoq kl"co,

Pro* c* ereosrtoc' 4 *tt"t' cfera'

Inltr6qf66 15

ehB"*a cotrh

in ghuls' xtn I

Page 194: Struts Natraz Notes

,l\.-7

&

P..I

)

l6YeJiS>

Ztnctud e Bre =" Stnurs -deea'rte'rm t '/>

LpttaXe nornr ='ftcsg ext,ds --"gIt*kI.*j t'-E-dr fncl-€,te nart€

Zaclion narn€ = "dEPt A" chs -- Py DisplagAc-t+ot' >

rpsurr D4ECJ ( zresc.rt .o-. jlfl:litt" /..,o.es, j.? z-l rzar.tt z

tooFtaavalton 1 o - ..: t)Lu'r'ru'ururr L zres.ttl rrrme -^ +aIar\c' > lt{o:l,-.n'j,"p z-l rr.Nr't 2

zlauscnt T

zlw*ettt<,

4svxtx

ZIDocIWE

Srcrtb R t Afpob

trser &Ar*d

loco+icE)

lL

-. / 3tr*5,-1-6. X13

Srrtrts- deRortt - tmr 61.

'krlsn clar.s

cor'ftgara*t on

ihe.€ cbn be 6*Ltr5 ' ProPer deg

Gre ;s hrs-rrr\ ctot<"e '8aae^

qzlor!99

9, e to sPeci q "l &il&L ?e\uMr'-/s

' .t.'tn

llEe

Tae StYqr6 . fr{rdfies

a]I|,itiid.fio'],:-F;TSt Stra ts

Page 195: Struts Natraz Notes

6fiin ?.. x

fire;s tl

Slcu &,+pltts -lt one bnitt-io Jsp la1 l;fiar1 Cauel stuu s ELfl 6 . Jts ttd

&recr'"grro.a,V

w(,

\-r-

\-.,-

v

\,

t-,

U

6lrar6 - t&Js ,ctd' (wat; tuxte io 6'rLrlse--,c,t:,., - Zo. tt .3a, )-+ -hc -Jqtlrb un iS /$rars- raflS,

@ ft" *re alalt'r J,o6^ LreA a11pn_fuirteCade nepp.e-a Aep: ,o? pdflcno,6 @"@

Pocedarc 10 derElop ; dairgee and execde dlrrrrs a.x . [email protected] (*n, 4 qlno'; 1ro ro rrr)

€) LEe hc atovc €xr{c.rrd &o'tlnt os rcg<.*ncc @t\tcn* ^

,rcn* dorOutoflotr

o? efi gwrls a{phcatlclt) '

rdB -J^J F

y+w an ++,/'c- io, Av 1"-

C9

o

ho jdY F lca avt rqrrrred ' (ktatrc Dt"r'b Aot-r cldrs is folo clr.n )Ja, fitcs in Hge-t^rr/ tb 4de{ :-

C"r,-'ro's -15tr ^3 -t' I 'rrr.

./-fo.rror* -L'3.t'J.rc t o1n.l - 2'6'lt'iatrr Sltvttz'cett- - 2'o'6 iatl

^6oG-L'o'l-Ja4

*^xn (-la'r"ts's * )l

ry4l1ee rhe 'br "fc"O , +J"l in

grrrx 6; *lhrtfie ttrL a+Po '

. t_hftp ll tobthosl "

nn lN'ptl l"\te^'JsP

-I6e lr*n n( u.Jautt{n + M"Y-

,nda(,(jJf

fuc<rs Jk?

ftir.j. p

W #,u in cl,ksprftt i-

Jlrur. polvnrcr

D4lo5 ,4-t on. cfo*s4'vd;ailor)Pun oot. fr'!r|,,rr}c{ .

DisnluaAztt on.jaoqJhafi' rfnl

-J^qt

SV'? -T ex?flrfion '

Sk! f the

Pe$rest crtt :

@ f'tgto tt* 6cplogers AttPt

@ *"u* cctnl-aroa Condctrs

o{frO in 6Yg/\rQ(,I

in6ta,tnSJaFf,fL 0fi4

ccl *PPucart on *nu?

3;6alr:zatloa of TtwDisPtW

uXfu'+nn

6FruJ(.Xm\ 8re a"J

e-nIot

dartnS &rff^

firrc, Pisparrr["r

6k ilIrf Ccr0

v€rds and

ft,.

.h(

AP? T

di^tn3 the Un\er''e'* c4

W^Jf{ea $e €rtrnvs oP

SftrK'fnqc^"tg

Page 196: Struts Natraz Notes

.l '-- O Ed crs€.,( Brua rt1re<t lo App(D c+pn

,-,, bwpr/tuc,rhost: "rox/Rwr./r"du-Lre (@ - @)..--, @ Lrau* Sr.d*nirs tre re{pe:t fo-, Frrorgc f,o-.,rng rl"c &ta ('ee" @).,-, O gsLsed crn the rutr- t''r Ht in <5:6rn > t4 tIr S1'n"'"5 ^Ep*rtt\t

(oilt 'e

g.nruted (r.t",(9)\--' ht?:// lo(olhosl t tro* I *eorl disdoS' aaloo

'- @ ro. FrrrDitpoklt" hars crnd t'-ver tle rE'"'t ( @ -6' )

- @ [6ed orr drspla$ $or d o? Ye+f,srur I Ftrc'D;sprc]sr tT ,':?lX

j Crmtiqurnfio.n ln 6hor5.rml ft," crhose lqial rurrne ls '}t,t*" Gg"eg f9

,)

O ?irrcrDlryf$chci Cr.atri DXe66A+'rr ck"s eiP* u'rn$ 0- p'r- consrullxn s'{f"{t-

.-.' \'-"'/ ("n orcf/r r€+rrt k"lt).

r-*,'n crno, &F* ord orire rhe\-.

6oPed 3elXxx (- ) on

J@ **oo?""jY y :::":;*i*#,'#'" (o-e;: 'ecciwd

€"'n dor". to ftrronc-lors fht Lcrls (*^e. @ r@ )

.-.O FrxnDsputhir co$s exeorraf ) .i ** d..iu'or 4 fo6o"n cl

- @ a,,,*[.) rerc,,nso' #l'; %?lfL* (*e'" @ o.) 0D )

'e fittaDisgatchrrt 'ftitu\Es \ctlae 0'"t h eneolteL) ftstfiod onJ uses 4"s' WIr'x-

+a cleode the )fJutf Fqe oP ktw elc*zb^"d o't 'tresulfs bnfugua'ttc' 'arr (x€e oF N'nt, _

t rel., @ ; @)^

.- @ Frc^Drcpa*u W) #re camb n Qme &*ar,.6e [*f'' P*- W

Page 197: Struts Natraz Notes

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