Presentation is loading. Please wait.

Presentation is loading. Please wait.

4 Being a Servlet: request AND response Servlets live to service clients. A servlet’s job is to take a client’s request and send back a response. The request.

Similar presentations


Presentation on theme: "4 Being a Servlet: request AND response Servlets live to service clients. A servlet’s job is to take a client’s request and send back a response. The request."— Presentation transcript:

1 4 Being a Servlet: request AND response Servlets live to service clients. A servlet’s job is to take a client’s request and send back a response. The request might be simple: “get me the Welcome page.” Or it might be complex: “Complete my shopping cart check-out.” The request carries crucial data, and your servlet code has to know how to fi nd it and how to use it. The response carries the info the browser needs to render a page (or download bytes), and your servlet code has to know how to send it. Or not... your servlet can decide to pass the request to something else (another page, servlet, or JSP) instead.

2 Objects of the Chapter

3

4

5 More about the servlet’s lift

6

7

8

9

10

11 Lifecycle and Methods

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43


Download ppt "4 Being a Servlet: request AND response Servlets live to service clients. A servlet’s job is to take a client’s request and send back a response. The request."

Similar presentations


Ads by Google