Methods Summary |
---|
public int | doEndTag()
try
{
StringBuffer buff = new StringBuffer( );
/* <select> */
buff.append( "<select name='" ).append( _name ).append( "'" );
if ( _css != null )
{
buff.append( " class='" ).append( _css ).append( "'" );
}
buff.append( ">" );
Iterator it = CreditCardNames.all( ).iterator( );
while ( it.hasNext( ) )
{
String cc = it.next( ).toString( );
/* <option> */
buff.append( "<option value='" ).append( cc ).append( "'" );
if ( cc.equals( _value ) )
{
buff.append( " selected" );
}
buff.append( ">" );
/* value */
buff.append( cc );
/* </option> */
buff.append( "</option>" );
}
/* </select> */
buff.append( "</select>" );
pageContext.getOut( ).println( buff.toString( ) );
System.out.println( "customerForm=" + pageContext.getAttribute( "customerForm" ) );
return EVAL_PAGE;
}
catch ( Exception e )
{
throw new JspException( e );
}
|
public java.lang.String | getCss()Returns the css.
return _css;
|
public java.lang.String | getName()Returns the name.
return _name;
|
public java.lang.String | getValue()Returns the value.
return _value;
|
public void | setCss(java.lang.String css)Sets the css.
_css = css;
|
public void | setName(java.lang.String name)Sets the name.
_name = name;
|
public void | setValue(java.lang.String value)Sets the value.
_value = value;
|