In any JSP based web site, there could be lots of repetitive web pages. By using tag libraries and XML based definition files, this can be generalized into a framework based rendering. This article illustrates such usage to render a web site.
The ability to save the JavaBean component state for long-term persistence within an XML document has been a topic of much discussion with Java developers in the past few years. This feature has finally been adopted in the 1.4 version of J2SE. This article shows you how to use the new XMLEncoder and XMLDecoder classes, bypassing serialization and allowing you to generate fully initialized bean instances.
This article introduces the TableModel Free (TMF) framework which eliminates the need to use TableModels with Swing JTables. The TMF framework allows for more configurable JTables by moving all of table-specific data outside of the compiled code and into a configurable XML file. Framework developer and Java UI enthusiast Michael Abernethy walks you through TMF framework, helping you reduce the size of a TableModel from hundreds of lines of code to just a single line, making management a snap.
This is the first in a series of tips that will serve as a comprehensive guide to using XML from the Java programming language. I begin with coverage of the SAX API. This tipreviews getting an instance of a SAX parser and setting various features and properties on that parser.
XML developers used to rely on XML parsers to read XML files. They also used to rely on XML processors to transform XML to *ML (HTML, XML, etc.). However, most of them forget these tools to generate XML from scratch. They should not. This article presents code samples for generating XML with JAVA/JAXP.
This is a simple function used to encode text and attribute values before adding them to your XML documents. This code can always be extended to handle maore special characters