Programming Books C Java PHP Python Learn more Browse Programming Books
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

JavaServer Pages, Second Edition Paperback – August 15, 2002

ISBN-13: 063-6920003175 ISBN-10: 059600317X Edition: Second Edition

19 New from $2.99 59 Used from $0.01 1 Collectible from $9.98
Amazon Price New from Used from
Paperback, August 15, 2002
$2.99 $0.01

There is a newer edition of this item:


Editorial Reviews Review

This comprehensive guide to JavaServer Pages (JSPs), a fast-growing technology for Web developers, teaches you how to embed server-side Java into Web pages, while also offering full access to other features such as JavaBeans, Enterprise JavaBeans (EJB), and JDBC database access. The reference JSP implementation is the freely available Apache Tomcat server, so it won't cost a thing to get started. All the example code in the book has been tested on Tomcat, in fact.

The first part of JavaServer Pages covers the essentials of HTTP and Java Servlets, on which JSPs are based. There is also a guide to installing Tomcat on your Windows or Unix system. The next part, aimed at Web page designers as well as programmers, covers JSP application development. There is material on scripting elements, error handling, managing user sessions, database access, security, and using XML and XSL with JSP. Part 3, for programmers, broadens the scope to include EJB and other Java components, developing custom tags, and achieving highly scalable applications using database connection pools. A comprehensive reference section finishes things off.

The author has been an active participant in the official servlet and JSP working groups, and this book is both well informed and well organized. It provides experts with invaluable tips and insights, while newcomers will find all they need to assess and implement their first JSP applications. --Tim Anderson, --This text refers to an out of print or unavailable edition of this title.

About the Author

Hans Bergsten is the founder of Gefion Software, a company focused on Java services and products based on the J2EE technlogies. Hans has been an active participant in the working groups for both the servlet and JSP specifications from the time they were formed. He also contributes to other related JCP specifications, such as JSP Standard Tag Libraries (JSTL), and helped get the development of the Apache Tomcat reference implementation for servlet and JSP started as one of the initial members of the Apache Jakarta Project Management Committee.


Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Product Details

  • Paperback: 684 pages
  • Publisher: O'Reilly Media; Second Edition edition (August 15, 2002)
  • Language: English
  • ISBN-10: 059600317X
  • ISBN-13: 978-0596003173
  • Product Dimensions: 7 x 1.2 x 9.2 inches
  • Shipping Weight: 2 pounds
  • Average Customer Review: 3.7 out of 5 stars  See all reviews (43 customer reviews)
  • Amazon Best Sellers Rank: #5,440,209 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

I had no problem sifting through the authors code but it just seems plain lazy.
Vincent Apesa
I found the section on JDBC and connection pooling with my JSP application more useful than my JDBC references!
C. Lamb
This is the best written introductory JSP book I've seen (and I've looked at a lot).
Irvin Kanode

Most Helpful Customer Reviews

