When coding in JSTL you often want to use conditional logic (I'm thinking
Does JSTL support 'is' boolean methods though? Ask a random poll of Java we developers and you will get conflicting answers so I decided to investigate, want the short answer?
YES - JSTL does support accessing isX() methods directly as if you were accessing a getX() method, but only if the return type of the isX() method is a primative boolean. If you return an object of any kind (such as Boolean isObjectBooleanTrue()) then JSTL fails to find the method and will give you a rather nasty JSP exception:
So yes, 'is' methods work in JSTL but make sure you ONLY return primitive booleans from them.javax.el.not have the property 'objectBooleanTrue'.
PropertyNotFoundException: The class 'com.andrewbeacock.BooleanTest' does