Synopses & Reviews
While the XML "buzz" still dominates talk among Internet developers, the critical need is for information that cuts through the hype and lets Java programmers put XML to work. Java & XML
shows how to use the APIs, tools, and tricks of XML to build real-world applications, with the end result that both the data and the code are portable.
This second edition of Java & XML adds chapters on Advanced SAX and Advanced DOM, new chapters on SOAP and data binding, and new examples throughout. A concise chapter on XML basics introduces concepts, and the rest of the book focuses on using XML from your Java applications. Java developers who need to work with XML, or think that they will in the future as well as developers involved in the new peer-to-peer movement, messaging, or web services will find the new Java & XML a constant companion.
This book covers:
The basics of XML, including DTDs, namespaces, XML Schema, XPath, and XSL
- The SAX API, including all handlers, the SAX 2 extensions, filters, and writers
- The DOM API, including DOM Level 2, Level 3, and the Traversal, Range, CSS, Events, and HTML modules
- The JDOM API, including the core, a look at XPath support, and JDOM as a JSR Using web publishing frameworks like Apache Cocoon Developing applications with XML-RPC
- Using SOAP and UDDI for web services Data Binding, using both DTDs and XML Schema for constraints
- Building business-to-business applications with XML Building information channels with RSS and dynamic content with XSP
Includes a quick reference on SAX 2.0, DOM Level 2, and JDOM.
McLaughlin shows how to use the APIs, tools, and tricks of XML to build real-world applications, with the end result that both the data and the code are portable. The second edition adds chapters on Advanced SAX and Advanced DOM, new chapters on SOAP and data binding, and features new examples throughout. A concise chapter on XML basics introduces concepts, and the rest of the book focuses on using XML from Java applications.
This book is a great introduction to Java servlets and their various communications mechanisms. It includes deep and comprehensive coverage of the Java Servlet API, and also of HTTP, non-HTTP socket communications, Remote Method Invocation (RMI), and more. Throughout, the authors present illustrative codes and explain why things work the way they do. (Computers--Languages/Programming)
Servlets are an exciting and important technology that ties Java to the Web, allowing programmers to write Java programs that create dynamic web content.
Java Servlet Programming covers everything Java developers need to know to write effective servlets. It explains the servlet lifecycle, showing how to use servlets to maintain state information effortlessly. It also describes how to serve dynamic web content, including both HTML pages and multimedia data, and explores more advanced topics like integrated session tracking, efficient database connectivity using JDBC, applet-servlet communicaton, interservlet communication, and internationalization. Readers can use the book's numerous real-world examples as the basis for their own servlets.
The second edition has been completely updated to cover the new features of Version 2.2 of the Java Servlet API. It introduces chapters on servlet security and advanced communication, and also introduces several popular tools for easier integration of servlet technology with dynamic web pages. These tools include JavaServer Pages (JSP), Tea, XMLC, and the Element Construction Set.
In addition to complete coverage of 2.2 specification, Java Servlet programming, 2nd Edition, also contains coverage of the new 2.3 final draft specification.
About the Author
Jason Hunter is Senior Technologist with CollabNet, a company that provides tools and services for open source style collaboration. In addition to authoring Java Servlet Programming, he is publisher of Servlets.com, creator of the com.oreilly.servlet library, a contributor to the Apache Jakarta project that creates Tomcat (starting on the project when it was still Sun internal), a member of the expert groups responsible for Servlet/JSP and JAXP API development, and he holds a seat on the JCP Executive Committee overseeing the Java platform, as a representative of the Apache Software Foundation. He also writes columns for JavaWorld, and speaks at many programming and open source conferences. Most recently he co-created the open source JDOM library to enable optimized Java and XML integration, and he leads the expert group responsible for JDOM development. Jason graduated summa cum laude from Willamette University (Salem, Oregon) in 1995 with a degree in computer science. He began programming in Java in the summer of 1995 and has been involved with servlets and related server-side technologies since December 1996. If by some miracle you don't find him at work, he's probably out hiking in the mountains.
Table of Contents
Preface; Organization; Who Should Read This Book?; Software and Versions; Conventions Used in This Book; Comments and Questions; Acknowledgments; Chapter 1: Introduction; 1.1 XML Matters; 1.2 What's Important?; 1.3 The Essentials; 1.4 What's Next?; Chapter 2: Nuts and Bolts; 2.1 The Basics; 2.2 Constraints; 2.3 Transformations; 2.4 And More...; 2.5 What's Next?; Chapter 3: SAX; 3.1 Getting Prepared; 3.2 SAX Readers; 3.3 Content Handlers; 3.4 Error Handlers; 3.5 Gotcha!; 3.6 What's Next?; Chapter 4: Advanced SAX; 4.1 Properties and Features; 4.2 More Handlers; 4.3 Filters and Writers; 4.4 Even More Handlers; 4.5 Gotcha!; 4.6 What's Next?; Chapter 5: DOM; 5.1 The Document Object Model; 5.2 Serialization; 5.3 Mutability; 5.4 Gotcha!; 5.5 What's Next?; Chapter 6: Advanced DOM; 6.1 Changes; 6.2 Namespaces; 6.3 DOM Level 2 Modules; 6.4 DOM Level 3; 6.5 Gotcha!; 6.6 What's Next?; Chapter 7: JDOM; 7.1 The Basics; 7.2 PropsToXML; 7.3 XMLProperties; 7.4 Is JDOM a Standard?; 7.5 Gotcha!; 7.6 What's Next?; Chapter 8: Advanced JDOM; 8.1 Helpful JDOM Internals; 8.2 JDOM and Factories; 8.3 Wrappers and Decorators; 8.4 Gotcha!; 8.5 What's Next?; Chapter 9: JAXP; 9.1 API or Abstraction; 9.2 JAXP 1.0; 9.3 JAXP 1.1; 9.4 Gotcha!; 9.5 What's Next?; Chapter 10: Web Publishing Frameworks; 10.1 Selecting a Framework; 10.2 Installation; 10.3 Using a Publishing Framework; 10.4 XSP; 10.5 Cocoon 2.0 and Beyond; 10.6 What's Next?; Chapter 11: XML-RPC; 11.1 RPC Versus RMI; 11.2 Saying Hello; 11.3 Putting the Load on the Server; 11.4 The Real World; 11.5 What's Next?; Chapter 12: SOAP; 12.1 Starting Out; 12.2 Setting Up; 12.3 Getting Dirty; 12.4 Going Further; 12.5 What's Next?; Chapter 13: Web Services; 13.1 Web Services; 13.2 UDDI; 13.3 WSDL; 13.4 Putting It All Together; 13.5 What's Next?; Chapter 14: Content Syndication; 14.1 The Foobar Public Library; 14.2 mytechbooks.com; 14.3 Push Versus Pull; 14.4 What's Next?; Chapter 15: Data Binding; 15.1 First Principles; 15.2 Castor; 15.3 Zeus; 15.4 JAXB; 15.5 What's Next?; Chapter 16: Looking Forward; 16.1 XLink; 16.2 XPointer; 16.3 XML Schema Bindings; 16.4 And the Rest. . .; 16.5 What's Next?; API Reference; SAX 2.0; DOM Level 2; JAXP 1.1; JDOM 1.0 (Beta 7); SAX 2.0 Features and Properties; Core Features; Core Properties; Colophon;