| |
| |
| |
Introduction | |
| |
| |
| |
What is JSP? | |
| |
| |
| |
Dynamic content on the web | |
| |
| |
| |
The role of JSP | |
| |
| |
| |
HTTP and servlets | |
| |
| |
| |
The Hypertext Transfer Protocol (HTTP) | |
| |
| |
| |
Java servlets | |
| |
| |
| |
First steps | |
| |
| |
| |
Simple text | |
| |
| |
| |
Dynamic content | |
| |
| |
| |
Processing requests and managing sessions | |
| |
| |
| |
Separating logic from presentation | |
| |
| |
| |
Review of examples | |
| |
| |
| |
How JSP works | |
| |
| |
| |
The structure of JSP pages | |
| |
| |
| |
Behind the scenes | |
| |
| |
| |
What the environment provides | |
| |
| |
| |
Programming JSP scripts | |
| |
| |
| |
Scripting languages | |
| |
| |
| |
JSP tages | |
| |
| |
| |
JSP directives | |
| |
| |
| |
Scripting elements | |
| |
| |
| |
Flow of control | |
| |
| |
| |
Comments | |
| |
| |
| |
Actions and implicit objects | |
| |
| |
| |
Implicit objects | |
| |
| |
| |
Actions | |
| |
| |
| |
Using JSP components | |
| |
| |
| |
The JSP component model | |
| |
| |
| |
JavaBean fundamentals | |
| |
| |
| |
JSP bean tags | |
| |
| |
| |
Developing JSP components | |
| |
| |
| |
What makes a bean a bean? | |
| |
| |
| |
Some examples | |
| |
| |
| |
Bean interfaces | |
| |
| |
| |
Mixing scriptlets and bean tags | |
| |
| |
| |
Working with databases | |
| |
| |
| |
JSP and JDBC | |
| |
| |
| |
Database driven JSPs | |
| |
| |
| |
Example: JSP conference booking tool | |
| |
| |
| |
Architecting JSP applications | |
| |
| |
| |
Web applications | |
| |
| |
| |
Page-centric design | |
| |
| |
| |
Servlet-centric design | |
| |
| |
| |
Enterprise JavaBeans | |
| |
| |
| |
Choosing an appropriate architecture | |
| |
| |
| |
An example JSP project | |
| |
| |
| |
An FAQ system | |
| |
| |
| |
The storage module | |
| |
| |
| |
The administration module | |
| |
| |
| |
The web access module | |
| |
| |
| |
Introducing filters and listeners | |
| |
| |
| |
Life-cycle event listeners | |
| |
| |
| |
Filters | |
| |
| |
| |
Using filters and listeners | |
| |
| |
| |
Applying filters and listeners | |
| |
| |
| |
Application description | |
| |
| |
| |
User authentication | |
| |
| |
| |
Web authentication | |
| |
| |
| |
Access control filters | |
| |
| |
| |
Logging listener | |
| |
| |
| |
Content filter | |
| |
| |
| |
Deploying JSP applications | |
| |
| |
| |
This means WAR | |
| |
| |
| |
The art of WAR | |
| |
| |
| |
Maintaining a WAR footing | |
| |
| |
| |
Performing common JSP tasks | |
| |
| |
| |
Handling cookies | |
| |
| |
| |
Creating error pages | |
| |
| |
| |
Mixing JSP and JavaScript | |
| |
| |
| |
Building interactive interfaces | |
| |
| |
| |
Validating form data | |
| |
| |
| |
Building a shopping cart | |
| |
| |
| |
Miscellaneous tasks | |
| |
| |
| |
Generating non-HTML content | |
| |
| |
| |
Working with non-HTML content | |
| |
| |
| |
Text content formats | |
| |
| |
| |
XML documents | |
| |
| |
| |
External content | |
| |
| |
| |
Advanced content formats | |
| |
| |
| |
JSP by example | |
| |
| |
| |
A rotating banner ad | |
| |
| |
| |
A random quote generator | |
| |
| |
| |
The Tell a Friend! sticker | |
| |
| |
| |
A JSP Whois client | |
| |
| |
| |
An index generator | |
| |
| |
| |
A button to view JSP source | |
| |
| |
| |
Creating custom tags | |
| |
| |
| |
Role of custom tags | |
| |
| |
| |
How tag libraries work | |
| |
| |
| |
Tag library descriptors | |
| |
| |
| |
API overview | |
| |
| |
| |
Example tag library | |
| |
| |
| |
Content substitution | |
| |
| |
| |
Tag attributes | |
| |
| |
| |
Content translation | |
| |
| |
| |
Exception handling | |
| |
| |
| |
To be continued | |
| |
| |
| |
Implementing advanced custom tags | |
| |
| |
| |
Tag scripting variables | |
| |
| |
| |
Flow of control | |
| |
| |
| |
Interacting tags | |
| |
| |
| |
The final ingredient | |
| |
| |
| |
Validating custom tag libraries | |
| |
| |
| |
Two representations of JSP | |
| |
| |
| |
JSP pages as XML documents | |
| |
| |
| |
Tag library validation | |
| |
| |
| |
Example validators | |
| |
| |
| |
Packaging the tag library | |
| |
| |
| |
For further information | |
| |
| |
| |
Changes in the JSP 1.2 API | |
| |
| |
| |
Introduction | |
| |
| |
| |
Changes to the API | |
| |
| |
| |
Web application changes | |
| |
| |
| |
Custom tag improvements | |
| |
| |
| |
JavaBean changes | |
| |
| |
| |
New servlet features | |
| |
| |
| |
Running the reference implementation | |
| |
| |
| |
Prerequisites | |
| |
| |
| |
Downloading and installing Tomcat | |
| |
| |
| |
Web applications and Tomcat | |
| |
| |
| |
Incorporating Java applets | |
| |
| |
| |
Browser support for Java | |
| |
| |
| |
The plug-in action | |
| |
| |
| |
Example: applet configuration | |
| |
| |
| |
JSP resources | |
| |
| |
| |
Java implementations | |
| |
| |
| |
JSP-related web sites | |
| |
| |
| |
JSP FAQs and tutorials | |
| |
| |
| |
JSP containers | |
| |
| |
| |
Java application servers with JSP support | |
| |
| |
| |
JSP development tools | |
| |
| |
| |
Tools for performance testing | |
| |
| |
| |
Mailing lists and newsgroups | |
| |
| |
| |
JSP syntax reference | |
| |
| |
| |
Content comments | |
| |
| |
| |
JSP comments | |
| |
| |
| |
[left angle bracket]jsp:declaration[right angle bracket] | |
| |
| |
| |
[left angle bracket]jsp:directive.include[right angle bracket] | |
| |
| |
| |
[left angle bracket]jsp:directive.page[right angle bracket] | |
| |
| |
| |
[left angle bracket]jsp:directive.taglib[right angle bracket] | |
| |
| |
| |
[left angle bracket]jsp:expression[right angle bracket] | |
| |
| |
| |
[left angle bracket]jsp:forward[right angle bracket] | |
| |
| |
| |
[left angle bracket]jsp:getProperty[right angle bracket] | |
| |
| |
| |
[left angle bracket]jsp:include[right angle bracket] | |
| |
| |
| |
[left angle bracket]jsp:plugin[right angle bracket] | |
| |
| |
| |
[left angle bracket]jsp:scriptlet[right angle bracket] | |
| |
| |
| |
[left angle bracket]jsp:setProperty[right angle bracket] | |
| |
| |
| |
[left angle bracket]jsp:useBean[right angle bracket] | |
| |
| |
| |
JSP API reference | |
| |
| |
| |
JSP implicit objects | |
| |
| |
| |
Package javax.servlet | |
| |
| |
| |
Package javax.servlet.http | |
| |
| |
| |
Package javax.servlet.jsp | |
| |
| |
| |
Package javax.servlet.jsp.tagext | |
| |
| |
Index | |