1. Trang chủ
  2. » Công Nghệ Thông Tin

Head First Servlets and JSP phần 9 potx

74 256 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

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[ 4HISEXAMISABOUTWEBCOMPONENTSNOTBUSINESSCOMPONENTSALTHOUGHINTHE 0ATTERNSCHAPTERYOULLSEEAFEWTHINGSABOUTBUSINESSCOMPONENTS"UTIFYOURE DEPLOYINGA*%%APPCOMPLETEWITH%NTERPRISE*AVA"EANS%*"SINTHEBUSINESS TIERSOMEOFYOURWEBCOMPONENTSWILLPROBABLYNEEDTOLOOKUPANDACCESSTHE ENTERPRISEBEANS)FYOUREDEPLOYINGANAPPINAFULL*%%COMPLIANT#ONTAINER ONETHATHASAN%*"#ONTAINERASWELLYOUCANDElNEREFERENCESTO%*"SINTHE $$9OUDONTHAVETOKNOWANYTHINGABOUT%*"SFORTHISEXAMOTHERTHANWHATYOU DECLAREINTHE$$SOWEWONTWASTEYOURTIMEEXPLAININGITHERE "UTIFYOUREINTERESTEDIN%*"THERESTHISREALLYGOODBOOK HMEORFDOUHI! HMEUHIQDPH!HME&XVWRPHUHMEUHIQDPH! HMEUHIW\SH!(QWLW\HMEUHIW\SH! ORFDOKRPH!FRPZLFNHGO\VPDUW&XVWRPHU+RPHORFDOKRPH! ORFDO!FRPZLFNHGO\VPDUW&XVWRPHUORFDO! HMEORFDOUHI! 5HIHUHQFHWRDORFDOEHDQ -90 6HUYOHW $/2&$/EHDQPHDQVWKHFOLHQWLQ WKLVFDVHDVHUYOHWDQGWKHEHDQ PXVW EHUXQQLQJLQWKHVDPH-90 $5(027(EHDQPHDQVWKHFOLHQWLQ WKLVFDVHDVHUYOHWDQGWKHEHDQFDQ EHUXQQLQJLQGLIIHUHQW-90VSRVVLEO\ RQGLIIHUHQWSK\VLFDOPDFKLQHVDVZHOO HMEUHI! HMEUHIQDPH!HME/RFDO&XVWRPHUHMEUHIQDPH! HMEUHIW\SH!(QWLW\HMEUHIW\SH! KRPH!FRPZLFNHGO\VPDUW&XVWRPHU+RPHKRPH! UHPRWH!FRPZLFNHGO\VPDUW&XVWRPHUUHPRWH! HMEUHI! 5HIHUHQFHWRDUHPRWHEHDQ -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. ZHEDSSGHSOR\PHQW \RXDUHKHUH   %RWKWKHORFDODQGUHPRWHEHDQ''WDJVKDYHWZRHOHPHQWV WKDWDUHWKHVDPH 7KHHMEUHIQDPH!WKDWOLVWVWKHORJLFDOORRNXSQDPH \RX¶OOXVHLQFRGHWRSHUIRUPD-1',ORRNXSRQDQHQWHU SULVHEHDQ¶VKRPHLQWHUIDFH'RQ¶WZRUU\LI\RXKDYHQ¶W XVHG(-%VEHIRUHDQGGRQ¶WNQRZZKDWWKDWODVWVHQWHQFH PHDQV²\RXGRQ¶WQHHG(-%NQRZOHGJHIRUWKLVH[DP 7KHHMEUHIW\SH!GHVFULEHVZKHWKHUWKLVLVDQ(QWLW\RU6HV VLRQEHDQ7KRVHWZRHOHPHQWVWKHORRNXSQDPHDQGWKH EHDQW\SHGRQ¶WGHSHQGRQZKHWKHUWKHEHDQLVORFDOUXQ QLQJLQWKHVDPH-90DVWKHZHEFRPSRQHQWRUUHPRWH SRWHQWLDOO\UXQQLQJLQDGLIIHUHQW-90 %XWORRNDWWKHRWKHUHOHPHQWVVWDUWLQJZLWKWKHRXWHUWDJV HMEORFDOUHI!DQGHMEUHI!<RXPLJKWEHWHPSWHGWRWKLQN WKDWLW¶V HME ORFDO UHI! HME UHPRWH UHI! %XW12)RUUHPRWHEHDQVLW¶VMXVW HMEUHI! ,QRWKHUZRUGVWKHORFDOUHIHUHQFHVD\VLW¶VORFDOEXWWKH UHPRWHUHIHUHQFHGRHV127LQFOXGHWKHZRUG³UHPRWH´LQLWV WDJHOHPHQWQDPH:K\"%HFDXVHDWWKHWLPHHMEUHI!ZDV ¿UVWGH¿QHGWKHUHZDVQRVXFKWKLQJDV³ORFDO´(-%V6LQFH $//HQWHUSULVHEHDQVZHUH³UHPRWH´WKHUHZDVQRQHHGWR GLIIHUHQWLDWHEHWZHHQORFDODQGUHPRWHVRQRQHHGWRSXW ³UHPRWH´LQWKHQDPHRIWKHWDJ 7KLVDOVRH[SODLQVWKH27+(5WDJQDPLQJLQFRQVLVWHQF\² WKHQDPHRIWKHWDJIRUWKHEHDQ¶VKRPHLQWHUIDFH$ORFDO EHDQXVHV  ORFDO KRPH! EXWDUHPRWHEHDQGRHV127XVH  UHPRWH KRPH! )RUUHPRWHEHDQVLW¶VMXVW KRPH! 7KH/2&$/DQG5(027( WDJVDUHLQFRQVLVWHQW 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\PM26,1$MV^MV\Za&,,\IO )FYOUREFAMILIARWITH%*"ANDOR*.$)THISWILLMAKESENSE)FYOURE NOTITDOESNTREALLYMATTERFORTHEEXAMASLONGASYOUMEMORIZETHE TAG4HEDETAILSSURROUNDING*.$)ENVIRONMENTENTRIESARECOVEREDIN %*"*%%BOOKSLIKETHELOVELY(EAD&IRST%*" 4HINKOFANENVIRONMENTENTRYASBEINGSOMETHINGLIKEADEPLOYTIME CONSTANTTHATYOURAPPCANUSEMUCHLIKESERVLETANDCONTEXTINIT PARAMETERS)NOTHERWORDSAWAYFORTHEDEPLOYERTOPASSVALUESINTO THESERVLETORINTHISCASEAN%*"ASWELLIFTHISISDEPLOYEDASPARTOFAN ENTERPRISEAPPLICATIONINAFULLY*%%COMPLIANTSERVER !TDEPLOYTIMETHE#ONTAINERREADSTHE$$ANDMAKESA*.$)ENTRY AGAINASSUMINGTHISISAFULLY*%%COMPLIANTAPPANDNOTJUSTASERVER WITHONLYAWEB#ONTAINERUSINGTHENAMEANDVALUEYOUSUPPLYINTHIS $$TAG!TRUNTIMEACOMPONENTINTHEAPPLICATIONCANLOOKUPTHE VALUEIN*.$)USINGTHENAMELISTEDINTHE$$9OUPROBABLYWONTCARE ABOUTENVENTRYUNLESSYOUREALSODEVELOPINGWITH%*"SSOTHEONLY REASONYOUNEEDTOMEMORIZETHISISFORTHEEXAM HQYHQWU\! HQYHQWU\QDPH!UDWHVGLVFRXQW5DWHHQYHQWU\QDPH! HQYHQWU\ W\SH!MDYDODQJ,QWHJHUHQYHQWU\W\SH! HQYHQWU\ YDOXH!HQYHQWU\YDOXH! HQYHQWU\! 'HFODULQJDQDSS·V-1',HQYLURQPHQWHQWU\ 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\RXVHHDQHQYHQWU\YDOXH!WKDW¶VDQLQWHJHU YDOXHOLNHWKHH[DPSOHDERYH\RXPLJKWWKLQNWKDWWKH HQYHQWU\W\SH!FDQEHDSULPLWLYH%XWWKDWZRXOGEH ZURQJ <RXDOVRPLJKWEHWHPSWHGWRWKLQNWKDW\RXFDQKDYH RQO\6WULQJVDQGZUDSSHUVEXWWKDW¶VZURQJWRR²\RX FDQXVHDQ\W\SHWKDWWDNHVDVLQJOH6WULQJLQLWV FRQVWUXFWRURUDVLQJOH&KDUDFWHUIRUD&KDUDFWHUW\SH 7KHHQYHQWU\W\SH!PXVW 127EHDSULPLWLYH FRQ¿JXULQJWKHHQYHQWU\! 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. ZHEDSSGHSOR\PHQW \RXDUHKHUH  5MUWZQbQVO\PM$UQUMUIXXQVO&,,\IO 9OUCANCONlGUREAMAPPINGBETWEENANEXTENSIONANDAMIMETYPEINTHE $$4HISWILLPROBABLYBETHEEASIESTTAGTOREMEMBERBECAUSEITJUSTMAKES SENSEYOUMAPBETWEENANEXTENSIONANDAMIMETYPEANDGUESSWHAT)N ARAREMOMENTOFSIMPLICITYANDCLARITYTHEYNAMEDTHETAGSUBELEMENTS hEXTENSIONvANDhMIMETYPEv4HATMEANSYOUHAVETOREMEMBERONLYONE THINGTHATTHETAGELEMENTSARENAMEDFOREXACTLYWHATTHEYARE 5NLESSYOUSTARTTHINKINGOFITAShlLETYPEvANDhCONTENTTYPEv"UTNOYOU WONTDOTHAT9OULLMEMORIZEITJUSTLIKETHIS PLPHPDSSLQJ! H[WHQVLRQ!PSJH[WHQVLRQ! PLPHW\SH!YLGHRPSHJPLPHW\SH! PLPHPDSSLQJ! 'HFODULQJDPLPHPDSSLQJ!  ,W¶VMXVWWKHFKDUDFWHUVWKDWPDNH XSWKHH[WHQVLRQQRWWKH³´WKDW VHSDUDWHVWKH¿OHQDPHIURPWKH H[WHQVLRQ 'RQ·WLQFOXGH WKH´µLQWKH H[WHQVLRQ  %XUQLWLQ²H[WHQVLRQ!DQGPLPHW\SH! H[WHQVLRQ!DQGPLPHW\SH! H[WHQVLRQ!DQGPLPHW\SH! H[WHQVLRQ!DQGPLPHW\SH! H[WHQVLRQ!DQGPLPHW\SH! ,W·VQRWÀOHW\SH!DQG FRQWHQWW\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[HUFLVHRQGHSOR\PHQW 5HVRXUFHW\SH 'HSOR\PHQW'HVFULSWRU ZHE[PO 7DJ)LOHV WDJRUWDJ[ 'HSOR\PHQWORFDWLRQ +70/DQG-63V 7KDW\RXZDQWWREH GLUHFWO\DFFHVVLEOH  7/'V WOG 6HUYOHWFODVVHV 7DJ+DQGOHUFODVVHV -$5ILOHV Directly inside WEB-INF (which is directly inside the root of the web app). +70/DQG-63V 7KDW\RXZDQWWR´KLGHµ IURPGLUHFWFOLHQWDFFHVV 6KDUSHQ \RXU SHQFLO :KHUHWKLQJVJR )LOOLQWKLVWDEOHZLWKH[SOLFLWQRWHVRQZKHUHLQWKHZHEDSS WKHJLYHQUHVRXUFHPXVWEHSODFHG:HGLGWKHILUVWRQHIRU \RX7XUQWKHSDJHIRUWKHDQVZHUV 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. ZHEDSSGHSOR\PHQW \RXDUHKHUH   !  !HME&XVWRPHU ! HMEUHIW\SH!(QWLW\HMEUHIW\SH!  !FRPZLFNHGO\VPDUW&XVWRPHU+RPH ! ORFDO!FRPZLFNHGO\VPDUW&XVWRPHUORFDO!   ! HMEUHI!  !HME/RFDO&XVWRPHU ! HMEUHIW\SH!(QWLW\HMEUHIW\SH!   !FRPZLFNHGO\VPDUW&XVWRPHU+RPH !  !FRPZLFNHGO\VPDUW&XVWRPHU ! HMEUHI! HUURUSDJH!  !MDYDLR,2([FHSWLRQ !  !P\HUURUMVS ! HUURUSDJH! HQYHQWU\!  !UDWHVGLVFRXQW5DWH !  !MDYDODQJ,QWHJHU ! HQYHQWU\ YDOXH!HQYHQWU\YDOXH! HQYHQWU\!  ! ZHOFRPHILOH!LQGH[KWPOZHOFRPHILOH!  ! 6KDUSHQ \RXU SHQFLO 0HPRUL]LQJ''WDJV ,I\RX·UH127SODQQLQJRQWDNLQJWKH H[DPGRQ·WZRUU\DERXWJHWWLQJDOO RIWKHVHULJKWDOWKRXJKWKHERWWRP WZRHOHPHQWVDUHLPSRUWDQWWR DOPRVWHYHU\RQH ,I\RX$5(JRLQJWRWDNHWKHH[DP \RXVKRXOGVSHQGVRPHWLPH PHPRUL]LQJWKHVH 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[HUFLVHRQGHSOR\PHQW 5HVRXUFHW\SH 'HSOR\PHQW'HVFULSWRU ZHE[PO 7DJ)LOHV WDJRUWDJ[ 'HSOR\PHQWORFDWLRQ +70/DQG-63V 7KDW\RXZDQWWREH GLUHFWO\DFFHVVLEOH  7/'V WOG 6HUYOHWFODVVHV 7DJ+DQGOHUFODVVHV -$5ILOHV Directly inside WEB-INF (which is directly inside the root of the web app). +70/DQG-63V 7KDW\RXZDQWWR´KLGHµ IURPGLUHFWFOLHQWDFFHVV 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 :KHUHWKLQJVJR )LOOLQWKLVWDEOHZLWKH[SOLFLWQRWHVRQZKHUHLQWKHZHEDSS WKHUHVRXUFHPXVWEHSODFHG:HGLGWKHILUVWRQHIRU\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. ZHEDSSGHSOR\PHQW \RXDUHKHUH  ejb-local-ref !  ejb-ref-name !HME&XVWRPHU/ejb-ref-name ! HMEUHIW\SH!(QWLW\HMEUHIW\SH!  local-home !FRPZLFNHGO\VPDUW&XVWRPHU+RPH/local-home ! ORFDO!FRPZLFNHGO\VPDUW&XVWRPHUORFDO! /ejb-local-ref ! HMEUHI!  ejb-ref-name !HME/RFDO&XVWRPHU/ejb-ref-name ! HMEUHIW\SH!(QWLW\HMEUHIW\SH!   home !FRPZLFNHGO\VPDUW&XVWRPHU+RPH/home !  remote !FRPZLFNHGO\VPDUW&XVWRPHU/remote ! HMEUHI! HUURUSDJH!  exception-type !MDYDLR,2([FHSWLRQ/exception-type ! location !P\HUURUMVS/location ! HUURUSDJH! HQYHQWU\!  env-entry-name !UDWHVGLVFRXQW5DWH/env-entry-name !  env-entry-type !MDYDODQJ,QWHJHU/env-entry-type ! HQYHQWU\ YDOXH!HQYHQWU\YDOXH! HQYHQWU\!  welcome-file-list ! ZHOFRPHILOH!LQGH[KWPOZHOFRPHILOH!  /welcome-file-list ! 6KDUSHQ \RXU SHQFLO 0HPRUL]LQJ''WDJV $16:(56 ,I\RXDUHJRLQJWRWDNHWKHH[DP \RXVKRXOGVSHQGVRPHWLPH PHPRUL]LQJ$//RIWKHVHSOXVDQ\ RIWKHRWKHUVIURPIURPWKLVFKDSWHU DQGWKHVHFXULW\UHODWHGWDJV\RX·OO VHHLQWKHQH[WFKDSWHU 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 7HERECANLQLWSDUDP!ELEMENTSAPPEARINTHE$$ #HOOSEALLTHATAPPLY R!!SCHILDELEMENTSOFVHUYOHW! R"!SDIRECTDESCENDANTSOFZHEDSSOLFDWLRQ!ELEMENTS R#*USTAFTERTHE$OCUMENT4YPE$ECLARATION R$)NSIDEOFFRQWH[WSDUDP!ELEMENTSWHENYOUWANTTO DECLAREACONTEXTINITIALIZATIONPARAMETER  0RFN([DP&KDSWHU 7HEREDOYOUSTORE4AG,IBRARY$ESCRIPTORS4,$SINAWEBAPPLICATION #HOOSEALLTHATAPPLY R!/NLYIN:(%,1)OLE R"/NLYIN:(%,1)FODVVHV R#)NTHE0(7$,1)DIRECTORYOFA*!2lLEINSIDE :(%,1)OLE R$!TTHEAPPLICATIONSTOPLEVELDIRECTORY R%)N:(%,1)ORASUBDIRECTORYTHEREOF  7HICHSTATEMENTSABOUT7!2lLESARETRUE#HOOSEALLTHATAPPLY R!7!2STANDSFOR7EB!PPLICATION2ESOURCESlLE R"!VALID7!2lLEMUSTCONTAINADEPLOYMENTDESCRIPTOR R#3EVERAL7!2lLESCANCOMPOSEAWEBAPPLICATION R$!7!2lLECANNOTCONTAINEMBEDDED*!2lLES  PRFNH[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. ZHEDSSGHSOR\PHQW \RXDUHKHUH  4HEFOLLOWINGSERVLETISDECLAREDINTHE$$ VHUYOHW! VHUYOHWQDPH!0\6HUYOHWVHUYOHWQDPH! VHUYOHWFODVV!FRPP\RUJ6HUYOHW&ODVVVHUYOHWFODVV! VHUYOHW! 7HERECANYOUSTORETHESERVLETCLASSINTHEWEBAPPLICATION#HOOSEALLTHAT APPLY R!)N0(7$,1)OFA*!2lLE R")NTHEPACKAGERELATEDDIRECTORYTREEBEGININGATTHETOPLEVELOFTHE APPLICATIONDIRECTORY R#)N:(%,1)FODVVHVORINA*!2lLEIN:(%,1)OLE R$)N:(%,1)OLEOUTSIDEOFA*!2lLE  7HATISTHEPURPOSEOFTHEDEPLOYMENTDESCRIPTOR$$#HOOSEALLTHAT APPLY R!4OALLOWCODEGENERATIONTOOLSTODYNAMICALLYCREATESERVLETSFROMAN 8-,lLE R"4OCONVEYTHEWEBAPPLICATIONCONlGURATIONINFORMATIONFROM DEVELOPERSTOAPPLICATIONASSEMBLERSANDDEPLOYERS R#4OCONlGUREVENDORSPECIlCASPECTSOFTHEAPPLICATION R$4OCONlGUREONLYDATABASEAND%NTERPRISE*AVA"EANACCESSFROMTHE WEBAPPLICATION  7HERESHOULDZHE[POBESTOREDINA7!2lLE#HOOSEALLTHATAPPLY R!)N:(%,1)FODVVHV R")N:(%,1)OLE R#)N:(%,1) R$)N0(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,

Ngày đăng: 12/08/2014, 19:20

TỪ KHÓA LIÊN QUAN