> I have defined a test class with constants as follows:
 
> public class Constants
> {
>   public final static String MY_CONSTANT = "OK";
> }
 
> What I want to do is in my html:option tag, I want to set the 
> value associated with that tag to the constant MY_CONSTANT.  
> How would one do this?

Write a getter method for that value:

String getMyConstant()
{
    return MY_CONSTANT;
}

The <html:option ...> tag can now reference the property "myConstant".

--
Tim Slattery
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to