Titel: JavaServer Pages: Developer's Handbook
Autor/en: Nick Todd, Mark Szolkowski
1. Mai 2003 - kartoniert - 815 Seiten
"JavaServer Pages Unleashed" gives developers everything they need to build applications with JSP. Starting with JSP syntax and JSPUs role in the J2EE architecture, the book covers building JSP front-ends for JavaBeans, presenting database information, creating custom JSP tag libraries, presenting and transforming XML data, and more.
Introduction. 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 Standard Tag Library. Connection Pools. Content Caching. The Shopping Cart Mini Case Study. Enterprise JavaBeans and Database Access. Summary. 15. JSP and EJB Interaction. EJB Fundamentals. Anatomy of an EJB. Writing EJBs. Creating an Entity Bean. Session Beans. Creating a Session Bean. Web Application EJB Access Architecture. Summary. 16. Security and JSP. Security Requirements. The J2EE Security Model. Authentication. HTTPS Client Authentication and SSL. Programmatic Security. Security in J2EE Applications. Single Sign On. Summary. 17. Personalization and Web Applications. Introduction to Personalization. A Personalized Application Example. Rule-Based Personalization Engines. Summary. 18. Case Study. Introduction to the Case Study. Case Study Architecture. Case Study Implementation. Summary. III. APPENDIXES. Appendix A. An XSLT and XPATH Checklist. XSLT Checklist. XPATH Checklist. Appendix B. An Overview of XML Schema. Appendix C. A Checklist of the Tags in the JSP Standard Tag Library. Tag Library URIs. Core Actions. XML Actions. Internationalization Actions. SQL Actions. Appendix D. Basic JSP Syntax Checklist. JSP Directives. Comments in JSPs. JSP Predefined Variables. The JavaServer Pages Standard Tag Library. The JSP Expression Language. Standard Actions. Adding Java Code to JSPs. Appendix E. Debugging Tomcat and Running the Examples. Debugging Web Applications and Tomcat. General Debugging Tips. Appendix F. The Java Community Process. Why Do We Need the Java Community Process? Who Is Involved? How Does a New JSR Evolve? Appendix G. J2EE Application Servers. What to Look for in a Server. Appendix H. Configuring Tomcat. The Configuration File server.xml. Appendix I. Installing MySQL and WebLogic Server. MySQL. BEA WebLogic. Appendix J. Glossary. Index.
The authors of this book work for Content Master Ltd., a technical authoring company in the United Kingdom specializing in the production of training and educational materials. For more information on Content Master, please see its Web site at www.contentmaster.com. Nick Todd B.Sc. PGCE has been with Content Master since 2000 and has been working in technical education since 1997. Prior to that, he was a Web designer, the lead developer on a Web site for a British university, and he also worked on a Web site for British Telecom. Nick has wide experience in providing training and consulting in Java, XML, and Internet technology to companies such as Sun Microsystems, Art Technology Group, Stilo Technology, and the UK eScience Institute based at Edinburgh University. In conjunction with Content Master, Nick has also written courses on Java technology for the Sun Microsystems global curriculum and also courseware on Web-related technology for Microsoft. When Nick is not sitting in front of a computer or standing in front of a technical class, you will often find him working in the Christian church that he leads in Bristol, England. Mark Szolkowski, M.Eng was born in Manchester, England in 1972, and has a Masters degree in Microelectronic Systems Engineering. During his four years at UMIST, he spent the summers learning the wonders of writing 16-bit Windows software in C using nothing more than M and a command-line compiler. After leaving university, Mark worked as a System Administrator at a software house, which allowed him to feed his programming habit. Since 2000, Mark has mostly worked as an independent technical trainer and author, specializing in Java and XML technologies. Mark has been working with Content Master since 2001.