The book I learned from, and still refer to from time to time is entitled Advanced JavaServerPages by David Geary. Now days a lot of folks are just utilizing the
Struts framework, well Mr. Geary had at least a fair share of input to that project (at least I think so), and this book takes you through the steps of developing your own framework, and the sample code is really good if you download it from the book's sight. This book has been out for a while, but a good one to take a look at.