Internet Applications With the Javatm 2 Platform

Gittleman, Art

 
9781576760529: Internet Applications With the Javatm 2 Platform

Synopsis

Chapter 1 includes preliminaries, which may be postponed until needed in later chapters. It starts with exception handling, which is required for I/O, which in turn is required for networking. The event-handling section may be review. I include mouse and key events in Appendix A, because I do not use them in other chapters. I cover threads, used in networking and animation, and concurrent programming. The gridbag layout occurs in a few examples including the GUI for database access. I use vectors in a few places, and they provide an introduction and contrast to the Collections chapter. Networking, in Chapter 2, starts with URLs, which hide the details of the protocols. I explain the HTTP protocol, and use a URLConnection to customize the connection. At a lower level, sockets handle the protocol directly to communicate. I use sockets to develop rudimentary browsers and web servers. The last section covers RMI, a high-level basis for distributed computing. Chapter 3 contains a thorough guide to databases using Java. To make it self-contained, I cover the basic SQL commands. The examples use Microsoft Access, but will work with any database that has a JDBC driver, and many will work with text files. The chapter covers SQL, connecting, creating tables, queries, metadata, prepared statements, and transactions. It concludes with an extended example of a GUI to query a database. Servlets and JavaServer Pages add functionality to a web server. In Chapter 4, I use the JRun application server (found on the included CD). The chapter starts with HTML forms on web clients that call servlets to handle processing on the server. I discuss server-side includes and the new JavaServer Pages which are superceding them. The last three sections are essential for web applications. I illustrate a three-tiered architecture by connecting to a servlet, which in turn connects to a database. Session tracking enables the server to maintain client information

"synopsis" may belong to another edition of this title.