Java Servlet Programming (Java)

ClanBrandon Books
view more info on this item
click here for more details, find new or used items

Jason Hunter, William Crawford

New from £18.16
Used from £0.70

Pages: 510 (Paperback)

ISBN: 156592391X

Pub: O'Reilly

Pub date: 1998-10-15

Amazon.co.uk Sales Rank: 443041

Check for 3rd party sellers (new/used)

Editorial Review:


This book is a superb introduction to Java servlets and their various communications mechanisms. It includes deep and comprehensive coverage of the Java Servlet API, and also of HTTP, non-HTTP socket communications, Remote Method Invocation (RMI) and more. Throughout, the authors present excellent illustrative code and go to much effort to explain why things work the way they do.

The authors (to their credit) do not assume that Java programmers will be familiar with transport protocols or what really goes on when a Web server operates. They begin by showing how to use servlets to generate static pages, then show how to get servlets to generate customised documents in response to requests from the client side. That alone will satisfy many readers' problems. However, the authors go on to tell how to track sessions with servlets, how to carry out secure transactions, how to get servlet threads to communicate with each other, and more. If it can be done with Java servlets, it's discussed in this book. Java Servlet Programming also includes a reference to the Java Servlet API, version 2. --David Wall

Reader Reviews:


4/5 stars

Lots of examples. But outdated.. (0/0 people found this helpful)

If I were to review this book on Chapters 1-9, 12,13 alone I would have given this book a rating of 5 stars.
Unfortuantely the book is rather dated (10 years old in May 2008), makes use of variable name "enum" a lot, which won't compile on more recent versions.
Chapters 1-20 take up 590 pages. Pages 591-720 are taken up by Appendices/Index. Appendices A-C are to some extent a waste of space. Servlet/HTTP Servlet API reference make up Appendices A/B. I prefer to use up to date Javadoc. Appendix C Diagrams C1/C2/C3 are useful. The rest is bloat.
Chapters 14-18 describe different "view" technologies that are with the exception of JSP obsolete, surpassed by newer technologies.
Chapter 17 on XMLC was a waste of time, you don't even get XMLC command to translate HTML pages to Java classes when you download their stuff!
Tea and ECS were interesting & I liked them. But some of Tea examples don't work. Commenting out "%>" causes problems on same line. Needs to be on next line..
Webmacro examples needed bringing up to date to work with lastest release. Now surpassed with Velocity/FreeMarker.
Chapter 18 on JSP forgets to package classes. Tomcat doesn't like unpackaged classes.. Also author forgets to use includes directive in source download/book.
Also casually mentions using init parameters. Be sure to use context-param. not servlet init-param! A comment in toolview.jsp code to the effect that "application.getInitParameter uses context-param NOT init-param" or a copy of web.xml in source download for chapter 19, would not have gone amiss here!
Also there was an example using Struts tags in Ch18, which I couldn't for life of me get to work & emailed author with no response on this issue.. (But have to say he answered a load of others for me uncannily fast and have to say he's a great guy. I think a more appropriate animal on cover of book would have been a night owl from number of times he answered my emails in the early hours Stateside!).
There was also an attempt to pass an array to a JSP from a servlet via a useBean in listing 18-13. You have to change this to a scriplet, since useBean needs a no arg constructor and an array can't have this.
So:
becomes
<%
packagename.Tool[] tools = (Tool[]) request.getAttribute("tools");
%>
I bought book based on recommendation of Steven Haines "old" Informit article entitled "Guide to becoming Enterprise Developer".
He's since updated this and recommends Head First Servlets.
Haven't seen this book but maybe worth thinking about this instead as first choice.
Still a good book because of wealth of examples and useful cos.jar that make it a worthwhile purchase. Perhaps a more apt name would have been Java Servlet Cookbook...
One final note. Perhaps the most interesting and gritty examples were in Chapter 10 involving the Daytime/Chat Servers... I spent a couple of days trawling through forums here. I can save any others the tedium. You need a "public" JRE to be able to get applets to work in a web browser. If you install a public JRE, it can screw up ZipGenius and make it give classloader problems. It's a useful GUI for looking inside jars/zips etc. Just uninstall & re-install ZipGenius so it will point to the new public JRE. (Private JRE is installed in JDK and isn't used by browsers)..

4/5 stars

Great book (1/1 people found this helpful)

A really useful practical introduction to writing Servlets including excellent sections on security and authentication, receiving and serving files over HTTP, and JDBC. It’s a little out of date now, but if you are looking to build a website with Java technologies, or if you want to learn a good alternative to the MS proprietary stuff, this is a really good place to start.

5/5 stars

I like this book (3/3 people found this helpful)

This book is excellent. I actually own both editions 1st (1998) and 2nd the 1st edition should really be left alone as it is now quite dated but the 2nd edition is perhaps one of the best books I have read on servlets. It has clear explanations and the author obviously knows the subject extremely well. There are a few typos but programmers will spot these and the eratta is pretty good on the oreilly site any way.

5/5 stars

Great introduction to Servlets (9/12 people found this helpful)

Above comments by reviewer 'rfletch6@yahoo.co.uk' are incorrect because this new edition does cover Servlet API 2.2 This book is ideal for anyone wanting to learn how to program Java Servlets.

5/5 stars

Good introduction to the subject but need a new edition (3/4 people found this helpful)

This book provides a very solid introduction to using servlets, (and to a lesser extent JSP), and if you know some basic Java already you will be up and writing code quickly. I think, however, it's may be worth holding on for a new edition as many of the examples are based on an older version of the Servlet API (2.0) and some of the techniques no longer work. The chapter on Interservlet Communication is particularly useless if you're using the new API as many of the methods used were seen as potential security loopholes and have now been deprecated.

Similar Products

JavaServer Pages

Tomcat: The Definitive Guide

Ant: The Definitive Guide

Enterprise JavaBeans 3.0

Java Servlet & JSP Cookbook

Categories

Amazon.co.uk places this book into the following categories:

Books -> Subjects -> Computing & Internet -> General
Books -> Subjects -> Computing & Internet -> Programming -> Languages -> Java -> Servlets
Books -> Subjects -> Computing & Internet -> Programming -> Languages -> Java -> General AAS
Books -> Subjects -> Computing & Internet -> Programming -> General AAS
Books -> Subjects -> Computing & Internet -> Programming -> Languages & Tools -> General AAS
Books -> Subjects -> Computing & Internet -> General AAS
Books -> Refinements -> Language (feature_browse-bin) -> English
Books -> Refinements -> Age (feature_two_browse-bin)
Books -> Refinements -> Format (binding_browse-bin) -> Paperback
Books -> Refinements -> Condition (condition-type)

 

ClanBrandon Books | Prague airport transfer | Dreamweaver | Short Term Missions | English Teacher Jobs in the Czech Republic
Czech Republic | Operation Mobilisation | Czech Republic Map