public String fixedOption ( String name , String value , String item , Object selectedValue ) { StringBuilder buf = new StringBuilder ( ) ; buf . append ( "<option value=\"" ) . append ( value ) . append ( "\"" ) ; if ( selectedValue . equals ( value ) ) { buf . append ( " selected" ) ; } buf . append ( ">" ) . append ( item ) . append ( "</option>" ) ; return buf . toString ( ) ; }
Constructs an option entry for a select menu with the specified name value item and selected value .