GetRadioOptions

Description

This JSP function XML binds radio buttons when modification rules do not need to be considered.

Syntax

String getRadioOptions(String name)

String getRadioOptions(String name, String checked)

String getRadioOptions(String name, String a_checked, String a_value)

Input parameters

name - Required. Value of the name attribute for the radio input. Can be a binding or a literal.

checked - Required. Sets the checked attribute for the element with the matching ID. Must be a literal.

value - Required. Value of the value attribute for the radio input. Can be a binding or a literal.

Note: If only the name parameter is passed, the value of the value parameter defaults to the same value passed to the name parameter.

JSP usage

<input type="radio" <%=getRadioOptions("xml:Order:/OrderAddlinfo/@Country",
"US", "xml:Order:/OrderAddlinfo/@Country" )%>>United States</input>

Resultant HTML

<input type="radio" name="US" value="US" CHECKED>United States</input>