Java™ for ColdFusion® Developers

Book description

The first Java guide specifically for experienced ColdFusion developers and Web professionals!

  • Leverage your Web and ColdFusion skills to develop powerful Java applications

  • Master JSP, servlets, custom tags, JavaBeans, JDBC, and other key Java Web technologies

  • Install and run Apache Tomcat 4 and JRun 4 application servers

  • Build several complete applications, including an e-commerce site

  • Includes handy Java glossary and JSP/servlet references

  • Up-to-the-minute coverage of Java 1.4, JSP 1.2, servlet 2.3, and ColdFusion MX

With ColdFusion MX and this book, any Web professional can leverage the power of Java to build robust, high-performance Web applications. Leading Web developer and columnist Eben Hewitt begins with a rapid-fire introduction to Java that builds on what you already know about ColdFusion to teach you exactly what you need to know about Java programming. Hewitt's focused examples, real-world insights, and code will take you from the basics of object-oriented programming to sophisticated JSP/servlet development, XML-based applications, and beyond!

  • Master object-oriented application design and programming

  • Build powerful servlets, JavaServer Pages, applets, and desktop applications

  • Leverage XML & XSLT, exception handling, I/O, JDBC databases, and more

  • Understand the similarities and key differences between CFML and Java development

  • Integrate ColdFusion MX with J2EE and servlet technology

  • Create JSP custom tags and use the brand-new JSP Standard Tag Library

  • Includes complete references to JSP tags and the Servlet API, plus a handy Java glossary

The bookÕs extensive code examples (downloadable from www.corecoldfusion.com) include a start-to-finish Java e-commerce application.

