enable or disable a button

I have a button which should be enable or disabled based on the property say prop_check it can have value 'ren' 'ren-pend' 'rene' 'notren'

if the value of property is ren or ren-pen then i need to disable and if it is rene or notren then i should enable

i won't be able to do logic: equal or any of the logic tags since i need to check for two values.

can some one help me how to do this.

thanks

[436 byte] By [SubhaMania] at [2007-11-27 9:03:27]
# 1

This property is on a bean?

Add an extra function

public boolean isMyButtonEnabled() to your bean which does the checking on the property for you. That way your jsp can check just one property to see if the button is enabled or not.

It means the enable/disable status of the button is under the control of the bean rather than the jsp page.

evnafetsa at 2007-7-12 21:35:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
can you explain in detail.thanks
SubhaMania at 2007-7-12 21:35:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
can you explain me in detail?thanks
SubhaMania at 2007-7-12 21:35:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...