外文资料翻译
资料来源:文章名:StrutsA
Ope
sourceMVCImpleme
tatio
书刊名:《IBMSystemJour
al》作者:MalcolmDavis出版社:theIBMJour
alofResearcha
dDevelopme
t,2006章节:第44期第2卷页码:P33P37
文章译名:Struts一种开源MVC的实现
姓
名:
沈宏伟
学
号:
102030111
指导教师职称:
张小翠(讲师)
专
业:计算机科学与技术
班
级:
01班
所在学院:邮电与信息工程学院
f外文原文:
StrutsA
Ope
sourceMVCImpleme
tatio
Thisarticlei
troducesStrutsaModelViewCo
trollerimpleme
tatio
thatusesservletsa
dJavaServerPagesJSPtech
ologyStrutsca
helpyouco
trolcha
gei
yourWebprojecta
dpromotespecializatio
Eve
ifyou
everimpleme
tasystemwithStrutsyoumaygetsomeideasforyourfutureservletsa
dJSPpageimpleme
tatio
I
troductio
Kidsi
gradeschoolputHTMLpageso
theI
ter
etHoweverthereisamo
ume
taldiffere
cebetwee
agradeschoolpagea
daprofessio
allydevelopedWebsiteThepagedesig
erorHTMLdevelopermustu
dersta
dcolorsthecustomerproductflowpagelayoutbrowsercompatibilityimagecreatio
JavaScripta
dmorePutti
gagreatlooki
gsitetogethertakesalotofworka
dmostJavadevelopersaremorei
terestedi
creati
gagreatlooki
gobjecti
terfacetha
auseri
terfaceJavaServerPagesJSPtech
ologyprovidesthegluebetwee
thepagedesig
era
dtheJavadeveloper
Ifyouhaveworkedo
alargescaleWebapplicatio
youu
dersta
dthetermcha
geModelViewCo
trollerMVCisadesig
patter
puttogethertohelpco
trolcha
geMVCdecouplesi
terfacefrombusi
esslogica
ddataStrutsisa
MVCimpleme
tatio
thatusesServlets22a
dJSP11tagsfromtheJ2EEspecificatio
saspartoftheimpleme
tatio
Youmay
everimpleme
tasystemwithStrutsbutlooki
gatStrutsmaygiveyousomeideaso
yourfutureServletsa
dJSPimpleme
tatio
s
ModelViewCo
trollerMVC
JSPtagssolvedo
lypartofourproblemWestillhaveissueswithvalidatio
flowco
trola
dupdati
gthestateoftheapplicatio
ThisiswhereMVCcomestotherescueMVChelpsresolvesomeoftheissueswiththesi
glemoduleapproachbydividi
gtheproblemi
tothreecategories
Model
Themodelco
tai
sthecoreoftheapplicatio
sfu
ctio
alityThemodele
capsulatesthestateoftheapplicatio
Sometimestheo
lyfu
ctio
alityitco
tai
sisstateItk
ows
othi
gaboutthevieworco
troller
View
Theviewprovidestheprese
tatio
ofthemodelItisthelookoftheapplicatio
Theviewca
accessthemodelgettersbutithas
ok
owledgeofthesettersI
additio
itk
ows
othi
gabouttheco
trollerTheviewshouldbe
otifiedwhe
cha
gestothemodeloccur
Co
troller
Theco
trollerreactstotheuseri
putItcreatesa
dsetsthemodel
MVCModel2
TheWebbroughtsor