软件开发的家园,编程爱好者的天地.

现在是:北京时间 2016/4/14 上午11:50:51 星期四

设为首页  |  加入收藏  |  网站地图

当前位置: 第八基地首页 > java > j2ee >
JSP Tag Libraries @ JDJ
发布于:第八基地 来源:互联网 作者:天堂路上 时间:2011-10-20 点击:147

JSPTagLibrariesbyGalSchachor,AdamChace,andMagnusRydinPublishedbyManningPublicationsCo.Price:$44.95

TaglibrarieswereintroducedintotheJavaspecificationtosolvemanyofthelimitationsofusingscriptlets(bitsofJavacode)aspartofaJSPpage.ThemainlimitationisthatadvancedpagedesignmayrequirethedesignertounderstandJavatoperformtaskssuchasconstructingaloop,if/elseblocks,andsendingane-mail,andsoon.ArtdesignersandHTMLdevelopersarecreatingmanypagesintoday'sWebdevelopmentenvironment,makingthisapproachlessthanoptimal.Tagsprovideamechanismthatwillallowanon-JavadevelopertoutilizeJavafunctionalitywithouthavingtolearnthelanguage.TagscanalsoassistJavadevelopersinseparatingpresentationfromcontrol.TaglibrarieswereintroducedaspartoftheJSP1.1specification.

JSPTagLibrariesispublishedbyasmallbookcompany(ManningPublications)knownforwritingbooksofverygoodquality.AsthispublishingcompanyissmallerthantheWroxesandAddison-Wesleysoftheworld,youmaynotfinditonthelocalbookstore'sshelf,andmayhavetoorderitthroughAmazonorFatBrain.Reasonablypricedat$44.95,ithasabout600pages,dividedinto15chapters.Thisbookdoesn'twasteyourmoneybysellingyoufreelydownloadableJavadocs.

AsIstartedtoread,Inoticedthatthebookwasverywellthoughtout.Itcontainedonlyminortypographicalerrorsandhadagoodflow.ThisbookisnotsloppylikeothersI'vereadinthepast,andIappreciatethattheauthorsactuallyunderstandhowtousetheEnglishlanguage.Itdoesn'treadlikeamanualbutmorelikeaconversation,developertodeveloper.

Part1beginswithalightintroductiontoWebdevelopmentusingJava.ItcovershowJSPsaredevelopedandgoesintosufficientdetailontheirstrengthsaswellastheirlimitations.Laterchapterscoveratag'slifecycleandhowitmaybeused.Typically,anexperienceddevelopermaydecidetoskipoverthissection,butIrecommendreadingit,asitalsohassomehiddengemsonJSPs.

Part2coversbasictechniquesonhowtodevelopatag.Thefirstusefultagthatisdevelopedisforsendinge-mail.OthertagsthatareintroducedcoverinteractionwithaJavaBean,usingtagsforvalidation,assertions,controlofflow,aswellasaccessingtheapplication'sbackend.Chapter8,oneofthebestchapters,coverswritingatagthatdiscoversaJavaBean'smethodsandeventsatruntime(reflection),ausefultechniqueforalltagdevelopers.

Part3divesintoadvancedtechniquesforcreatingconditionaltagstoinsulateHTMLdevelopersfromthetrickysyntaxofcreatingif/elseandloopsusingscriptlets.Chapter11introducesusageoftagswithModel2architectures.Chapter12focusesonusingtagsinaJ2EEenvironment,andcoversusageofEJBsandintegrationwithbusinesslogic.ThereisanawesomediscussiononusingtagsalongwithJNDI.Withinthischapter,tworeallypowerfultagsareintroduced,oneforlookingupabean'shomeandremoteinterfaces,andanotherforconnectingtoaJDBCdatasource.

对我有帮助
(0)
0%
对我没帮助
(0)
0%
返回顶部
在线反馈
在线反馈