Java Servlet and JSP Cookbook

Java Servlet and JSP Cookbook

Paperback(First Edition)

$44.99 $49.99 Save 10% Current price is $44.99, Original price is $49.99. You Save 10%.
View All Available Formats & Editions
Choose Expedited Shipping at checkout for guaranteed delivery by Tuesday, October 22


With literally hundreds of examples and thousands of lines of code, the Java Servlet and JSP Cookbook yields tips and techniques that any Java web developer who uses JavaServer Pages or servlets will use every day, along with full-fledged solutions to significant web application development problems that developers can insert directly into their own applications. Java Servlet and JSP Cookbook presents real-world problems, and provides concise, practical solutions to each. Finding even one tested code "recipe" that solves a gnarly problem in this comprehensive collection of solutions and best practices will save hours of frustration—easily justifying the cost of this invaluable book.But "Java Servlet and JSP Cookbook" is more than just a wealth of cut-and-paste code. It also offers clear explanations of how and why the code works, warns of potential pitfalls, and directs you to sources of additional information, so you can learn to adapt the problem-solving techniques to similar situations.These recipes include vital topics like the use of Ant to setup a build environment, extensive coverage of the WAR file format and web.xml deployment descriptor, file-uploading, error-handling, cookies, logging, dealing with non-HTML content, multimedia, request filtering, web services, I18N, web services, and a host of other topics that frustrate even the most seasoned developers.For Java web developers of all levels who are eager to put into practice the theory presented in other API-focused books, the solutions presented in this practical book will prove invaluable over and over again. This is painless way for less experienced developers who prefer to learn by doing to expand their skills and productivity, while accomplishing practical solutions to the pressing problems they face every day. More experienced developers can use these recipes to solve time-consuming problems quickly, freeing up their time for the more creative aspects of their work.

Product Details

ISBN-13: 9780596005726
Publisher: O'Reilly Media, Incorporated
Publication date: 01/28/2004
Edition description: First Edition
Pages: 748
Product dimensions: 7.00(w) x 9.19(h) x 1.70(d)

About the Author

Bruce W. Perry played college soccer in New York, then amidst a varied career in journalism and software engineering finished literally (ask his knees!) hundreds of road races and multisport events. He's since moved on to family life and recreational alpine hiking, skiing, and resistance training. He has also written two recent software books for O'Reilly Media. After an unguided youth, he now hangs out weightlifting in gyms again, and climbs with guides now, recently Piz Palu in the Swiss Alps, Mt. Whitney's Mountaineer's Route, and Mt. Rainier.

Table of Contents

  • Preface
  • Chapter 1: Writing Servlets and JSPs
  • Chapter 2: Deploying Servlets and JSPs
  • Chapter 3: Naming Your Servlets
  • Chapter 4: Using Apache Ant
  • Chapter 5: Altering the Format of JSPs
  • Chapter 6: Dynamically Including Content in Servlets and JSPs
  • Chapter 7: Handling Web Form Data in Servlets and JSPs
  • Chapter 8: Uploading Files
  • Chapter 9: Handling Exceptions in Web Applications
  • Chapter 10: Reading and Setting Cookies
  • Chapter 11: Session Tracking
  • Chapter 12: Integrating JavaScript with Servlets and JSPs
  • Chapter 13: Sending Non-HTML Content
  • Chapter 14: Logging Messages from Servlets and JSPs
  • Chapter 15: Authenticating Clients
  • Chapter 16: Binding, Accessing, and Removing Attributes in Web Applications
  • Chapter 17: Embedding Multimedia in JSPs
  • Chapter 18: Working With the Client Request
  • Chapter 19: Filtering Requests and Responses
  • Chapter 20: Managing Email in Servlets and JSPs
  • Chapter 21: Accessing Databases
  • Chapter 22: Using Custom Tag Libraries
  • Chapter 23: Using the JSTL
  • Chapter 24: Internationalization
  • Chapter 25: Using JNDI and Enterprise JavaBeans
  • Chapter 26: Harvesting Web Information
  • Chapter 27: Using the Google and Amazon Web APIs
  • Colophon

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

Java Servlet and JSP Cookbook 3.7 out of 5 based on 0 ratings. 3 reviews.
dschnedar More than 1 year ago
I had a hard time finding a good book that was current on this subject. This book does seem to have thorough coverage of the material. I felt that the examples where too focused. For each example it is assumed that all the parts not listed are already completed and correct, and that you did those parts exactly like the author would have. Not a good assumption.
Guest More than 1 year ago
Very useful and well written. I would recommend this book to someone interested in its topic. An adequate reference on this topic.The presentation of the book is neat. It covers real-world problems, and provides concise, practical solutions to each. This book targets Java web developers of all levels. Less experienced web developers who prefer to learn by doing, this book is a great store for cooked recipes. I really liked the section on custom tag libraries and JSTL. Tag Libraries are a great way to avoid scriptlet code and it is one of the best practices
Guest More than 1 year ago
The 'cookbook' in the title means that Perry emphasises what he considers to be many common tasks needed to be done by Java Servlets and JSPs, in a J2EE context. Similar in spirit to OReilly's other books like 'eBay Hacks' and 'google Hacks'. In fact, in the 26 chapters of Perry's book, there are on average over 5 tasks in each that he explains, which are akin to the hacks of the other books. Except here, he gives you over 130 hacks. He assumes you know the basics of the subject. Certainly, the book does not claim to be a comprehensive listing of the subject's features. But if you satisfy this requirement, you can dive straight into any section of any chapter. Don't have to read this book linearly. However, if you aren't using Tomcat or BEA WebLogic as containers, then the relevance of the book may, frankly, be more limited. Different containers have slightly different functionalities, and the examples he gives are very specific to those 2 containers. If you are in fact using another, perhaps you can use this book to provide design patterns and inspiration, but not actual code.