I was wondering if we could check for all undefined and null variables in JSP using its built-in functions?
I know I can build a function to do that, but I need a lazy solution.
I was wondering if we could check for all undefined and null variables in JSP using its built-in functions?
I know I can build a function to do that, but I need a lazy solution.
Instead of checking against null, you can use this snippet:
<c:if test="${not name}">variable name is undefined</c:if>