In jstl, we can declare a variable with empty value like below -
<c:set var="isCompleted" value=""/>
Now suppose, I have a tag named testBoolean.tag where I have a boolean attribute
<%@ attribute name="completed" type="java.lang.Boolean" required="true" %>
Clearly the type is Object boolean, so I should be able to pass null.
But when I pass an empty value to the tag -
<tagDir:testBoolean completed=${isCompleted}/>
it automatically converting empty to False!
Is there any way we can pass null to boolean attribute here?
booleannot an objectBoolean- Jens