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
Packaging Java Web Applications
Chapter 3 JSP Overview
The Problem with Servlets
The Anatomy of a JSP Page
JSP Application Design with MVC
Chapter 4 Setting Up the JSP Environment
Installing the Java Software Development Kit
Installing the Tomcat Server
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
Implicit JSP Objects
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
Memory Usage Considerations
Chapter 9 Database Access
Accessing a Database from a JSP Page
Input Validation Without a Bean
Application-Specific Database Actions
Chapter 10 Authentication and Personalization
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.
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...
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.
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?