Web Development with JavaServer Pages
Web Development with JavaServer Pages will teach you
how to create dynamic content-personalized, customized,
and up-to-the minute content-a key ingredient of site development on the World Wide Web today. JavaServer
Pages (JSP) is a new server-side Java technology for generating dynamic content in web pages and other
on-line applications.
This book covers all aspects of JSP development, as well as comparisons to similar dynamic content systems
such as CGI, Active Server Pages, Cold Fusion, and PHP. It clearly demonstrates the advantages offered by
JSP as a full-featured, cross-platform, vendor-neutral technology for dynamic content generation.
Web Development with JavaServer Pages focuses on the use of component-centric design via Java Beans
and custom tag libraries for separating the presentation of dynamic data from its implementation. As such,
JSP brings important benefits to both web designers, who focus on presentation, and web programmers, who
focus on implementation, yielding improved division of labor and increased productivity.
Introduction
This chapter covers
- JavaServer Pages technology and how it works
- The evolution of dynamic content technologies
- The benefits of using JSP for dynamic content generation
- How to separate presentation and implementation
|
Welcome to Web Development with JavaServer Pages. This
book has been written to
address the needs of a wide audience of web developers. You may have
only recently
heard about this exciting new technology for developing dynamic web
content, or
perhaps you have already begun to use JavaServer Pages in your own
projects. You
may be a HyperText Markup Language (HTML) designer with little or no
back-ground
in programming, or a seasoned Java architect. In any case, this book
will
show you how to use JavaServer Pages to improve the look and
maintainability of
dynamic web sites and web-based applications, and ease the design and
development
process. So, without further ado, let's begin our look at JavaServer
Pages.
What is JSP?
JavaServer Pages - JSP, for short - is a Java-based
technology that simplifies the
process of developing dynamic web sites. With JSP, web designers and
developers
can quickly incorporate dynamic elements into web pages using
embedded Java and
a few simple markup tags. These tags provide the HTML designer with a
way to
access data and business logic stored inside Java objects without
having to master
the complexities of Java application development.
Think of JSP as a type of server-side scripting language, although,
as we'll see
later, it operates quite differently behind the scenes. JavaServer
Pages are text files,
usually with the extension .jsp, that take the place of traditional
HTML pages. JSP
files contain traditional HTML along with embedded code that allows
the page
designer to access data from Java code running on the server. When
the page is
requested by a user and processed by the HyperText Transport Protocol
(HTTP)
server, the HTML portion of the page is passed straight through. The
code portions
of the page, however, are executed at the time the request is
received, and the
dynamic content generated by this code is spliced into the page
before it is sent to
the user. This provides for a separation of the HTML presentation
aspects of the
page from the programming logic contained in the code, a unique
benefit we'll
consider in detail below.
Subjects covered in Chapter 1:
- Introduction
- What is JSP?
- Evolution of dynamic content technologies
- Common Gateway Interface
- Cold Fusion
- Active Server Pages
- Server-side JavaScript
- PHP
- Java Servlets
- JavaServer Pages
- JSP and Java2 Enterprise Edition
- Java Platform Editions
- Web-based Applications
- JSP Benefits
- Performance
- Reusable Components
- Separating Presentation and Implementation
- Achieving Division of Labor
Subjects covered in Chapter 6:
- Developing JSP Components
- What makes a Bean a Bean?
- Bean Conventions
- The Bean constructor
- Defining a Bean's properties
- Indexed Properties
- Boolean Properties
- JSP type conversion
- Configuring Beans
- Some Examples
- Example: a TimerBean
- A Bean that calculates interest
- Bean Interfaces
- The BeanInfo Interface
- The Serializable Interface
- The HTTPSessionBindingListener Interface
- Other features of the Bean API
- Mixing scriptlets and Bean tags
- Accessing Beans through scriptlets
- Accessing scriptlet created objects
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.
|