Top "El" questions

EL (Expression Language) enables the dynamic resolution of Java objects and methods in JSP and Facelets pages.

Evaluate empty or null JSTL c tags

How can I validate if a String is null or empty using the c tags of JSTL? I have a …

jsp jstl el
Use JSTL forEach loop's varStatus as an ID

I want to use the count from the JSTL forEach loop, but my code doesnt seem to work. <c:…

java jsp jstl el
How do I check two or more conditions in one <c:if>?

How do I check two conditions in one <c:if>? I tried this, but it raises an error: &…

jstl el
How to check a boolean condition in EL?

Is this correct? <c:if test="${theBooleanVariable == false}">It's false!</c:if> Or could I do …

java jsp el
The representation of if-elseif-else in EL using JSF

The following JSF code contains two separate <c:if></c:if>. Let's look at it. <?…

jsf el
What does this expression language ${pageContext.request.contextPath} exactly do in JSP EL?

I have a web app, where I have different navigation anchor tags such as Home, Profile and etc. What I …

java jsp el
EL access a map value by Integer key

I have a Map keyed by Integer. Using EL, how can I access a value by its key? Map<…

java jsp jstl el
How does EL empty operator work in JSF?

In JSF an component can be rendered or not using the EL empty operator rendered="#{not empty myBean.myList}" As …

jsf el
How to access at request attributes in JSP?

Currently I use: <% final String message = (String) request.getAttribute ("Error_Message"); %> and then <%= message %> However I …

jsp jstl el
How do you get the length of a list in the JSF expression language?

How would I get the length of an ArrayList using a JSF EL expression? #{MyBean.somelist.length} does not work.

java jsp jsf jstl el