73 lines
4.4 KiB
HTML
73 lines
4.4 KiB
HTML
<?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 form 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="htmlform" />
|
|
<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 form classes</title>
|
|
</head>
|
|
<body id="htmlform"><a name="htmlform"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">HTML form classes</h1>
|
|
<div><p></p>
|
|
<div class="section"><p>The <a href="javadoc/com/ibm/as400/util/html/HTMLForm.html"> HTMLForm</a> class represents an HTML form.
|
|
This class allows you to: </p>
|
|
<ul><li>Add an element, like a button, hyperlink or HTML table to a form</li>
|
|
<li>Remove an element from a form</li>
|
|
<li>Set other form attributes, such as which method to use to send form contents
|
|
to the server, the hidden parameter list, or the action URL address</li>
|
|
</ul>
|
|
<p>The constructor for the HTMLForm object takes a URL address. This
|
|
address is referred to as an action URL. It is the location of the application
|
|
on the server that will process the form input. The action URL can be specified
|
|
on the constructor or by setting the address using the <a href="javadoc/com/ibm/as400/util/html/HTMLForm.html#SETURL(JAVA.LANG.STRING)"> setURL()</a> method. Form attributes are set
|
|
using various <a href="javadoc/com/ibm/as400/util/html/HTMLForm.html#SETHIDDENPARAMETERLIST(JAVA.UTIL.PROPERTIES)"> set</a> methods and retrieved using various <a href="javadoc/com/ibm/as400/util/html/HTMLForm.html#GETHIDDENPARAMETERLIST()"> get</a> methods.</p>
|
|
<p>Any HTML tag element
|
|
may be added to an HTMLForm object using <a href="javadoc/com/ibm/as400/util/html/HTMLForm.html#ADDELEMENT(COM.IBM.AS400.UTIL.HTML.HTMLTAGELEMENT)"> addElement()</a> and removed using <a href="javadoc/com/ibm/as400/util/html/HTMLForm.html#REMOVEELEMENT(COM.IBM.AS400.UTIL.HTML.HTMLTAGELEMENT)"> removeElement()</a>. Use the following HTML
|
|
tag element classes in your HTMLForms:</p>
|
|
<ul><li><a href="formin.htm#formin">FormInput classes</a>: represent input
|
|
elements for an HTML form</li>
|
|
<li><a href="layform.htm#layform">LayoutFormPanel classes</a>: represent
|
|
a layout of form elements for an HTML form</li>
|
|
<li><a href="txtarea.htm#txtarea">TextAreaFormElement</a>: represents
|
|
a text area element in an HTML form</li>
|
|
<li><a href="labelfrm.htm#labelfrm">LabelFormElement</a>: represents
|
|
a label for an HTML form element</li>
|
|
<li><a href="selform.htm#selform">SelectFormElement</a>: represents
|
|
a select input type for an HTML form</li>
|
|
<li><a href="selopt.htm#selopt">SelectOption</a>: represents an option
|
|
for a SelectFormElement object in an HTML form</li>
|
|
<li><a href="radiofrm.htm#radiofrm">RadioFormInputGroup</a>: represents
|
|
a group of radio input objects which allow a user to select one from a group</li>
|
|
</ul>
|
|
<p>Of course, you can add other tag elements to a form, including the
|
|
following:</p>
|
|
<ul><li><a href="htmltxt.htm#htmltxt">HTMLText</a></li>
|
|
<li><a href="htmllnk.htm#htmllnk">HTMLHyperlink</a></li>
|
|
<li><a href="htmltabl.htm#htmltabl">HTMLTable</a></li>
|
|
</ul>
|
|
<p>For more information on using the HTMLForm class to create a form,
|
|
see this <a href="htmfrmex.htm#htmfrmex">example</a> and the resulting <a href="htmlout.htm#htmlout">output</a>.</p>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |