<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-us" xml:lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="security" content="public" /> <meta name="Robots" content="index,follow" /> <meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' /> <meta name="DC.Type" content="reference" /> <meta name="DC.Title" content="HTML Classes" /> <meta name="abstract" content="" /> <meta name="description" content="" /> <meta name="copyright" content="(C) Copyright IBM Corporation 2006" /> <meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" /> <meta name="DC.Format" content="XHTML" /> <meta name="DC.Identifier" content="html" /> <meta name="DC.Language" content="en-us" /> <!-- All rights reserved. Licensed Materials Property of IBM --> <!-- US Government Users Restricted Rights --> <!-- Use, duplication or disclosure restricted by --> <!-- GSA ADP Schedule Contract with IBM Corp. --> <link rel="stylesheet" type="text/css" href="./ibmdita.css" /> <link rel="stylesheet" type="text/css" href="./ic.css" /> <title>HTML Classes</title> </head> <body id="html"><a name="html"><!-- --></a> <!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script> <h1 class="topictitle1">HTML Classes</h1> <div><p></p> <div class="section"><p>IBM<sup>®</sup> Toolbox for Java™ HTML classes assist you in:</p> <ul><li>Setting up forms and tables for HTML pages</li> <li>Aligning text</li> <li>Working with a variety of HTML tags</li> <li>Creating Extensible Stylesheet Language (XSL) formatting object (FO) source data</li> <li>Altering the language and direction of text</li> <li>Creating ordered and unordered lists</li> <li>Creating file lists and HTML hierarchical trees (and the elements within them)</li> <li>Adding tag attributes not already defined in the HTML classes (for example, bgcolor and style attributes)</li> </ul> <p>The HTML classes implement the <a href="javadoc/com/ibm/as400/util/html/HTMLTagElement.html">HTMLTagElement</a> interface. Each class produces an HTML tag for a specific element type. The tag may be retrieved using the <a href="javadoc/com/ibm/as400/util/html/HTMLTagElement.html#GETTAG()">getTag()</a> method and can then be embedded into any HTML document. The tags you generate with the HTML classes are consistent with the HTML 3.2 specification.</p> <p>The HTML classes can work with <a href="servlets.htm#servlets"> servlet</a> classes to get data from the iSeries™ server. However, they can also be used alone if you supply the table or form data.</p> <p>Additionally, you can use the HTMLDocument class to easily create HTML pages or XSL FO source data. You can convert XSL FO data into Portable Document Format (PDF) documents. Using the PDF format enables your documents to retain the same graphical appearance when you print them as when you view them electronically.</p> <p>The HTML classes make it easier to make HTML forms, tables, and other elements:</p> <ul><li><a href="htmlbidiordering.htm#htmlbidiordering">BidiOrdering</a> class allows you to alter the language and direction of text.</li> <li><a href="javadoc/com/ibm/as400/util/html/DirFilter.html#NAVBAR_TOP">DirFilter</a> class enables you to determine if a File object is a directory.</li> <li><a href="htmalign.htm#htmalign">HTMLAlign</a> class allows you to align blocks of HTML output.</li> <li><a href="htmldocument.htm#htmldocument">HTMLDocument</a> class enables you to more easily create HTML or XSL FO source data.</li> <li><a href="javadoc/com/ibm/as400/util/html/HTMLFileFilter.html#NAVBAR_TOP">HTMLFileFilter</a> class allows you to determine if a File object is a file.</li> <li><a href="htmlform.htm#htmlform">HTMLForm classes</a> help you make forms more easily than CGI scripting.</li> <li><a href="htmlhead.htm#htmlhead">HTMLHead</a> class allows you to create head tags for your HTML pages.</li> <li><a href="htmlheading.htm#htmheading">HTMLHeading</a> class allows you to create heading tags for your HTML pages.</li> <li><a href="htmllnk.htm#htmllnk">HTMLHyperlink</a> class helps you create links within your HTML pages.</li> <li><a href="htmlimage.htm#htmlimage">HTMLImage</a> class allows you to create image tags for your HTML pages.</li> <li><a href="htmllist.htm#htmllist">HTMLList classes</a> help you create lists for your HTML pages.</li> <li><a href="htmlmeta.htm#htmlmeta">HTMLMeta</a> class allows you to create meta tags for your HTML pages.</li> <li><a href="servparam.htm#servparam">HTMLParameter</a> class specifies parameters available to the HTMLServlet.</li> <li><a href="htmserv.htm#htmserv">HTMLServlet</a> class allows you to create a server-side include.</li> <li><a href="htmltabl.htm#htmltabl">HTMLTable classes</a> help you make tables for your HTML pages.</li> <li><a href="htmltxt.htm#htmltxt">HTMLText</a> class allows you to access the font properties within your HTML pages.</li> <li><a href="htmltree.htm#htmltree">HTMLTree classes</a> allow you to display an HTML hierarchical tree of HTML elements.</li> <li><a href="javadoc/com/ibm/as400/util/html/URLEncoder.html#NAVBAR_TOP"> URLEncoder</a> class encodes delimiters to use in a URL string.</li> <li><a href="javadoc/com/ibm/as400/util/html/URLParser.html#NAVBAR_TOP">URLParser</a> class allow you to parse a URL string for the URI, properties, and reference.</li> </ul> <div class="note"><span class="notetitle">Note:</span> The jt400Servlet.jar file includes both the HTML and <a href="servlets.htm#servlets">Servlet</a> classes. You must update your CLASSPATH to point to the jt400Servlet.jar file if you want to use the classes in the com.ibm.as400.util.html package.</div> </div> </div> </body> </html>