JavaServer Pages (JSP) technology provides an easy way to create dynamic web pages. JSP uses a component-based approach that allows web developers to easily combine static HTML for look-and-feel with Java components for dynamic features. The simplicity of this component-based model, combined with the cross-platform power of Java, allows a web development environment with enormous potential.
JavaServer Pages shows how to develop Java-based web applications without having to be a hardcore programmer. The author provides an overview of JSP concepts and discusses how JSP fits into the larger picture of web applications. Web page authors will benefit from the chapters on generating dynamic content, handling session information, accessing databases, authenticating users, and personalizing content. In the programming-oriented chapters, Java programmers learn how to create Java components and custom JSP tags for web authors to use in JSP pages.
JSP Application Basics
Chapter 1 Introducing JavaServer Pages
What Is JavaServer Pages?
Why Use JSP?
What You Need to Get Started
Chapter 2 HTTP and Servlet Basics
The HTTP Request/Response Model
Servlets
Packaging Java Web Applications
Chapter 3 JSP Overview
The Problem with Servlets
The Anatomy of a JSP Page
JSP Processing
JSP Application Design with MVC
Chapter 4 Setting Up the JSP Environment
Installing the Java Software Development Kit
Installing the Tomcat Server
Testing Tomcat
Installing the Book Examples
Example Web Application Overview
JSP Application Development
Chapter 5 Generating Dynamic Content
What Time Is It?
Input and Output
Chapter 6 Using Scripting Elements
Java Primer
Implicit JSP Objects
Conditional Processing
Displaying Values
Using an Expression to Set an Attribute
Declaring Variables and Methods
Chapter 7 Error Handling and Debugging
Dealing with Syntax Errors
Debugging a JSP-Based Application
Dealing with Runtime Errors
Chapter 8 Sharing Data Between JSP Pages, Requests, and Users
Passing Control and Data Between Pages
Sharing Session and Application Data
Using Custom Actions
Online Shopping
Memory Usage Considerations
Chapter 9 Database Access
Accessing a Database from a JSP Page
Input Validation Without a Bean
Using Transactions
Application-Specific Database Actions
Chapter 10 Authentication and Personalization
Container-Provided Authentication
Application-Controlled Authentication
Other Security Concerns
Chapter 11 Internationalization
How Java Supports Internationalization and Localization
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.
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of JavaServer Pages is a grey wolf (Canis lupus), also known as a timberwolf. Once common all over North America, grey wolves wander the open tundra and forests of Alaska, Canada, and parts of the United States—just half their former range. These social animals mate for life and live in packs of 2 to 15 animals; the strongest male is the leader of the group. Only the dominant pair in a pack breeds, the female giving birth to an average of 7 pups sometime in April, May, or June, and all members of the group care for the young. Nicole Arigo was the production editor, and Emily Quill was the copyeditor for JavaServer Pages. Leanne Soylemez proofread the book, and Darren Kelly and Rachel Wheeler provided quality control. Ellen Troutman wrote the index.
Pam Spremulli designed the cover of this book, based on a series design by Edie Freedman. The image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
David Futato designed the interior layout based on a series design by Nancy Priest. Mike Sierra implemented the design in FrameMaker 5.5.6. The heading font is Bodoni BT, the text font is New Baskerville, and the code font is Constant Willison. The illustrations that appear in the book were produced by Robert Romano using Macromedia FreeHand 9 and Adobe Photoshop 5.5. This colophon was written by Leanne Soylemez.
I am new to JSP and this book provides good insights of programming. Appreciate the good effort by author. Will be happy to see more such releases.
7/11/2002
(1 of 1 customers found this review helpful)
5.0
JavaServer Pages Review
By Francesco Malvezzi
from Undisclosed
Comments about O'Reilly Media Java Server Pages:
The book is great: easy, but still good level, clear and covers a lot of aspects around the topic (like db connection) very interesting.
Please note the value addede:
Includes a package of tags and java classes very valuable
It is traslated in Italian very well
1/11/2002
(1 of 1 customers found this review helpful)
4.0
JavaServer Pages Review
By Alfredo Del Ponte
from Undisclosed
Comments about O'Reilly Media Java Server Pages:
Very, very, very nice book on JSP. You can be sure that when you'll finish it you'll know everything. When I started it, i had a very poor knowledge in web applications, JSP,... but now i think i've a big background. If you start with JSP, that's the book you need. I give 4 because nothing or nobody is perfect but...
Alfredo
12/6/2001
(1 of 1 customers found this review helpful)
5.0
JavaServer Pages Review
By Mark S Lowe
from Undisclosed
Comments about O'Reilly Media Java Server Pages:
This is hands down the best introduction book 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 examples that aren't explained or explained well enough to understand, but this book sets itself aside as THE best rendition of everything that makes for a great technical publication.
If you have a project requiring JSP knowledge and you've either done no or very little JSP coding, Hans will take you through a bottom up approach that will get you on the write path and make you look like a genius 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.
EXCELLENT JOB HANS!
9/7/2001
5.0
JavaServer Pages Review
By Irv
from Undisclosed
Comments about O'Reilly Media Java Server Pages:
Great introductory book on JSP! Worth the money just for the material in Chapter 2 and the appendix on Packaging Java Web Applications.
8/31/2001
(1 of 1 customers found this review helpful)
5.0
JavaServer Pages Review
By Hans Bachner
from Undisclosed
Comments about O'Reilly Media Java Server Pages:
I'm not yet through the complete book, but got an excellent impression so far. Being new to Java technology (somewhat familiar with HTML and web servers in general), it's great being brought up to speed with many small examples which get right to the point.
The only question remaining is: why does my copy of the book, unlike the one shown on these web pages, have a toaster on the titel page?
7/11/2001
(1 of 1 customers found this review helpful)
4.0
JavaServer Pages Review
By Fabien Musolino
from Undisclosed
Comments about O'Reilly Media Java Server Pages:
This is a very good book to learn the basics of JSP.
Maybe, it's not for people who are not familiar with Java, because there are too many related topics to it.
7/3/2001
4.0
JavaServer Pages Review
By Trib Watts
from Undisclosed
Comments about O'Reilly Media Java Server Pages:
This is a very good book. I would like to see extended coverage on struts.
5/10/2001
(0 of 1 customers found this review helpful)
5.0
JavaServer Pages Review
By Steve Jung
from Undisclosed
Comments about O'Reilly Media Java Server Pages:
I highly recommend this publication. It is being used where I work by all of the Java developers. Please read the preface on page xviii.
4/18/2001
(0 of 1 customers found this review helpful)
5.0
JavaServer Pages Review
By Mark Quinsland
from Undisclosed
Comments about O'Reilly Media Java Server Pages:
Excellent! A very good introduction to jsp. The only things I'd like to see in the next version are code examples for chapters 13+ and expanded coverage of Struts.