vaBea
’spropertiesbylooki
gformethodsprefixedbysetisorgetIfacompo
e
tfi
dssuchasig
atureo
aJavaBea
itk
owsthatthemethodca
beusedtoaccessorcha
gethebea
’spropertiesSu
i
troducedJavaBea
stoworkwithGUIcompo
e
tsbuttheyare
owusedwitheveryaspectofJavadevelopme
ti
cludi
gwebapplicatio
sWhe
Su
e
gi
eersdevelopedtheJSPtagexte
sio
classestheydesig
edthemtoworkwithJavaBea
sThedy
amicdataforapageca
bepassedasaJavaBea
a
dtheJSPtagca
the
usethebea
’spropertiestocustomizetheoutputFormoreo
JavaBea
swehighlyrecomme
dTheAwesomePowerofJavaBea
sbyLawre
ceHRodriguesRodriguesThedefi
itivesourceforJavaBea
i
formatio
istheJavaBea
Specificatio
Su
JBSModel2The092releaseoftheServletJSPSpecificatio
describedModel2asa
architecturethatusesservletsa
dJSPpagestogetheri
thesameapplicatio
ThetermModel2disappearedfromlaterreleasesbutitremai
si
popularuseamo
gJavawebdevelopersU
derModel2servletsha
dlethedataaccessa
d
avigatio
alflowwhileJSPpagesha
dletheprese
tatio
Model2letsJavae
gi
eersa
dHTMLdeveloperseachworko
theirow
partoftheapplicatio
Acha
gei
o
epartofaModel2applicatio
does
otma
dateacha
getoa
otherpartoftheapplicatio
HTMLdevelopersca
ofte
cha
gethe
4
flooka
dfeelofa
applicatio
withoutcha
gi
ghowthebackofficeservletsworkTheStrutsframeworkisbasedo
theModel2architectureItprovidesaco
troller
servlettoha
dlethe
avigatio
alflowa
dspecialclassestohelpwiththedataaccessAsubsta
tialcustomtaglibraryisbu
dledwiththeframeworktomakeStrutseasytousewithJSPpages
5
fJSP应用框架
什么是应用框架:框架(framework)是可重用的,半成品的应用程序,可以用来产生专门的定制程序。象人一样,软件应用的相似性比不同点要多。它们运行在相似的机器上,期望从相同的设备输入信息,输出到相同的显示设备,并且将数据存储到相同的硬盘设备。开发传统桌面应用的开发人员更习惯于那些可以涵盖应用开发同一性的工具包和开发环境。构架在这些公共基础上的应用框架可以为开发人员提供可以为他们的产品提供可重用服务的基础架构。框架向开发人员提供一系列具有以下特征的骨架组件:1.已经知道它们在其它程序上工作得很好;2.它们随时可以在下一个项目中使用;3.它们可以被组织的其它团队使用;对于框架是典型的构建还是购买命题。如果你自己构建它,在你完成时你就会理解它,但是在你被融入之前又将花费多长时间呢?如果要购买,你必须得克服学习曲线,同样,在你可以用它进行工作之前又得花多长时间?这里没有所谓正确答案,但许多观察者都会r