JavaServer Pages Developer's Handbook gives practical, in-depth implementation advice on building robust JSP applications. Learn how to use JSP within enterprise Java applications, and when working with databases and Enterprise JavaBeans. Incorporate JSP tag libraries and frameworks, including Struts, to simplify page construction. This book covers JSP 2.0 and Servlets 2.4 including the expression language, filters, and expanded support for XML in JSP applications.
Create custom tags to automate common functions, interact with Enterprise JavaBeans, and ensure security and reliability in JSP applications. The authors demonstrate transforming and presenting XML data, building Web Service applications, and deploying JSP applications using Jakarta Tomcat. At the end of the book, youß¬l build a complete working Web application incorporating many of the topics discussed.
I. CORE JSP.1. JSP, J2EE, and the Role of the Servlet.
The Progression of Java and Web Applications. The Java 2 Enterprise Edition. Java Servlets. Installing Jakarta Tomcat. Creating Your First Web Application. Processing Form Data. Exception Handling in Java Servlets. Introducing the JavaServer Page. Web Application Scope. Summary.2. The Basic Syntax of JSP.
JSP Defined. Comments in JavaServer Pages. The Expression Tag. The Declaration Tag. Embedding Code. JSP Directives. JSP Predefined Variables. The JavaServer Pages Standard Tag Library (JSTL). Summary.3. Further JSP Syntax.
The Standard Actions. The JSP Expression Language (EL). Summary.4. Deploying JSP in a Web Container.
Configuring JSP in web.xml. The Web Container. The Web Application. Deploying Web Applications. Summary.5. The JSP Standard Tag Library.
The Need for Tag Libraries. Introduction to the Core Tag Library. Backwards Compatibility and Migrating from JSTL 1.0 to JSTL 1.1. Third-Party Tag Libraries. Summary.6. JSP and JavaBeans.
What Is a JavaBean? The Importance of Scope in a Web Application. Using JavaBeans from a JSP. Summary.7. JSP Application Architecture.
The Model 1 Architecture. The Model 2 Architecture. Which Architecture to Use? Introducing Frameworks. Jakarta Struts. JavaServer Faces. General Guidelines. Summary.8. Session Tracking Using JSP.
Using Cookies to Track Sessions. Interacting with Cookies from JSP. URL Rewriting. The Session Object. Keeping Track of Your Session Objects. Session Failover. Shopping Cart Mini Case Study. Summary.9. Developing Custom Tag Libraries.
Tag Extensions. Writing a Custom Tag. Tags That Interact. Summary.
II. XML,Web Services, and Enterprise JSP.10. Utilizing XML from JSP.
Introduction to XML. Parsing XML. Summary.11. Transforming XML Using XSLT and XSLFO.
Introduction to XSLT. Single Template Programming (Exemplar Approach). Declarative Template Programming. Applying Browser-Specific Transformations. Transformation Using XSLFO. Summary.12. Invoking Web Services from JSP.
Web Services Fundamentals. Introducing Apache Axis. SOAP-Interacting with Web Services. The Web Service Description Language (WSDL). Universal Description, Discovery, and Integration (UDDI). Summary.13. Locating Resources Using JNDI.
Naming and Directory Services. What Is JNDI? Using JNDI. JNDI and JSP. Summary.14. Databases and JSP.
JDBC Fundamentals. Accessing Databases Using the JavaServer Pages Stan