The Jakarta Element Construction Set (ECS) is an open source project for creating markup language documents using the Java language and an object-oriented approach. Can be used to format logs into well-formatted HTML files
Tutorial Details:
Use the Element Construction Set to create formatted logs
The Jakarta Element Construction Set (ECS) is an open source project for creating markup language documents using the Java language and an object-oriented approach. Java developer Amit Tuli provides an introduction to ECS and shows you a step-by-step approach for using it to generate well-formatted status reports from log files. You will create a sample application to help you better understand ECS and its usage. You'll also learn some other potential uses for the API.
In this article, you will learn how to use the Jakarta Element Construction Set (ECS), a set of Java classes that you can use to develop applications that generate well-formatted markup documents. I'll walk you through the process of downloading and using the ECS libraries to develop a sample application that can read various log files and generate a status report in HTML format from them. I won't go into the details of the application that generates the log files; instead, I'll just assume that the application uses a standardized format for its log files. (Of course, you can use the ECS libraries with various log file formats that are different from the format we'll use here, though you would need to modify the parsing algorithm for extracting the required information from log files accordingly.) You could write similar code or a plugin to convert your own streamed or complex logs into well-formatted HTML files for better readability and easier use.
Large enterprise applications -- like application servers, testing applications, or online systems with transactional logging -- generate a huge number of log files. Reading the complete log and extracting a summary of useful data can be difficult and time-consuming. An HTML-formatted summary report can present the data in a more readable way. But the generation of a large HTML file within a Java application is another tough job. The example we'll examine together offers a simple and manageable approach for generating HTML documents using the Jakarta ECS API. The techniques that we'll use can be extended to any application requiring the generation of markup documents.
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: Use the Element Construction Set to create formatted logs.
View Tutorial: Use the Element Construction Set to create formatted logs.
Related
Tutorials:
Messaging helps move Java into the
enterprise - JavaWorld January 1999
Messaging helps move Java into the
enterprise - JavaWorld January 1999 |
JavaWorld article about
JavaCC
JavaWorld article about
JavaCC |
Programming XML in Java, Part 1 - JavaWorld March 2000
Programming XML in Java, Part 1 - JavaWorld March 2000 |
Programming XML in Java, Part 3 - JavaWorld July
2000
Programming XML in Java, Part 3 - JavaWorld July
2000 |
Easy Java/XML integration with
JDOM, Part 2 - JavaWorld July
2000
Easy Java/XML integration with
JDOM, Part 2 - JavaWorld July
2000 |
XML document
processing in Java using XPath and XSLT - JavaWorld September 2000
XML document
processing in Java using XPath and XSLT - JavaWorld September 2000 |
Build your own
languages with
JavaCC - JavaWorld December
2000
Build your own
languages with
JavaCC - JavaWorld December
2000 |
Automate your
build process using Java and Ant - JavaWorld October 2000
Automate your
build process using Java and Ant - JavaWorld October 2000 |
Device programming with MIDP, Part
2 - JavaWorld
March 2001
Device programming with MIDP, Part
2 - JavaWorld
March 2001 |
UDDI4J lets
Java do the
walking
UDDI4J lets
Java do the
walking |
Integrate security infrastructures with JBossSX
Integrate security infrastructures with JBossSX |
XML messaging, Part
3
XML messaging, Part
3 |
Cut down on
logging errors with Jylog
Cut down on
logging errors with Jylog |
XSLT blooms with
Java
XSLT blooms with
Java |
Create client-side user interfaces in HTML, Part
2
Create client-side user interfaces in HTML, Part
2 |
JSP 2.0: The New Deal, Part 3
JSP 2.0: The New Deal, Part 3
More Flexible JSP Document Format Rules
The JSP specification supports two types of JSP pages: regular JSP pages containing any type of text or markup, and JSP Documents, which are well-formed XML documents; i.e., docum |
Trace Analyzer for WebSphere Application Server
Trace Analyzer for WebSphere Application Server is a graphical environment for analyzing WebSphere trace logs in detail. It was developed to facilitate the diagnosis and analysis of problems in complex WebSphere deployments. |
Use the Element Construction Set to create formatted logs.
The Jakarta Element Construction Set (ECS) is an open source project for creating markup language documents using the Java language and an object-oriented approach. Can be used to format logs into well-formatted HTML files |
Installing Sun JDK on Linux
Installing Sun JDK on Linux
Installing Sun JDK on Linux (Fedora Core 3)
Downloading
Download the latest version of JDK from http://www.java.sun.com . I have downloaded jdk-1_5_0_01-linux-i586.bin for this tutorial.
Installing
Change to the |
Struts Validator Framework Tutorial with Example
Struts Validator Framework Tutorial with Example
Struts HTML Tags
Struts Validator Framework
This lesson introduces you the Struts Validator Framework. In this lesson you will learn how to use Struts Validator Framework to validate the user |
|
|
|