Mastering Servlet & JSP Dev. With IBM RAD V7 Table of Contents
J2EE standard services – Web Services ................................................................ 5-11
J2EE standard services – Connectors .................................................................... 5-12
J2EE standard services – JAAS............................................................................. 5-13
J2EE interoperability ............................................................................................. 5-14
J2EE platform roles ............................................................................................... 5-15
J2EE implementation............................................................................................. 5-16
Checkpoint............................................................................................................. 5-17
Checkpoint solutions ............................................................................................. 5-17
Unit summary ........................................................................................................ 5-18
Unit 6: Servlet API (Part I)
Servlet API (Part I).................................................................................................. 6-1
Unit objectives......................................................................................................... 6-2
Java servlet life cycle............................................................................................... 6-3
The Java servlet API................................................................................................ 6-5
ServletConfig and initialization parameters............................................................. 6-6
Servlet definition in web.xml file............................................................................ 6-7
Example servlet with init parameters....................................................................... 6-8
HttpServlet............................................................................................................... 6-9
Requests and responses ......................................................................................... 6-10
HttpServletRequest................................................................................................ 6-11
Request protocol.................................................................................................... 6-12
Example HTML Form........................................................................................... 6-13
Reading a Post ....................................................................................................... 6-14
HttpServletResponse.............................................................................................. 6-15
Response protocol.................................................................................................. 6-16
Setting the status code............................................................................................ 6-17
Simple servlet ........................................................................................................ 6-18
Processing an HTTP request.................................................................................. 6-19
Processing input data............................................................................................. 6-20
Processing input data example............................................................................... 6-21
Checkpoint............................................................................................................. 6-22
Checkpoint solutions (1 of 2) ................................................................................ 6-22
Checkpoint solutions (2 of 2) ................................................................................ 6-23
Unit summary ........................................................................................................ 6-24
Unit 7: Library Case Study Flow
Library Case Study Flow......................................................................................... 7-1
Unit objectives......................................................................................................... 7-2
Library case study.................................................................................................... 7-3
Key entities .............................................................................................................. 7-4
Patron....................................................................................................................... 7-5
Item.......................................................................................................................... 7-6
Copies ...................................................................................................................... 7-7
Loaned Copy............................................................................................................ 7-8
Layers: Model, data store, database......................................................................... 7-9
Object model.......................................................................................................... 7-10
Use case: Patron login............................................................................................ 7-11
Use case: List checked out items ........................................................................... 7-12
Use case: renew checked out items........................................................................ 7-13
© Copyright IBM Corp. 2003, 2007
iii
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.