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

Head First Servlets and JSP phần 1 pps

75 260 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 75
Dung lượng 19,97 MB

Nội dung

WKLVLVDQHZFKDSWHU  :HEDSSOLFDWLRQVDUHKRW6XUH*8,DSSOLFDWLRQVPLJKWXVHH[RWLF 6ZLQJZLGJHWVEXWKRZPDQ\*8,DSSVGR\RXNQRZWKDWDUHXVHGE\PLOOLRQV RIXVHUVZRUOGZLGH"$VDZHEDSSGHYHORSHU\RXFDQIUHH\RXUVHOIIURPWKH JULSRIGHSOR\PHQWSUREOHPVDOOVWDQGDORQHDSSVKDYHDQGGHOLYHU\RXUDSSWR DQ\RQHZLWKDEURZVHU%XWWREXLOGDWUXO\SRZHUIXOZHEDSS\RXQHHG-DYD <RXQHHGVHUYOHWV<RXQHHG-63V%HFDXVHSODLQROGVWDWLF+70/SDJHVDUHVR ZHOO7RGD\¶VXVHUVH[SHFWVLWHVWKDWDUHG\QDPLFLQWHUDFWLYHDQGFXVWRP WDLORUHG:LWKLQWKHVHSDJHV\RX¶OOOHDUQWRPRYHIURPZHEVLWHWRZHEDSS :K\XVH6HUYOHWV-63V"   LQWURDQGRYHUYLHZ <RXIRRO<RXPXVWXVH 6HUYOHWVDQG-63V,I\RX FRQWLQXHWRZULWH3HUO VFULSWV,ZLOOGHVWUR\ \RX +DK,NQRZ &*,0\ZHEVLWHZLOO UXOHWKHZRUOG Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? 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 2006, 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 )RUHDFKRIWKH+7730HWKRGVVXFKDV*(7 3267+($'DQGVRRQ 'HVFULEHEHQH¿WVRIWKH+7730HWKRG 'HVFULEHIXQFWLRQDOLW\RIWKH+7730HWKRG /LVWWULJJHUVWKDWPLJKWFDXVHD&OLHQW XVXDOO\D:HEEURZVHUWRXVHWKHPHWKRG $OVRSDUWRI2EMHFWLYHEXWQRWFRYHUHG LQWKLVFKDSWHU ,GHQWLI\WKH+WWS6HUYOHWPHWKRGWKDW FRUUHVSRQGVWRWKH+7730HWKRG  6HUYOHWV-63RYHUYLHZ RI¿FLDO6XQH[DPREMHFWLYHV 4HEOBJECTIVESINTHISSECTIONARECOVERED COMPLETELYINANOTHERCHAPTERSOTHINKOF THISCHAPTERASAlRSTLOOKFOUNDATIONFOR WHATCOMESLATER)NOTHERWORDSDONTWORRY ABOUTlNISHINGTHISCHAPTERKNOWINGAND REMEMBERINGANYTHINGSPECIlCFROMTHESE OBJECTIVESJUSTUSEITFORBACKGROUND)FYOU ALREADYKNOWTHESETOPICSYOUCANJUSTSKIM THISCHAPTERANDJUMPTOCHAPTER 9OUWONTHAVEANYMOCKEXAMQUESTIONSON THESETOPICSUNTILYOUGETTOTHEMORESPECIlC CHAPTERWHERETHOSETOPICSARECOVERED &RYHUDJH1RWHV Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? 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 2006, 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. Copyright Safari Books Online #747221 LQWURDQGDUFKLWHFWXUH \RXDUHKHUH  -^MZaJWLa_IV\[I_MJ[Q\M 9OUHAVEAKILLERIDEAFORAWEBSITE4ODESTROYTHECOMPETITIONYOU NEEDAmEXIBLESCALABLEARCHITECTURE9OUNEEDSERVLETSAND*30S "EFOREWESTARTBUILDINGLETSTAKEALOOKATTHE7ORLD7IDE7EB FROMABOUTKFEET7HATWECAREMOSTABOUTINTHISCHAPTERARE HOWWEBCLIENTSANDWEBSERVERSTALKTOONEANOTHER 4HESENEXTSEVERALPAGESAREPROBABLYALLREVIEWFORYOUESPECIALLYIF YOUREALREADYAWEBAPPLICATIONDEVELOPERBUTITLLGIVEUSACHANCE TOEXPOSESOMEOFTHETERMINOLOGYWEUSETHROUGHOUTTHEBOOK The web consists of gazillions of clients (using browsers like Mozilla or Safari) and servers (using web server apps like Apache) connected through wires and wireless networks. Our goal is to build a web application that clients around the globe can access. And to become obscenely rich. :HE EURZVHU :HE EURZVHU :HE EURZVHU :HE EURZVHU :HE EURZVHU the earth &OLHQW &OLHQW &OLHQW &OLHQW &OLHQW 6HUYHU 6HUYHU 6HUYHU Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? 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 2006, 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 !WEBBROWSERLETSAUSERREQUESTARESOURCE4HEWEBSERVERGETSTHE REQUESTlNDSTHERESOURCEANDRETURNSSOMETHINGTOTHEUSER 3OMETIMESTHATRESOURCEISAN(4-,PAGE3OMETIMESITSAPICTURE/R ASOUNDlLE/REVENA0$&DOCUMENT$OESNTMATTERTHECLIENTASKS FORTHETHINGRESOURCEANDTHESERVERSENDSITBACK 5NLESSTHETHINGISNTTHERE/RATLEASTITSNOTWHERETHESERVERIS EXPECTINGITTOBE9OUREOFCOURSEQUITEFAMILIARWITHTHEh.OT &OUNDvERRORTHERESPONSEYOUGETWHENTHESERVERCANTlNDWHATIT THINKSYOUASKEDFOR 7HENWESAYhSERVERvWEMEANEITHERTHEPHYSICALMACHINEHARDWARE ORTHEWEBSERVERAPPLICATIONSOFTWARE4HROUGHOUTTHEBOOKIF THEDIFFERENCEBETWEENSERVERHARDWAREANDSOFTWAREMATTERSWELL EXPLICITLYSAYWHICHONEHARDWAREORSOFTWAREWERETALKINGABOUT ?PI\LWM[aW]Z_MJ[MZ^MZLW' $ZHEVHUYHUWDNHVDFOLHQWUHTXHVWDQGJLYHV VRPHWKLQJEDFNWRWKHFOLHQW UHTXHVW UHVSRQVH &OLHQW :HE EURZVHU 6HUYHU The clientÕs request contains the name and address (the URL), of the thing the client is looking for. The serverÕs response contains the actual document that the client requested (or an error code if the request could not be processed). KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! P\UHTXHVW LV[\] The server usually has lots of ÒcontentÓ that it can send to clients. That content can be web pages, JPEGs, and other resources. KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! ZHEVHUYHU Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? 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 2006, 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. LQWURDQGDUFKLWHFWXUH \RXDUHKHUH  $ZHEFOLHQWOHWVWKHXVHUUHTXHVWVRPHWKLQJRQWKH VHUYHUDQGVKRZVWKHXVHUWKHUHVXOWRIWKHUHTXHVW 7HENWETALKABOUTCLIENTSTHOUGHWEUSUALLYMEANBOTHOREITHER THEHUMANUSERANDTHEBROWSERAPPLICATION 4HEBROWSERISTHEPIECEOFSOFTWARELIKE.ETSCAPEOR-OZILLATHAT KNOWSHOWTOCOMMUNICATEWITHTHESERVER4HEBROWSERSOTHERBIGJOB ISINTERPRETINGTHE(4-,CODEANDRENDERINGTHEWEBPAGEFORTHEUSER 3OFROMNOWONWHENWEUSETHETERMCLIENTWEUSUALLYWONTCARE WHETHERWERETALKINGABOUTTHEHUMANUSERORTHEBROWSERAPP)N OTHERWORDSTHECLIENTISTHEBROWSERAPPDOINGWHATTHEUSERASKEDITTODO ?PI\LWM[I_MJKTQMV\LW' %URZVHU 6HUYHU KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! P\UHTXHVW LV[\] 8VHUFOLFNVDOLQN LQWKHEURZVHU 8VHU %URZVHUIRUPDWVWKH UHTXHVWDQGVHQGVLW WRWKHVHUYHU KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! 6HUYHUÀQGVWKH UHTXHVWHGSDJH %URZVHU 6HUYHU KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO! %URZVHUJHWVWKH+70/ DQGUHQGHUVLWLQWRD GLVSOD\IRUWKHXVHU 8VHU 6HUYHUIRUPDWVWKH UHVSRQVHDQGVHQGVLW WRWKHFOLHQWEURZVHU KWPO! KHDG! KHDG! ERG\!  ERG\! KWPO!  FOLFN Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? 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 2006, 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 +TQMV\[IVL[MZ^MZ[ SVW_0<54IVL0<<8 %XWKRZGRWKH FOLHQWVDQGVHUYHUV WDONWRHDFKRWKHU" $ZLVHTXHVWLRQ,QRUGHU WRFRPPXQLFDWHWKH\PXVW VKDUHDFRPPRQODQJXDJH2Q WKHZHEFOLHQWVDQGVHUYHUV PXVWVSHDN+773DQGEURZVHUV PXVWNQRZ+70/ -OSTOFTHECONVERSATIONSHELDONTHE WEBBETWEENCLIENTSANDSERVERSARE HELDUSINGTHE(440PROTOCOLWHICH ALLOWSFORSIMPLEREQUESTANDRESPONSE CONVERSATIONS4HECLIENTSENDSAN (440REQUESTANDTHESERVERANSWERS WITHAN(440RESPONSE"OTTOMLINE IFYOUREAWEBSERVERYOUSPEAK(440 7HENAWEBSERVERSENDSAN(4-, PAGETOTHECLIENTITSENDSITUSING (4409OULLSEETHEDETAILSONHOW ALLTHISWORKSINTHENEXTFEWPAGES &9)(440STANDSFOR(YPER4EXT 4RANSPORT0ROTOCOL +773 7HENASERVERANSWERSAREQUEST THESERVERUSUALLYSENDSSOMETYPE OFCONTENTTOTHEBROWSERSOTHATTHE BROWSERCANDISPLAYIT3ERVERSOFTEN SENDTHEBROWSERASETOFINSTRUCTIONS WRITTENIN(4-,THE(YPER4EXT -ARKUP,ANGUAGE4HE(4-, TELLSTHEBROWSERHOWTOPRESENTTHE CONTENTTOTHEUSER !LLWEBBROWSERSKNOWWHATTODO WITH(4-,ALTHOUGHSOMETIMESAN OLDERBROWSERMIGHTNOTUNDERSTAND PARTSOFAPAGETHATWASWRITTENUSING NEWERVERSIONSOF(4-, +70/ +70/WHOOVWKHEURZVHU KRZWRGLVSOD\WKHFRQWHQW WRWKHXVHU +773LVWKHSURWRFRO FOLHQWVDQGVHUYHUVXVHRQ WKHZHEWRFRPPXQLFDWH 7KHVHUYHUXVHV+773WR VHQG+70/WRWKHFOLHQW +70/DQG+773 Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? 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 2006, 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. LQWURDQGDUFKLWHFWXUH \RXDUHKHUH  <_WUQV]\M0<54O]QLM 7HENYOUDEVELOPAWEBPAGEYOUUSE(4-,TODESCRIBEWHATTHE PAGESHOULDLOOKLIKEANDHOWITSHOULDBEHAVE (4-,HASDOZENSOFTAGSANDHUNDREDSOFTAGATTRIBUTES4HEGOALOF (4-,ISTOTAKEATEXTDOCUMENTANDADDTAGSTHATTELLTHEBROWSER HOWTOFORMATTHETEXT"ELOWARETHETAGSWEUSEINTHENEXTSEVERAL CHAPTERS)FYOUNEEDAMORECOMPLETEUNDERSTANDINGOF(4-,WE RECOMMENDTHEBOOK(4-,8(4-,4HE$ElNITIVE'UIDE ! D! DOLJQ! ERG\! EU! FHQWHU! IRUP! K! KHDG! KWPO! LQSXWW\SH! S! WLWOH! WHEREYOUPUTYOURCOMMENTS ANCHORUSUALLYFORPUTTINGINAHYPERLINK ALIGNTHECONTENTSLEFTRIGHTCENTEREDORJUSTIlED DElNETHEBOUNDARIESOFTHEDOCUMENTSBODY ALINEBREAK CENTERTHECONTENTS DElNEAFORMWHICHUSUALLYPROVIDESINPUTlELDS THElRSTLEVELHEADING DElNETHEBOUNDARIESOFTHEDOCUMENTSHEADER DElNETHEBOUNDARIESOFTHE(4-,DOCUMENT DElNESANINPUTWIDGETTOAFORM ANEWPARAGRAPH THE(4-,DOCUMENTSTITLE 7DJ 'HVFULSWLRQ (Technically, the <center> and <align> tags have been deprecated in HTML 4.0, but weÕre using them in some of our examples because itÕs simpler to read than the alternative, and youÕre not here to learn HTML anyway.) Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? 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 2006, 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 KWPO! 6RPHVDPSOH+70/! KHDG! WLWOH!$/RJLQ3DJHWLWOH! KHDG! ERG\! KDOLJQ ´FHQWHU´!6N\OHU¶V/RJLQ3DJHK! SDOLJQ ´ULJKW´! LPJVUF ´6.</(5MSJ´ZLGWK ´´KHLJKW ´´! S! IRUPDFWLRQ ´GDWH´! 1DPHLQSXWW\SH ´WH[W´QDPH ´SDUDP´!EU! 3DVVZRUGLQSXWW\SH ´WH[W´QDPH ´SDUDP´!EU!EU!EU! FHQWHU! LQSXWW\SH ´68%0,7´! FHQWHU! IRUP! ERG\! KWPO! The <img> tag is nested inside a paragraph <align> tag in order to place the image roughly where we want it. (Remember, <align> is deprecated, but weÕre using it because itÕs simple to read.) The ÒsubmitÓ button in the form. ?PI\aW]_ZQ\M \PM0<54 The <br> tags cause line breaks. An HTML comment The servlet to send the request to. )MAGINEYOURECREATINGALOGINPAGE4HESIMPLE(4-, MIGHTLOOKSOMETHINGLIKETHIS $ % & ' ( WeÕll talk more about forms later, but brießy, the browser can collect the userÕs input and return it to the server. <RXQHHGRQO\WKHPRVWEDVLF+70/ NQRZOHGJH (4-,POPSUPALLOVERTHEEXAM"UTYOURE NOTBEINGTESTEDONYOUR(4-,KNOWLEDGE9OULLSEE (4-,INTHECONTEXTOFALARGECHUNKOFQUESTIONS THOUGHSOYOUNEEDATLEASTSOMEIDEAOFWHATS HAPPENINGWHENYOUSEESIMPLE(4-, ZULWLQJ +70/ Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? 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 2006, 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. LQWURDQGDUFKLWHFWXUH \RXDUHKHUH  ?PI\\PMJZW_[MZKZMI\M[ 4HEBROWSERREADSTHROUGHTHE(4-,CODECREATESTHE WEBPAGEANDRENDERSITTOTHEUSERSDISPLAY $ % & ' ( KWWSZZZZLFNHGO\VPDUWFRPVN\ORJLQKWPO Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? 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 2006, 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 (440RUNSONTOPOF4#0)0)FYOURENOTFAMILIARWITH THOSENETWORKINGPROTOCOLSHERESTHECRASHCOURSE4#0 ISRESPONSIBLEFORMAKINGSURETHATAlLESENTFROMONE NETWORKNODETOANOTHERENDSUPASACOMPLETElLEATTHE DESTINATIONEVENTHOUGHTHElLEISSPLITINTOCHUNKSWHEN ITSSENT)0ISTHEUNDERLYINGPROTOCOLTHATMOVESROUTES THECHUNKSPACKETSFROMONEHOSTTOANOTHERONTHEIR WAYTOTHEDESTINATION(440THENISANOTHERNETWORK PROTOCOLTHATHAS7EBSPECIlCFEATURESBUTITDEPENDS ON4#0)0TOGETTHECOMPLETEREQUESTANDRESPONSE FROMONEPLACETOANOTHER4HESTRUCTUREOFAN(440 CONVERSATIONISASIMPLE2EQUEST2ESPONSESEQUENCEA BROWSERREQUESTSANDASERVERRESPONDS ?PI\Q[\PM0<<8XZW\WKWT' <RXGRQ¶WKDYHWRPHPRUL]HWKH+773VSHF 4HE(440PROTOCOLISAN)%4&STANDARD2&#)FYOUCARE &ORTUNATELYTHEEXAMDOESNTEXPECTYOUTO!PACHEISANEXAMPLE OFA7EBSERVERTHATPROCESSES(440REQUESTS-OZILLAISANEXAMPLE OFA7EBBROWSERTHATPROVIDESTHEUSERWITHTHEMEANSTOMAKE(440 REQUESTSANDTOVIEWTHEDOCUMENTSRETURNEDBYTHESERVER +773UHTXHVW +773UHVSRQVH &OLHQW :HE EURZVHU 6HUYHU .H\HOHPHQWVRIWKHUHTXHVW VWUHDP  +773PHWKRGWKHDFWLRQWR EHSHUIRUPHG  7KHSDJHWRDFFHVVD85/  )RUPSDUDPHWHUVOLNH DUJXPHQWVWRDPHWKRG .H\HOHPHQWVRIWKH UHVSRQVHVWUHDP  $VWDWXVFRGHIRUZKHWKHU WKHUHTXHVWZDVVXFFHVVIXO  &RQWHQWW\SHWH[WSLFWXUH +70/HWF  7KHFRQWHQWWKHDFWXDO +70/LPDJHHWF +773SURWRFRO Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? 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 2006, 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. [...]... copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 1 Why use Servlets & JSPs? Chapter 1 Why use Servlets & JSPs? 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: 7472 21 Copyright 2006,... copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 1 Why use Servlets & JSPs? Chapter 1 Why use Servlets & JSPs? 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: 7472 21 Copyright 2006,... copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 1 Why use Servlets & JSPs? Chapter 1 Why use Servlets & JSPs? 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: 7472 21 Copyright 2006,... copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 1 Why use Servlets & JSPs? Chapter 1 Why use Servlets & JSPs? 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: 7472 21 Copyright 2006,... copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 1 Why use Servlets & JSPs? Chapter 1 Why use Servlets & JSPs? 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: 7472 21 Copyright 2006,... copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 1 Why use Servlets & JSPs? Chapter 1 Why use Servlets & JSPs? 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: 7472 21 Copyright 2006,... copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 1 Why use Servlets & JSPs? Chapter 1 Why use Servlets & JSPs? 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: 7472 21 Copyright 2006,... copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 1 Why use Servlets & JSPs? Chapter 1 Why use Servlets & JSPs? 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: 7472 21 Copyright 2006,... copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 1 Why use Servlets & JSPs? Chapter 1 Why use Servlets & JSPs? 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: 7472 21 Copyright 2006,... copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited Chapter 1 Why use Servlets & JSPs? Chapter 1 Why use Servlets & JSPs? 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: 7472 21 Copyright 2006, . prohibited.  FKDSWHU )RUHDFKRIWKH+7730HWKRGVVXFKDV*(7 3267+($'DQGVRRQ 'HVFULEHEHQH¿WVRIWKH+7730HWKRG 'HVFULEHIXQFWLRQDOLWRIWKH+7730HWKRG /LVWWULJJHUVWKDWPLJKWFDXVHD&OLHQW XVXDOOD:HEEURZVHUWRXVHWKHPHWKRG $OVRSDUWRI2EMHFWLYHEXWQRWFRYHUHG LQWKLVFKDSWHU ,GHQWLIWKH+WWS6HUYOHWPHWKRGWKDW FRUUHVSRQGVWRWKH+7730HWKRG  6HUYOHWV-63RYHUYLHZ RI¿FLDO6XQH[DPREMHFWLYHV 4HEOBJECTIVESINTHISSECTIONARECOVERED COMPLETELYINANOTHERCHAPTERSOTHINKOF THISCHAPTERASAlRSTLOOKFOUNDATIONFOR WHATCOMESLATER)NOTHERWORDSDONTWORRY ABOUTlNISHINGTHISCHAPTERKNOWING AND REMEMBERINGANYTHINGSPECIlCFROMTHESE OBJECTIVESJUSTUSEITFORBACKGROUND)FYOU ALREADYKNOWTHESETOPICSYOUCANJUSTSKIM THISCHAPTER AND JUMPTOCHAPTER 9OUWONTHAVEANYMOCKEXAMQUESTIONSON THESETOPICSUNTILYOUGETTOTHEMORESPECIlC CHAPTERWHERETHOSETOPICSARECOVERED &RYHUDJH1RWHV Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? Head First Servlets and JSP By Bert Bates, Kathy Sierra, Bryan Basham. JPEGs, and other resources. KWPO! KHDG! KHDG! ERG!  ERG! KWPO! ZHEVHUYHU Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? Head First Servlets and JSP. Ò?Ó, and with each parameter (name/value pair) separated by an ampersand Ò  Ó. Not shown: Chapter 1. Why use Servlets & JSPs? Chapter 1. Why use Servlets & JSPs? Head First Servlets and

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

TỪ KHÓA LIÊN QUAN