Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 74 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
74
Dung lượng
1,85 MB
Nội dung
FKDSWHU 5MUWZQbQVO\PM-2*ZMTI\ML,,\IO[ 4HISEXAMISABOUTWEBCOMPONENTSNOTBUSINESSCOMPONENTSALTHOUGHINTHE 0ATTERNSCHAPTERYOULLSEEAFEWTHINGSABOUTBUSINESSCOMPONENTS"UTIFYOURE DEPLOYINGA*%%APPCOMPLETEWITH%NTERPRISE*AVA"EANS%*"SINTHEBUSINESS TIERSOMEOFYOURWEBCOMPONENTSWILLPROBABLYNEEDTOLOOKUPANDACCESSTHE ENTERPRISEBEANS)FYOUREDEPLOYINGANAPPINAFULL*%%COMPLIANT#ONTAINER ONETHATHASAN%*"#ONTAINERASWELLYOUCANDElNEREFERENCESTO%*"SINTHE $$9OUDONTHAVETOKNOWANYTHINGABOUT%*"SFORTHISEXAMOTHERTHANWHATYOU DECLAREINTHE$$SOWEWONTWASTEYOURTIMEEXPLAININGITHERE "UTIFYOUREINTERESTEDIN%*"THERESTHISREALLYGOODBOOK HMEORFDOUHI! HMEUHIQDPH!HME&XVWRPHUHMEUHIQDPH! HMEUHIW\SH!(QWLW\HMEUHIW\SH! ORFDOKRPH!FRPZLFNHGO\VPDUW&XVWRPHU+RPHORFDOKRPH! ORFDO!FRPZLFNHGO\VPDUW&XVWRPHUORFDO! HMEORFDOUHI! 5HIHUHQFHWRDORFDOEHDQ -90 6HUYOHW $/2&$/EHDQPHDQVWKHFOLHQWLQ WKLVFDVHDVHUYOHWDQGWKHEHDQ PXVW EHUXQQLQJLQWKHVDPH-90 $5(027(EHDQPHDQVWKHFOLHQWLQ WKLVFDVHDVHUYOHWDQGWKHEHDQFDQ EHUXQQLQJLQGLIIHUHQW-90VSRVVLEO\ RQGLIIHUHQWSK\VLFDOPDFKLQHVDVZHOO HMEUHI! HMEUHIQDPH!HME/RFDO&XVWRPHUHMEUHIQDPH! HMEUHIW\SH!(QWLW\HMEUHIW\SH! KRPH!FRPZLFNHGO\VPDUW&XVWRPHU+RPHKRPH! UHPRWH!FRPZLFNHGO\VPDUW&XVWRPHUUHPRWH! HMEUHI! 5HIHUHQFHWRDUHPRWHEHDQ -90 6HUYOHW -90 (Optional sub-elements for both tags include <description> and <ejb-link>, but you donÕt need to know that for the exam.) These must be fully-qualiÞed names of the beanÕs exposed interfaces. The JNDI lookup name youÕll use in code. FRQ¿JXULQJ(-%UHIHUHQFHV Chapter 11. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0596005407 Publisher: O'Reilly Prepared for Stephen Goss, Safari ID: stephengoss@gmx.net Print Publication Date: 8/1/2004 User number: 747221 Copyright 2007, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. ZHEDSSGHSOR\PHQW \RXDUHKHUH %RWKWKHORFDODQGUHPRWHEHDQ''WDJVKDYHWZRHOHPHQWV WKDWDUHWKHVDPH 7KHHMEUHIQDPH!WKDWOLVWVWKHORJLFDOORRNXSQDPH \RX¶OOXVHLQFRGHWRSHUIRUPD-1',ORRNXSRQDQHQWHU SULVHEHDQ¶VKRPHLQWHUIDFH'RQ¶WZRUU\LI\RXKDYHQ¶W XVHG(-%VEHIRUHDQGGRQ¶WNQRZZKDWWKDWODVWVHQWHQFH PHDQV²\RXGRQ¶WQHHG(-%NQRZOHGJHIRUWKLVH[DP 7KHHMEUHIW\SH!GHVFULEHVZKHWKHUWKLVLVDQ(QWLW\RU6HV VLRQEHDQ7KRVHWZRHOHPHQWVWKHORRNXSQDPHDQGWKH EHDQW\SHGRQ¶WGHSHQGRQZKHWKHUWKHEHDQLVORFDOUXQ QLQJLQWKHVDPH-90DVWKHZHEFRPSRQHQWRUUHPRWH SRWHQWLDOO\UXQQLQJLQDGLIIHUHQW-90 %XWORRNDWWKHRWKHUHOHPHQWVVWDUWLQJZLWKWKHRXWHUWDJV HMEORFDOUHI!DQGHMEUHI!<RXPLJKWEHWHPSWHGWRWKLQN WKDWLW¶V HME ORFDO UHI! HME UHPRWH UHI! %XW12)RUUHPRWHEHDQVLW¶VMXVW HMEUHI! ,QRWKHUZRUGVWKHORFDOUHIHUHQFHVD\VLW¶VORFDOEXWWKH UHPRWHUHIHUHQFHGRHV127LQFOXGHWKHZRUG³UHPRWH´LQLWV WDJHOHPHQWQDPH:K\"%HFDXVHDWWKHWLPHHMEUHI!ZDV ¿UVWGH¿QHGWKHUHZDVQRVXFKWKLQJDV³ORFDO´(-%V6LQFH $//HQWHUSULVHEHDQVZHUH³UHPRWH´WKHUHZDVQRQHHGWR GLIIHUHQWLDWHEHWZHHQORFDODQGUHPRWHVRQRQHHGWRSXW ³UHPRWH´LQWKHQDPHRIWKHWDJ 7KLVDOVRH[SODLQVWKH27+(5WDJQDPLQJLQFRQVLVWHQF\² WKHQDPHRIWKHWDJIRUWKHEHDQ¶VKRPHLQWHUIDFH$ORFDO EHDQXVHV ORFDO KRPH! EXWDUHPRWHEHDQGRHV127XVH UHPRWH KRPH! )RUUHPRWHEHDQVLW¶VMXVW KRPH! 7KH/2&$/DQG5(027( WDJVDUHLQFRQVLVWHQW yes Wrong!! Right! ThereÕs no ÒremoteÓ in the tag. Yes Wrong!! PR UHPRW UHPRW PR Chapter 11. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0596005407 Publisher: O'Reilly Prepared for Stephen Goss, Safari ID: stephengoss@gmx.net Print Publication Date: 8/1/2004 User number: 747221 Copyright 2007, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. FKDSWHU 5MUWZQbQVO\PM26,1$MV^MV\Za&,,\IO )FYOUREFAMILIARWITH%*"ANDOR*.$)THISWILLMAKESENSE)FYOURE NOTITDOESNTREALLYMATTERFORTHEEXAMASLONGASYOUMEMORIZETHE TAG4HEDETAILSSURROUNDING*.$)ENVIRONMENTENTRIESARECOVEREDIN %*"*%%BOOKSLIKETHELOVELY(EAD&IRST%*" 4HINKOFANENVIRONMENTENTRYASBEINGSOMETHINGLIKEADEPLOYTIME CONSTANTTHATYOURAPPCANUSEMUCHLIKESERVLETANDCONTEXTINIT PARAMETERS)NOTHERWORDSAWAYFORTHEDEPLOYERTOPASSVALUESINTO THESERVLETORINTHISCASEAN%*"ASWELLIFTHISISDEPLOYEDASPARTOFAN ENTERPRISEAPPLICATIONINAFULLY*%%COMPLIANTSERVER !TDEPLOYTIMETHE#ONTAINERREADSTHE$$ANDMAKESA*.$)ENTRY AGAINASSUMINGTHISISAFULLY*%%COMPLIANTAPPANDNOTJUSTASERVER WITHONLYAWEB#ONTAINERUSINGTHENAMEANDVALUEYOUSUPPLYINTHIS $$TAG!TRUNTIMEACOMPONENTINTHEAPPLICATIONCANLOOKUPTHE VALUEIN*.$)USINGTHENAMELISTEDINTHE$$9OUPROBABLYWONTCARE ABOUTENVENTRYUNLESSYOUREALSODEVELOPINGWITH%*"SSOTHEONLY REASONYOUNEEDTOMEMORIZETHISISFORTHEEXAM HQYHQWU\! HQYHQWU\QDPH!UDWHVGLVFRXQW5DWHHQYHQWU\QDPH! HQYHQWU\ W\SH!MDYDODQJ,QWHJHUHQYHQWU\W\SH! HQYHQWU\ YDOXH!HQYHQWU\YDOXH! HQYHQWU\! 'HFODULQJDQDSS·V-1',HQYLURQPHQWHQWU\ The lookup name youÕll use in code. This can be any type that takes a single String as a constructor parameter (or a single Character if itÕs java.lang.Character). This will be passed in as a String (or a single Character if the <env-entry-type> is java.lang.Character). Note: you can also include an optional <description>, which is a REALLY REALLY good idea. :KHQ\RXVHHDQHQYHQWU\YDOXH!WKDW¶VDQLQWHJHU YDOXHOLNHWKHH[DPSOHDERYH\RXPLJKWWKLQNWKDWWKH HQYHQWU\W\SH!FDQEHDSULPLWLYH%XWWKDWZRXOGEH ZURQJ <RXDOVRPLJKWEHWHPSWHGWRWKLQNWKDW\RXFDQKDYH RQO\6WULQJVDQGZUDSSHUVEXWWKDW¶VZURQJWRR²\RX FDQXVHDQ\W\SHWKDWWDNHVDVLQJOH6WULQJLQLWV FRQVWUXFWRURUDVLQJOH&KDUDFWHUIRUD&KDUDFWHUW\SH 7KHHQYHQWU\W\SH!PXVW 127EHDSULPLWLYH FRQ¿JXULQJWKHHQYHQWU\! Chapter 11. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0596005407 Publisher: O'Reilly Prepared for Stephen Goss, Safari ID: stephengoss@gmx.net Print Publication Date: 8/1/2004 User number: 747221 Copyright 2007, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. ZHEDSSGHSOR\PHQW \RXDUHKHUH 5MUWZQbQVO\PM$UQUMUIXXQVO&,,\IO 9OUCANCONlGUREAMAPPINGBETWEENANEXTENSIONANDAMIMETYPEINTHE $$4HISWILLPROBABLYBETHEEASIESTTAGTOREMEMBERBECAUSEITJUSTMAKES SENSEYOUMAPBETWEENANEXTENSIONANDAMIMETYPEANDGUESSWHAT)N ARAREMOMENTOFSIMPLICITYANDCLARITYTHEYNAMEDTHETAGSUBELEMENTS hEXTENSIONvANDhMIMETYPEv4HATMEANSYOUHAVETOREMEMBERONLYONE THINGTHATTHETAGELEMENTSARENAMEDFOREXACTLYWHATTHEYARE 5NLESSYOUSTARTTHINKINGOFITAShlLETYPEvANDhCONTENTTYPEv"UTNOYOU WONTDOTHAT9OULLMEMORIZEITJUSTLIKETHIS PLPHPDSSLQJ! H[WHQVLRQ!PSJH[WHQVLRQ! PLPHW\SH!YLGHRPSHJPLPHW\SH! PLPHPDSSLQJ! 'HFODULQJDPLPHPDSSLQJ! ,W¶VMXVWWKHFKDUDFWHUVWKDWPDNH XSWKHH[WHQVLRQQRWWKH³´WKDW VHSDUDWHVWKH¿OHQDPHIURPWKH H[WHQVLRQ 'RQ·WLQFOXGH WKH´µLQWKH H[WHQVLRQ %XUQLWLQ²H[WHQVLRQ!DQGPLPHW\SH! H[WHQVLRQ!DQGPLPHW\SH! H[WHQVLRQ!DQGPLPHW\SH! H[WHQVLRQ!DQGPLPHW\SH! H[WHQVLRQ!DQGPLPHW\SH! ,W·VQRWÀOHW\SH!DQG FRQWHQWW\SH! Do NOT include the dot Ò.Ó! Chapter 11. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0596005407 Publisher: O'Reilly Prepared for Stephen Goss, Safari ID: stephengoss@gmx.net Print Publication Date: 8/1/2004 User number: 747221 Copyright 2007, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. FKDSWHU H[HUFLVHRQGHSOR\PHQW 5HVRXUFHW\SH 'HSOR\PHQW'HVFULSWRU ZHE[PO 7DJ)LOHV WDJRUWDJ[ 'HSOR\PHQWORFDWLRQ +70/DQG-63V 7KDW\RXZDQWWREH GLUHFWO\DFFHVVLEOH 7/'V WOG 6HUYOHWFODVVHV 7DJ+DQGOHUFODVVHV -$5ILOHV Directly inside WEB-INF (which is directly inside the root of the web app). +70/DQG-63V 7KDW\RXZDQWWR´KLGHµ IURPGLUHFWFOLHQWDFFHVV 6KDUSHQ \RXU SHQFLO :KHUHWKLQJVJR )LOOLQWKLVWDEOHZLWKH[SOLFLWQRWHVRQZKHUHLQWKHZHEDSS WKHJLYHQUHVRXUFHPXVWEHSODFHG:HGLGWKHILUVWRQHIRU \RX7XUQWKHSDJHIRUWKHDQVZHUV Chapter 11. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0596005407 Publisher: O'Reilly Prepared for Stephen Goss, Safari ID: stephengoss@gmx.net Print Publication Date: 8/1/2004 User number: 747221 Copyright 2007, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. ZHEDSSGHSOR\PHQW \RXDUHKHUH ! !HME&XVWRPHU ! HMEUHIW\SH!(QWLW\HMEUHIW\SH! !FRPZLFNHGO\VPDUW&XVWRPHU+RPH ! ORFDO!FRPZLFNHGO\VPDUW&XVWRPHUORFDO! ! HMEUHI! !HME/RFDO&XVWRPHU ! HMEUHIW\SH!(QWLW\HMEUHIW\SH! !FRPZLFNHGO\VPDUW&XVWRPHU+RPH ! !FRPZLFNHGO\VPDUW&XVWRPHU ! HMEUHI! HUURUSDJH! !MDYDLR,2([FHSWLRQ ! !P\HUURUMVS ! HUURUSDJH! HQYHQWU\! !UDWHVGLVFRXQW5DWH ! !MDYDODQJ,QWHJHU ! HQYHQWU\ YDOXH!HQYHQWU\YDOXH! HQYHQWU\! ! ZHOFRPHILOH!LQGH[KWPOZHOFRPHILOH! ! 6KDUSHQ \RXU SHQFLO 0HPRUL]LQJ''WDJV ,I\RX·UH127SODQQLQJRQWDNLQJWKH H[DPGRQ·WZRUU\DERXWJHWWLQJDOO RIWKHVHULJKWDOWKRXJKWKHERWWRP WZRHOHPHQWVDUHLPSRUWDQWWR DOPRVWHYHU\RQH ,I\RX$5(JRLQJWRWDNHWKHH[DP \RXVKRXOGVSHQGVRPHWLPH PHPRUL]LQJWKHVH Chapter 11. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0596005407 Publisher: O'Reilly Prepared for Stephen Goss, Safari ID: stephengoss@gmx.net Print Publication Date: 8/1/2004 User number: 747221 Copyright 2007, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. FKDSWHU H[HUFLVHRQGHSOR\PHQW 5HVRXUFHW\SH 'HSOR\PHQW'HVFULSWRU ZHE[PO 7DJ)LOHV WDJRUWDJ[ 'HSOR\PHQWORFDWLRQ +70/DQG-63V 7KDW\RXZDQWWREH GLUHFWO\DFFHVVLEOH 7/'V WOG 6HUYOHWFODVVHV 7DJ+DQGOHUFODVVHV -$5ILOHV Directly inside WEB-INF (which is directly inside the root of the web app). +70/DQG-63V 7KDW\RXZDQWWR´KLGHµ IURPGLUHFWFOLHQWDFFHVV If NOT deployed inside a JAR, Tag Files must be inside WEB-INF/tags, or a subdirectory of WEB-INF/tags. If deployed in a JAR, Tag Files must be in META-INF/tags, or a subdirectory of META-INF/tags. Note: Tag Files deployed in a JAR must have a TLD in the JAR. Client-accessible HTML and JSPs can be anywhere under the root of the web app or any of its subdirectories, EXCEPT they cannot be under WEB-INF (including subdirectories). In a WAR Þle, they canÕt be under META-INF (including subdirectories). Pages under WEB-INF (or META-INF in a WAR Þle) cannot be directly accessed by clients. If NOT inside a JAR, TLD Þles must be somewhere under WEB-INF or a subdirectory of WEB-INF. If deployed in a JAR, TLD Þles must be somewhere under META-INF, or a subdirectory of META-INF. Servlet classes must be in a directory structure matching the package structure, placed directory under WEB-INF/classes (for example, class com. example.Ring would be inside WEB-INF/classes/com/example), or in the appropriate package directories within a JAR inside WEB-INF/lib). Actually ALL classes used by the web-app (unless theyÕre part of the class libraries on the classpath) must follow the same rules as servlet classesÑinside WEB-INF/classes, in a directory structure matching the package (or in the appropriate package directories within a JAR inside WEB-INF/lib). JAR Þles must be inside the WEB-INF/lib directory. 6KDUSHQ \RXU SHQFLO :KHUHWKLQJVJR )LOOLQWKLVWDEOHZLWKH[SOLFLWQRWHVRQZKHUHLQWKHZHEDSS WKHUHVRXUFHPXVWEHSODFHG:HGLGWKHILUVWRQHIRU\RX Chapter 11. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0596005407 Publisher: O'Reilly Prepared for Stephen Goss, Safari ID: stephengoss@gmx.net Print Publication Date: 8/1/2004 User number: 747221 Copyright 2007, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. ZHEDSSGHSOR\PHQW \RXDUHKHUH ejb-local-ref ! ejb-ref-name !HME&XVWRPHU/ejb-ref-name ! HMEUHIW\SH!(QWLW\HMEUHIW\SH! local-home !FRPZLFNHGO\VPDUW&XVWRPHU+RPH/local-home ! ORFDO!FRPZLFNHGO\VPDUW&XVWRPHUORFDO! /ejb-local-ref ! HMEUHI! ejb-ref-name !HME/RFDO&XVWRPHU/ejb-ref-name ! HMEUHIW\SH!(QWLW\HMEUHIW\SH! home !FRPZLFNHGO\VPDUW&XVWRPHU+RPH/home ! remote !FRPZLFNHGO\VPDUW&XVWRPHU/remote ! HMEUHI! HUURUSDJH! exception-type !MDYDLR,2([FHSWLRQ/exception-type ! location !P\HUURUMVS/location ! HUURUSDJH! HQYHQWU\! env-entry-name !UDWHVGLVFRXQW5DWH/env-entry-name ! env-entry-type !MDYDODQJ,QWHJHU/env-entry-type ! HQYHQWU\ YDOXH!HQYHQWU\YDOXH! HQYHQWU\! welcome-file-list ! ZHOFRPHILOH!LQGH[KWPOZHOFRPHILOH! /welcome-file-list ! 6KDUSHQ \RXU SHQFLO 0HPRUL]LQJ''WDJV $16:(56 ,I\RXDUHJRLQJWRWDNHWKHH[DP \RXVKRXOGVSHQGVRPHWLPH PHPRUL]LQJ$//RIWKHVHSOXVDQ\ RIWKHRWKHUVIURPIURPWKLVFKDSWHU DQGWKHVHFXULW\UHODWHGWDJV\RX·OO VHHLQWKHQH[WFKDSWHU A reference to a bean that has a ÒlocalÓ interface. A reference to a bean that has a ÒremoteÓ interface. An environment entry is a way to get deploy-time constants into a J2EE application. Tells the Container which page to show when the speciÞed <exception-type> occurs. Tells the Container which page to look for when a request comes in that doesnÕt match a speciÞc resource. There can be more than one <welcome-Þle> speciÞed in the <welcome-Þle-list>. Chapter 11. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0596005407 Publisher: O'Reilly Prepared for Stephen Goss, Safari ID: stephengoss@gmx.net Print Publication Date: 8/1/2004 User number: 747221 Copyright 2007, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. FKDSWHU 7HERECANLQLWSDUDP!ELEMENTSAPPEARINTHE$$ #HOOSEALLTHATAPPLY R!!SCHILDELEMENTSOFVHUYOHW! R"!SDIRECTDESCENDANTSOFZHEDSSOLFDWLRQ!ELEMENTS R#*USTAFTERTHE$OCUMENT4YPE$ECLARATION R$)NSIDEOFFRQWH[WSDUDP!ELEMENTSWHENYOUWANTTO DECLAREACONTEXTINITIALIZATIONPARAMETER 0RFN([DP&KDSWHU 7HEREDOYOUSTORE4AG,IBRARY$ESCRIPTORS4,$SINAWEBAPPLICATION #HOOSEALLTHATAPPLY R!/NLYIN:(%,1)OLE R"/NLYIN:(%,1)FODVVHV R#)NTHE0(7$,1)DIRECTORYOFA*!2lLEINSIDE :(%,1)OLE R$!TTHEAPPLICATIONSTOPLEVELDIRECTORY R%)N:(%,1)ORASUBDIRECTORYTHEREOF 7HICHSTATEMENTSABOUT7!2lLESARETRUE#HOOSEALLTHATAPPLY R!7!2STANDSFOR7EB!PPLICATION2ESOURCESlLE R"!VALID7!2lLEMUSTCONTAINADEPLOYMENTDESCRIPTOR R#3EVERAL7!2lLESCANCOMPOSEAWEBAPPLICATION R$!7!2lLECANNOTCONTAINEMBEDDED*!2lLES PRFNH[DP Chapter 11. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0596005407 Publisher: O'Reilly Prepared for Stephen Goss, Safari ID: stephengoss@gmx.net Print Publication Date: 8/1/2004 User number: 747221 Copyright 2007, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. ZHEDSSGHSOR\PHQW \RXDUHKHUH 4HEFOLLOWINGSERVLETISDECLAREDINTHE$$ VHUYOHW! VHUYOHWQDPH!0\6HUYOHWVHUYOHWQDPH! VHUYOHWFODVV!FRPP\RUJ6HUYOHW&ODVVVHUYOHWFODVV! VHUYOHW! 7HERECANYOUSTORETHESERVLETCLASSINTHEWEBAPPLICATION#HOOSEALLTHAT APPLY R!)N0(7$,1)OFA*!2lLE R")NTHEPACKAGERELATEDDIRECTORYTREEBEGININGATTHETOPLEVELOFTHE APPLICATIONDIRECTORY R#)N:(%,1)FODVVHVORINA*!2lLEIN:(%,1)OLE R$)N:(%,1)OLEOUTSIDEOFA*!2lLE 7HATISTHEPURPOSEOFTHEDEPLOYMENTDESCRIPTOR$$#HOOSEALLTHAT APPLY R!4OALLOWCODEGENERATIONTOOLSTODYNAMICALLYCREATESERVLETSFROMAN 8-,lLE R"4OCONVEYTHEWEBAPPLICATIONCONlGURATIONINFORMATIONFROM DEVELOPERSTOAPPLICATIONASSEMBLERSANDDEPLOYERS R#4OCONlGUREVENDORSPECIlCASPECTSOFTHEAPPLICATION R$4OCONlGUREONLYDATABASEAND%NTERPRISE*AVA"EANACCESSFROMTHE WEBAPPLICATION 7HERESHOULDZHE[POBESTOREDINA7!2lLE#HOOSEALLTHATAPPLY R!)N:(%,1)FODVVHV R")N:(%,1)OLE R#)N:(%,1) R$)N0(7$,1) Chapter 11. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0596005407 Publisher: O'Reilly Prepared for Stephen Goss, Safari ID: stephengoss@gmx.net Print Publication Date: 8/1/2004 User number: 747221 Copyright 2007, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. [...]... 12 Keep it secret, keep it safe Copyright Safari Books Online #7 295 15 Chapter 12 Keep it secret, keep it safe Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher:Prepared for Augusto Jaramillo Forcada, Safari ID: augustojf.cv@gmail.com O'Reilly Print Publication Date: 8/1/2004 User number: 7 295 15 Copyright 2007, Safari Books Online, LLC This PDF is exclusively... permission for reprints and excerpts from the publisher Redistribution or other use that violates the fair use priviledge under U.S copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 11 Deploying your web app Chapter 11 Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher:... permission for reprints and excerpts from the publisher Redistribution or other use that violates the fair use priviledge under U.S copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 11 Deploying your web app Chapter 11 Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher:... permission for reprints and excerpts from the publisher Redistribution or other use that violates the fair use priviledge under U.S copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 11 Deploying your web app Chapter 11 Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher:... permission for reprints and excerpts from the publisher Redistribution or other use that violates the fair use priviledge under U.S copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 11 Deploying your web app Chapter 11 Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher:... permission for reprints and excerpts from the publisher Redistribution or other use that violates the fair use priviledge under U.S copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 11 Deploying your web app Chapter 11 Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher:... permission for reprints and excerpts from the publisher Redistribution or other use that violates the fair use priviledge under U.S copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 11 Deploying your web app Chapter 11 Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher:... for reprints and excerpts from the publisher Redistribution or other use that violates the fair use priviledge under U.S copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 12 Keep it secret, keep it safe Chapter 12 Keep it secret, keep it safe Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher:Prepared... permission for reprints and excerpts from the publisher Redistribution or other use that violates the fair use priviledge under U.S copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 11 Deploying your web app Chapter 11 Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher:... for reprints and excerpts from the publisher Redistribution or other use that violates the fair use priviledge under U.S copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 12 Keep it secret, keep it safe Chapter 12 Keep it secret, keep it safe Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher:Prepared . http://java.sun.com /JSP/ Page namespace. Chapter 11. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher:. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher: O'Reilly Prepared for Stephen Goss,. Deploying your web app Chapter 11. Deploying your web app Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham ISBN: 0 596 005407 Publisher: O'Reilly Prepared for Stephen Goss,