Chapter 1. Why use Servlets & JSPs?
LQWURDQGRYHUYLHZ
:K\XVH6HUYOHWV -63V" +DK,NQRZ &*,0\ZHEVLWHZLOO UXOHWKHZRUOG
:HEDSSOLFDWLRQVDUHKRW6XUH*8,DSSOLFDWLRQVPLJKWXVHH[RWLF 6ZLQJZLGJHWVEXWKRZPDQ\*8,DSSVGR\RXNQRZWKDWDUHXVHGE\PLOOLRQV RIXVHUVZRUOGZLGH"$VDZHEDSSGHYHORSHU\RXFDQIUHH\RXUVHOIIURPWKH JULSRIGHSOR\PHQWSUREOHPVDOOVWDQGDORQHDSSVKDYHDQGGHOLYHU\RXUDSSWR DQ\RQHZLWKDEURZVHU%XWWREXLOGDWUXO\SRZHUIXOZHEDSS\RXQHHG-DYD
WKLVLVDQHZFKDSWHU
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:
[email protected] 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.
Chapter 1. Why use Servlets & JSPs?
RI¿FLDO6XQH[DPREMHFWLYHV
6HUYOHWV -63RYHUYLHZ
&RYHUDJH1RWHV
)RUHDFKRIWKH+7730HWKRGVVXFKDV*(7
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 DONT 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 WONT HAVE ANY MOCK EXAM QUESTIONS ON THESE TOPICS UNTIL YOU GET TO THE MORE SPECIlC CHAPTER WHERE THOSE TOPICS ARE COVERED
3267+($'DQGVRRQ
'HVFULEHEHQH¿WVRIWKH+7730HWKRG 'HVFULEHIXQFWLRQDOLW\RIWKH+7730HWKRG /LVWWULJJHUVWKDWPLJKWFDXVHD&OLHQW XVXDOO\D:HEEURZVHU WRXVHWKHPHWKRG $OVRSDUWRI2EMHFWLYHEXWQRWFRYHUHG LQWKLVFKDSWHU ,GHQWLI\WKH+WWS6HUYOHWPHWKRGWKDW FRUUHVSRQGVWRWKH+7730HWKRG
FKDSWHU
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:
[email protected] 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.
Chapter 1. Why use Servlets & JSPs?
LQWURDQGDUFKLWHFWXUH
-^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 LETS 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 YOURE ALREADY A WEB APPLICATION DEVELOPER BUT ITLL GIVE US A CHANCE TO EXPOSE SOME OF THE TERMINOLOGY WE USE THROUGHOUT THE BOOK
The web consists of gazillions ofilla or clients (using browsers like Moz server Safari) and servers (using web through apps like Apache) connected Our goal is wires and wireless networks. clients that ion icat appl to build a web to around the globe can access. And become obscenely rich.
:HE EURZVHU :HE EURZVHU
&OLHQW 6HUYHU
&OLHQW
:HE EURZVHU :HE EURZVHU
&OLHQW
&OLHQW
6HUYHU
:HE EURZVHU
&OLHQW
6HUYHU
the earth
\RXDUHKHUH
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:
[email protected] 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.
Chapter 1. Why use Servlets & JSPs?
ZHEVHUYHU
?PI\LWM[aW]Z_MJ[MZ ^MZLW' $ZHEVHUYHUWDNHVDFOLHQWUHTXHVWDQGJLYHV VRPHWKLQJEDFNWRWKHFOLHQW ! 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 ITS A PICTURE /R A SOUND l LE /R EVEN A 0$&