Expanding your Java servlet knowledge - Java - Techguide

Expanding your Java servlet knowledge

 

Summary

Even if you think you know everything about servlets and JSP, you'll pick up some useful information from More Servlets and JavaServer Pages.

Events

Echelon 2012
June 11 and 12, 2012

University Cultural Centre, National University of Singapore

Startup Asia Jakarta 2012
June 7 and 8, 2012

12th Floor, Annex Building, Wisma Nusantara Complex, Jl. M.H. Thamrin No. 59 Jakarta 10350, Indonesia

MMA Forum Singapore
April 23-25, 2012

Grand Hyatt Singapore

Even if you think you know everything about servlets and JSP, you'll pick up some useful information from More Servlets and JavaServer Pages.

You can't judge a book by its back cover. At least, that's true in the case of More Servlets and JavaServer Pages.

I was surprised to see coverage of the JavaServer Pages (JSP) Standard Tag Library (JSTL) when I glanced at the back of this book. This is a new JSP specification still in progress as a Java Specification Request (JSR). I examined the source code examples from the JSTL chapter and noticed they were already out of date. I was not impressed. I would have put it back on the shelf if I were buying rather than reviewing it. But that would have been my loss; More Servlets and JavaServer Pages is wonderful. I started to read it certain that I was not going to like it, but the depth of content, style of writing, and gems of information soon won me over.

More Servlets and JavaServer Pages

Pros:


  • Superb, three-chapter introduction to servlets/JSP Written in an easy-to-read style
  • Many subtle points that experienced developers may be unaware of
  • Free PDF of previous book
  • Detailed information on security in servlets/JSP

Cons:


  • Inadequate JSTL coverage
  • Not a great reference book

What's covered?
The book is divided into five sections. Part I consists of three chapters that quickly introduce JSP and servlets. Normally, I would have skipped over this material, but I read it for this review. The section is excellent, and I recommend it to anyone wanting to learn about JSP and servlets. In some places, I thought the author's suggestions were not proper, but upon reflection, I decided he offered the best approach for novices.

The author, Marty Hall, crams more into those three chapters than many introductory books. Add to this a freely downloadable Acrobat PDF file of his previous book, and you have a perfect way to become acclimated with servlets and JavaServer Pages. Hall also discusses real-world servers, providing Tomcat, JRun, and ServletExec configuration examples at every turn.

Part II discusses Web applications. Both experienced and novice developers should read this section. I learned a lot, despite having thought myself competent in this area. Part III examines the security schemes available in the Java Web server specifications. There are a lot of options in this area of Java, and Hall covers them in great detail.

Part IV details new functionalities in the Servlet 2.3 specifications, primarily servlet filters and life-cycle events. Part V provides information on the new parts of the JSP 1.2 specification and the previously mentioned, forthcoming JSTL. The chapter on the JSTL admits that it's based on an early release of the specification and subject to change. When he wrote this section, Hall was probably not expecting quite as much change as has occurred. Although the fourth section and the first half of the fifth provide strong descriptions of core new functionalities, the JSTL half of the fifth section is likely to confuse readers unless they just skim over it. The author Web site provides more information about the book, but it currently fails to provide an update to the last chapter.

The book suddenly stops a little abruptly, and I would have enjoyed reading a nice small section on what to expect next in the world of JSP and servlets, or maybe an afterword from the author.

The book does provide an appendix summarizing Tomcat, JRun and ServletExec. Indeed, the book's continuous coverage of these three servlet containers is excellent.

Add it to your shelf
So, given the various negative and positive statements I've made here, do I like this book? Yes. Marty Hall is a great author. He included a lot of superb content, and I was let down only by the ending. The book should be on the shelf of everyone wanting to learn JSP and servlets and anyone currently using them.

Rather than ask who should buy More Servlets and JavaServer Pages, I'll tell you who shouldn't: those looking for a JSTL description and those looking for a reference. But everyone who has an interest in sharpening their knowledge of Java Web serving should order a copy today.

Talkback

Add your opinion

In order to post a comment, you need to be registered. (Sign In or register below)

Post your comment

ZDNet Asia Live

Rise in <b>Chinese</b>-funded acquisitions could trigger more hurdles http://t.co/0pXBS1HR

Rise in Chinese-funded acquisitions could trigger more hurdles: By Ellyne Phneah , ZDNet Asia on May 22, 2012 (6... http://t.co/W3SOdw2c

RT @zdnetasia: CFOs increasingly involved in IT investment decisions. http://t.co/8QrfwOSb

CFOs increasingly involved in IT investment decisions http://t.co/XD1LerFq via @zdnetasia #PrivateCloud #SC2012 #CAPEX

Rise in Chinese-funded acquisitions could trigger more hurdles. http://t.co/VC3G3m3o

RT @zdnetasia: Rise in Chinese-funded acquisitions could trigger more hurdles. http://t.co/VC3G3m3o

So much as we know , MTK6575 extremely integrated frequency1GHz ARM Cortex-A9 processor, the superiority of 3G / HSPA Modem, and help the...

51 minutes ago by y15822137359 on 5 SaaS adoption speed bumps to avoid

Rise in Chinese-funded acquisitions could trigger more hurdles - ZDNet Asia: Rise in Chinese-funded acquisitions... http://t.co/bZaAQnRL

Rise in Chinese-funded acquisitions could trigger more hurdles http://t.co/mIsuZjnU http://t.co/erFX4aVv #arcavir

http://t.co/VNaZtseV Rise in Chinese-funded acquisitions could trigger more hurdles: "Cash r... http://t.co/N0gZZEdR http://t.co/wiqY9ktt

Rise in Chinese-funded acquisitions could trigger more regulatory clearance issues overseas http://t.co/cvLSpTwo #in

Alibaba seeks $2.3B from shareholders for Yahoo deal. http://t.co/qLRAhRQk

CFOs increasingly involved in IT investment decisions. http://t.co/8QrfwOSb

Quickflix WatchNow 2.0 http://t.co/XWti5VWT

Official UEFA #EURO2012 app with Orange 2.0 http://t.co/yoAOXTI1 #hotpeopleifollow

Why wouldn't they be?: CFOs increasingly involved in IT investment decisions http://t.co/4gHYrmQy via @zdnetasia

I reckon your view: "CRM is strategy, not software", if a company replicating the approach uses in ERP implementation into CRM, what they...

1 day ago by wykoong on Gartner: Mobile CRM gives better ROI than social

This video will teach you about the Excel fill handle but also provide you with a workook to download... http://www.youtube.com/watch?v=...

1 day ago by TradeBrother on A quick fill handle trick for Microsoft Excel

waiting...

3 days ago by eapete on What should count in a company's market value?

Boy, you've opened a can of worms now.

Wait for the rants & raves.

3 days ago by eapete on What should count in a company's market value?

I was puzzling before this whether to replicate the success formula we executed for a financial institute, and come out with a standard s...

4 days ago by wykoong on Drop the egos, copy ideas, then innovate