I want disable HTML button depending on value present in Spring bean.I am using JSTL empty property but no luck.
Here is my code
<input type="submit" value="SendEmail" disabled="${empty reportNotificationFbo.providersList}" >
Here reportNotificationFbo is spring bean and providersList is a list.
I want to disable Submit button if providersList is empty.
-Thanks.
State of the button is controlled by the presence of
disabledattribute, not by its value. Try the following: