> There are actually some pretty nice object oriented approaches to doing HTML output
>in
> servlets. This is one of the things you can use implementations of the HTML Document
> Object Model (DOM) for (see http://www.w3.org). See also things like the htmlKona
> library that is (or was?) part of BEA/Weblogic's Tengah server, the Element
> Construction Set (at http://java.apache.org) that implements essentially the same
> functionality in an open source package, and numerous similar endeavors by others.
The approach, I favour is to put your content into a DOM object (XML). The DOM object
will
be the equivalent of a bean but which does not require you to define the get/set
properties explicitly. This will be something like
<books>
<book>
<author>T.S.Eliot</author>
<isbn>819011110</isbn>
<title>A book of Poems</title>
</book>
<book>
<auhor>Marc Clinton</author>
<isbn>891111111</isbn>
<title>Varieties of Ghost</title>
</book>
</books>
The above may be dynamically generated on the fly or maybe from a static xml file. This
can then be combined with XSL (Extensible Style Language> equivalent of the JSP page,
to
present the output (in HTML, RTF, PDF or any other format). Of course the technology is
not fully developed as yet. But once the tools are in place this I think this will be
pretty powerful combination. For more details you may look at http://www.w3c.org for
XML,
DOM, XSL specifications and http://java.apache.org for Cocoon that implements this
technique.
=--==--==--==--==--==--==--==--==--==--==--==--==--==
S.Ramaswamy
Matrix Infotech Syndicate
D-7, Poorti, Vikaspuri, New Delhi, 110018, India
PHONE: +91-11-5610050, FAX: +91-11-5535103
WEB http://MatrixInfotech.HyperMart.Net
==--==--==--==--==--==--==--==--==--==--==--==--==--==
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html