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, Internet - web site design

Our price £20.77 (£31.95)
New from £9.14
Used from £4.99

Pages: 780 (Paperback)

ISBN: 0596000405

Pub: O'Reilly Media, Inc.

Pub date: 2001-04-03

Amazon.co.uk Sales Rank: 45770

Check for 3rd party sellers (new/used)

Editorial Review:


Aimed at Web developers with some previous Java experience, Java Servlet Programming, 2nd Edition, offers a solid introduction to the world of Java development with servlets and related technologies. Newly updated with over a half-dozen new chapters and thoroughly revised, this title brings an already useful text up to speed with some leading-edge material. It excels particularly in explaining how to program dynamic Web content using Java servlets, with a fine introduction to all the APIs, programming techniques and tips you will need to be successful with this standard.

Besides being a useful guide to APIs, the book looks at a variety of techniques for saving session state, as well as showing how servlets can work together to power Web sites. You will learn performance tips and ways to get servlets to work together (such as forwarding and redirection), plus the basics of database programming with JDBC to build content with "live" data. A later chapter examines what's next for servlets with the emerging Servlet 2.3 API standard. Importantly, the authors go over deploying and configuring Web applications by editing XML files, a must-have for successfully running servlets in real applications.

Since the first edition of this title, the choices for Java Web developers have grown much richer. Many of the new chapters in this edition look at options beyond servlets. Short sections on application frameworks such as Tea, WebMacro, the Element Construction Set (ECS), XMLC and JavaServer Pages (JSPs) let you explore what's out there for Java developers today with a survey of some current tools that can speed up creating new Web applications.

The text closes with reference sections on servlet APIs (and other material) that will be useful for any working developer. Although servlets are not the only game in town, they are still important tools for successful Web development. This updated edition shows you just how to do it with plenty of basic and advanced tips for taking full advantage of this powerful Java standard. --Richard Dragan

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

JavaScript: The Definitive Guide

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 -> Digital Lifestyle -> Online Shopping -> Amazon
Books -> Subjects -> Computing & Internet -> Digital Lifestyle -> Internet Searching -> General AAS
Books -> Subjects -> Computing & Internet -> General AAS
Books -> Subjects -> Computing & Internet -> Software & Graphics -> General AAS
Books -> Subjects -> Computing & Internet -> Web Development -> Web Design -> 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