Is there any isset-like function in JSP?

Viewed 12718

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.

4 Answers

Instead of checking against null, you can use this snippet:

<c:if test="${not name}">variable name is undefined</c:if>
Related