Reputation: 2018
Suppose I have the following code:
<c:when test="${isFoo}">
Where can isFoo be defined except:
<c:set ... />
construction ?Upvotes: 1
Views: 273
Reputation: 1108852
In JSP itself by scriptlets. E.g. as a request attribute:
<% request.setAttribute("isFoo", true); %>
Scriptlets are however discouraged since over a decade.
By an implicit EL variable. E.g. as a request parameter:
Which can be accessed by ${param}
:
<c:if test="${param.isFoo}">
There are many more, you can find them all in this overview.
Upvotes: 1