Skip to Content
Head First Servlets and JSP, 2nd Edition
book

Head First Servlets and JSP, 2nd Edition

by Bryan Basham, Kathy Sierra, Bert Bates
March 2008
Intermediate to advanced
911 pages
20h 31m
English
O'Reilly Media, Inc.
Content preview from Head First Servlets and JSP, 2nd Edition

Our roadmap for building the app

When we started this chapter we outlined a four-step process for developing our web app. So far we’ve:

1 - reviewed the user views for our web app

2 - looked at the architecture

3 - setup the development and deployment environments for creating and deploying the app

Now it’s time for step 4, creating the app.

We borrow from several popular development methodologies (a little from extreme programming, iterative development), and mangle them for our own evil purposes...

The five steps we’ll follow (in step 4):

4a

Build and test the HTML form that the user will first request.

4b

Build and test version 1 of the controller servlet with the HTML form. This version is invoked via the HTML form and prints the parameter it receives.

4c

Build a test class for the expert / model class, then build and test the expert / model class itself.

4d

Upgrade the servlet to version 2. This version adds the capability of calling the model class to get beer advice.

4e

Build the JSP, upgrade the servlet to version 3 (which adds the capability of dispatching to the JSP), and test the whole app.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Head First Java, 2nd Edition

Head First Java, 2nd Edition

Kathy Sierra, Bert Bates
Head First Java, 3rd Edition

Head First Java, 3rd Edition

Kathy Sierra, Bert Bates, Trisha Gee
Learning Java, 6th Edition

Learning Java, 6th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck

Publisher Resources

ISBN: 9780596516680Errata PageSupplemental Content