Table of contents

  1. Copyright
  2. Foreword
  3. Acknowledgments
  4. Introduction
    1. Why Java for ColdFusion Developers?
    2. Who This Book Is For
    3. What This Book Is Not
    4. Overview of Book Sections
  5. Java Jump Start
    1. The New ColdFusion Architecture
    2. Benefits of Moving to the Java Technology Platform
    3. The Java Platform
    4. Gathering Your Tools
    5. Anatomy of a Simple Java Program
    6. Understanding the API
    7. Exercise 1: Download and Install the SDK
    8. Exercise 2: Using the API Documentation
  6. Java Data Structures
    1. Binary Overview
    2. Data Types in ColdFusion
    3. Data Types in Java
    4. Primitive Data Types
    5. Variable Assignment and Initialization
    6. Operators
    7. Overflow
    8. Operator Precedence
    9. Casts and Conversions
    10. Java Standard Classes
    11. What's Next
  7. Programming Structures
    1. Wrapper Classes
    2. Strings
    3. Loops
    4. Arrays
    5. Conditional Logic
    6. Example Program: CheckerBoard.java
    7. Example Program: Debt Calculator
    8. Command Line Input
    9. Using Methods: Toward Object-Oriented Programming
    10. Visibility
    11. Composition of the main Method
    12. What's Next?
  8. Object-OrientedApplication Design
    1. Objects
    2. Why Software Projects Fail
    3. Software Development Processes
    4. Case Study: Bookstore
    5. Introduction to OOAD
    6. Use Cases
    7. Creating UML Diagrams
    8. Class Diagrams
    9. User Scenarios and Use-Case Diagrams
    10. Collaboration Diagrams
    11. Sequence Diagrams
    12. Package Diagrams
    13. Encapsulation
    14. Inheritance
    15. Software and Hollywood Movies
    16. What's Next?
  9. IDEs
    1. Macromedia Editor Changes and Java IDEs
    2. Projects
    3. Dreamweaver MX
    4. Sun ONE Studio 3 (Forte for Java)
    5. JBuilder
    6. IntelliJ IDEA
    7. Putting Your IDE to Work
    8. What's Next
  10. Objects and Classes
    1. Packages
    2. Documentation with JavaDoc
    3. Field Defaults and Field Initializers
    4. Polymorphism
    5. Constructors
    6. static Methods
    7. The this Reference
    8. Stack and Heap Memory
    9. Putting Things Together
    10. What's Next
  11. Exceptions
    1. Exceptions
    2. What's Next
  12. Advanced Object-Oriented Concepts
    1. Inner Classes
    2. Inheritance
    3. Abstract Classes and Abstract Methods
    4. Interfaces
    5. final
    6. Reflection
    7. What's Next?
  13. Extending ColdFusion with Java
    1. Configure ColdFusion Server Settings for Java
    2. Using <cfobject>
    3. CFX Custom Tags
    4. Applets
    5. Using Applets with <cfapplet>
    6. Working with Browsers and the Java Plugin
    7. Swing and AWT
    8. What's Next?
  14. Collections and Regular Expressions
    1. Synchronization and <cflock>
    2. ColdFusion Structures
    3. Collections Overview
    4. General Collections Methods
    5. Collections Interfaces
    6. Collection Classes
    7. Lists
    8. Sets
    9. Maps
    10. Using Regular Expressions
    11. What's Next
  15. JDBC
    1. Using JDBC
    2. Metadata
    3. Transactions
    4. Stored Procedures
    5. Example GUI Application: Database Query Viewer
    6. What's Next
  16. Servlets and CFMX/J2EE Integration
    1. Using Java Technology to Create Web Sites
    2. Compare ColdFusion and Java Web Technologies
    3. ColdFusion MX J2EE Capabilities
    4. Java Web Servers
    5. Installing Tomcat
    6. Configuring JSP Web Applications
    7. Creating a Tomcat Web Application Manually
    8. Servlets
    9. A Database-Driven Authentication Servlet
    10. ColdFusion MX and J2EE Integration
    11. Configuring MySQL Database Server
    12. What's Next?
  17. JavaServer Pages
    1. Overview of JSP
    2. Scripting Elements
    3. Directives
    4. Actions
    5. Model-View-Controller
    6. Implicit Objects
    7. Error Pages
    8. JavaBeans
    9. Sample Bean Application: Writing Dynamic XML
    10. What's Next?
  18. JSP Custom Tags
    1. Getting Started with Custom Tags
    2. Writing a Simple Custom Tag
    3. Importing a JSP Library in CFMX
    4. Working with the JSTL
    5. The web.xml File
    6. JSP Satellite Developments
    7. What's Next?
  19. J2EE Case Study: An E-commerce Site
    1. Application Overview
    2. Database
    3. Setup
    4. Root Application Files
    5. Styles
    6. WEB-INF
    7. WEB-INF/classes/com/cybertrails/store
    8. WEB-INF/classes/com/cybertrails/store/beans
    9. WEB-INF/classes/com/cybertrails/store/tags
    10. WEB-INF/classes/com/cybertrails/admin
    11. WEB-INF/lib
    12. WEB-INF/jstl10
    13. What's Next?
  20. JSP 1.2 Reference
    1. Comments
    2. Directives
    3. Standard Actions
  21. API Reference
    1. javax.servlet Interfaces, Classes, and Exceptions
    2. JSP API for javax.servlet.jsp and java.servlet.jsp.tagext
    3. javax.servlet
    4. javax.servlet.http Interfaces and Classes
  22. Glossary of Terms
  23. Java Bookmarks
    1. General Java
    2. JSP and Servlets
  24. Quick Reference
    1. Checking Environment Variables
    2. Setting CLASSPATH
    3. Setting JAVA_HOME
    4. Setting the PATH
    5. Checking Current Version
    6. Compiling and Running Programs
    7. Primitive Data Types
    8. Declaring and Initializing Variables
    9. Class Definition
    10. Constructors
    11. Declaring Methods
    12. Calling Methods
    13. Overloading Methods
    14. Overriding Methods
    15. package
    16. import
    17. Inheritance
    18. Defining and Implementing an Interface
    19. Exceptions
    20. Creating a .jar File
    21. Creating the Proper Directory Structure for a Web Application
    22. The Simplest Possible web.xml File
    23. Creating a .war File
  25. Index

Product information

  • Title: Java™ for ColdFusion® Developers
  • Author(s): Eben Hewitt
  • Release date: January 2003
  • Publisher(s): Pearson
  • ISBN: 0130461806