public String checkbox ( String name , boolean defaultValue ) { String value = getParameter ( name ) ; return fixedCheckbox ( name , ( value == null ) ? defaultValue : ! value . equals ( "" ) ) ; }
Constructs a checkbox input field with the specified name and default value .