<sas:IForm>

This tag is used for creating an IForm for use with a variety of markup languages (including WML,HDML, and HTML). The IForm is used to collect user input from a variety of devices.The user can use this class to write an IForm without having to know the markup language that is to reference the page.

Syntax

<sas:IForm
   [action="java.lang.String"]
   [actionLabel="java.lang.String"]
   [cacheTimeToLive="int"]
   [customAttributes="java.lang.String"]
   [epilog="java.lang.String"]
   [id="value"]
   [instantiate="true|false"]
   [locale="java.util.Locale"]
   [method="java.lang.String"]
   [name="java.lang.String"]
   [objectDataProperty="java.lang.String"]
   [prolog="java.lang.String"]
   [ref="java.lang.String"]
   [render="true|false"]
   [scope="page|request|session|application"]
   [title="java.lang.String"]>
      [<sas:IFormTextEntry ...>
         [<sas:IOption .../>]
         [<sas:SetProperty ...>
            The value to set on the parent tag
         </sas:SetProperty>]
         [Additional <sas:IOption>, <sas:SetProperty> tags...]
      </sas:IFormTextEntry>]
      [<sas:IFormPassword ...>
         [<sas:IOption .../>]
         [<sas:SetProperty ...>
            The value to set on the parent tag
         </sas:SetProperty>]
         [Additional <sas:IOption>, <sas:SetProperty> tags...]
      </sas:IFormPassword>]
      [<sas:IFormHidden .../>]
      [<sas:IFormListBox ...>
         [<sas:IOption .../>]
         [<sas:SetProperty ...>
            The value to set on the parent tag
         </sas:SetProperty>]
         [Additional <sas:IOption>, <sas:SetProperty> tags...]
         [One or more lines of choices to be used in the listbox]
      </sas:IFormListBox>]
      [<sas:IFormRadio ...>
         [<sas:IOption .../>]
         [<sas:SetProperty ...>
            The value to set on the parent tag
         </sas:SetProperty>]
         [Additional <sas:IOption>, <sas:SetProperty> tags...]
         [One or more lines of choices to be used in the RadioTag]
      </sas:IFormRadio>]
      [<sas:IOption .../>]
      [<sas:SetProperty ...>
         The value to set on the parent tag
      </sas:SetProperty>]
      [Additional <sas:IFormTextEntry>, <sas:IFormPassword>, <sas:IFormHidden>, <sas:IFormListBox>, <sas:IFormRadio>, <sas:IOption>, <sas:SetProperty> tags...]
</sas:IForm>

Example

<%@taglib uri="http://www.sas.com/taglib/sas" prefix="sas"%>

<sas:IForm name="form" action="results.jsp" title="IForm Ex">
 <sas:IFormTextEntry name="name" prompt="Please enter your username: "/>
 <sas:IFormPassword name="password" prompt="Enter your password: "/>
 <sas:IFormListBox name="hobbies" prompt="Favorite hobbies: " >
  Running
  Sleeping
  Reading
 </sas:IFormListBox>
 <sas:IFormRadio name="colors" prompt="Favorite color: ">
  Red
  Green
  Blue
  Yellow
 </sas:IFormRadio>
 <sas:IFormHidden name="foo" value="bar" />
</sas:IForm>

Attributes

actionThe action URL to post forms, such as "http://www.sas.com/jsp/my.jsp".
actionLabelThe action URL to post forms, such as "http://www.sas.com/jsp/my.jsp".
cacheTimeToLiveThe cacheTimeToLive in seconds of the bean.
customAttributesa list of attributes in the form of attribute="value", space delimited
epilogText that is output immediately after the last markup tag.
idCase-sensitive name used to identify the object instance.
instantiateFlag that, if true, indicates that a new instance of the underlying class should be loaded if one cannot be found in PageContext. Must be used with an id attribute.
localeSpecifies the locale to use for this instance of the class.
methodThe HTTP method. Valid values are "get"(default) or "post".
nameValue assigned to the markup tag's name attribute.
objectDataPropertyValue assigned to the output tag's objectDataProperty attribute.
prologText that is output immediately preceeding the first markup tag.
refThe variable String value that represents an object created earlier in the same scope.
renderFlag that, if true, indicates that the complete markup of the bean is output when the tag is closed. It also sets the the visible property on the underlying TransformationBean.
scopeThe scope (or page context) within which the reference is available.
titleThe title of the bean.

More Information

To view the documentation for the related TransformationBean, see com.sas.servlet.tbeans.ipage.iform.IForm.

If you need to subclass the tag handler class for the sas:IForm tag, extend com.sas.taglib.servlet.tbeans.ipage.IFormTag.