14 of 14 people found the following review helpful By Mark Lowe on December 6, 2001
Format: Paperback
This is hands down the best introduction to JSP coding. I've been through at least a dozen other publishers and no other book has been so clear and concise with all the relevant issues that plague serious JSP developers today. Usually a book will contain sections that aren't useful or don't deal with real life issues facing corporate programmers. This book handles everything from the most basic example to offering many perspectives of other programming theories. Having read the entire book, I'd have to say this book sets itself aside as THE best rendition of everything that makes for a great technical publication.
Many companies demand that you use best of breed coding methods before they will hire you on as a JSP developer. They want database connection pools, security considerations, localization of content, and they will typically force you to work with a number of different development environments and back-end servers. This book not only gives you the big picture, but it comes with WORKING EXAMPLES! I was able to use this book to learn how to install TOMCAT (the best JSP development environment) and watch the EXACT code in the book function flawlessly. I dare say having bought over 50 technical books in the last 10 years, this is an industry first. And the author examples every single line of code so you never get lost or confused about what is happening.
If you're asking yourself if you should buy this book, and you have a project requiring JSP knowledge and you've done either no or very little JSP coding, Hans will take you through a bottom up approach that will get you on the right path and make you look like an expert corporate programmer. It will be the first technical book in a long time that you've read cover to cover and wished there was more content to be had.
Anyone criticizing this book simply hasn't read it.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
20 of 22 people found the following review helpful By Cees van Barneveldt on January 11, 2001
Format: Paperback
This a primer that describes the background JSP and server side programming in Java, as well it is a rather good tutorial for developing JSP. The JSP technology is based on the servlet technology, so it is very useful (I would say a must) to read a book on servlets first. "Java Servlet Programming" from Hunter & Crawford makes a good reading companion. It is complete and generally well written, but I have some points of critique.
The book consists of 3 parts (excl. appendices): a) Part 1 "JSP Application Basics" gives a good theoretical overview of the JSP technology and environment. b) Part 2 "JSP Appication Development" gives a complete overview for the developer of the actual JSP pages. But it also has stuff that is only relevant for Java developers (such a Java primer) and lots of examples that can only be understood by reading the chapters in part 3 of the book, meant for Java developers. c) Part 3 "JSP and J2EE and JSP Component Development" is meant for the hardcore Java developer and describes the development of Java Beans and JSP custom actions. It has very strong chapters about how JSP fits in the J2EE architecture and how it combines with servlets. There is also a short chapter about Java Beans, the description is good but the example is incomplete. The last two chapters about JSP Custom Actions and Database Access Components are difficult and rather messy.
General points of critique: A) The JSP architecture has as weakness that it does not clearly separate development of HTML content and Java code. Basically this technology shifts the burden from the Java servlet developer to the HTML content developer, who is now very afraid to break Java code embedded in the HTML page.
Read more ›
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
15 of 16 people found the following review helpful By NIO on March 17, 2001
Format: Paperback
I cannot understand why some people did not like this book. It is definetly those kind of books that make O'Reilly one of the most respectful tech editors. I also have Core Servlets and JSP, which is awful compared to this one. The Core book just say 'do that to get that'. It does not say why, when, the advantages, drawbacks, alternatives, etc. It is just a reference book, it does not teach you anything useful, just the JSP syntax, so you may think that you know JSP, but you actually don't. I had this feeling because I first read the Core book. But then when I read the O'Reilly one I realized that I did not know anything about JSP. I was ashamed of thinking I once knew it. To conclude: If you want to be a JSP specialist buy the O'Reilly's book. If you want to know the syntax of JSP by the Core one.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
9 of 9 people found the following review helpful By Dr. Zoidberg on April 25, 2002
Format: Paperback
Typical to an O'reilly book, this book is not a bad introduction to Java Server Pages (JSP). It teaches the basics: what is a JSP, what is a Servlet, how to use them, what are the best practices for JSPs, etc. In my opinion it provides a fairly comprehensive tutorial. There is also a chapter about a design model (the MVC model) which the author recommends. However, despite all this I still do not recommend this book. Despite the fact that "Java Server Pages" seems to be a very comprehensive introduction for JSPs, it really isn't. Why do I say this? Three main reasons: First thing, the author uses his classes all across the book, which makes it somewhat useless for the developer seeking to see how to deal with
programming issues. All it teaches you is how to use the author's classes - but nothing besides!! With all due respect, this is a book about JSPs, not about O'reilly classes - and using premade classes considerbly hinders learning!
Second, the author seems to forget there are many ways of using JSPs and almost exclusively focuses on Java Beans. Well, I have been using JSPs for almost two years now, commercially, and WE DON'T USE JAVA BEANS. It's not that I'm saying it is a wrong approach, but it isn't the ONLY approach - which is what the author continuously states. Last, the author was using Tomcat, so there were Tomcat configuration tutorials all over the book. Since I don't use Tomcat (and I assume, many other people don't use it either), I felt as spending so much space on Tomcat was a waste. It would've been better if fewer subjects were covered, but examples on more Application Servers were given. (Similar to "More Servlets" by Marty Hall which gave each example for 3-4 different servers).

To summarize: I believe that there are better books than this one, however, it does teach the basic technology. After reading the book I can definitely say I learned new things - however, I would still recommend turning to another JSP book.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Recent Customer Reviews