Top "El" questions

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

Should I choose == or eq for comparing string in EL?

== and eq give the same result using EL to do my string comparison tests: <c:if test="${person.sokande_…

java jakarta-ee el websphere-8
Why JSF calls getters multiple times

Let's say I specify an outputText component like this: <h:outputText value="#{ManagedBean.someProperty}"/> If I print a …

performance jsf el getter
Creating Array using JSTL or EL

I'm working on a web application using Java and its frameworks(Spring 3.1.1). And I'm trying to avoid using scriptlets as …

arrays jsp jstl el scriptlet
JSP EL String concatenation

How do I concatenate strings in EL? I want to do something like this but it doesn't work: ${var1 == 0 ? 'hi' : …

jsp el
How to call a static method in JSP/EL?

I'm new to JSP. I tried connecting MySQL and my JSP pages and it works fine. But here is what …

java jsp el
Defining and reusing an EL variable in JSF page

Is it possible to define variable and reuse the variable later in EL expressions ? For example : <h:inputText value="#{…

jsf jsf-2 el
Concat two String in JSF EL expression

I have the following el expression: <af:outputText value="#{viewArticle.publish ? ('Publish on ' + viewArticle.publishDate + ' by ' + …

java string jsf el concat
Concatenating strings within EL expression defined in an attribute of a facelets tag

I need to write an EL expression for an attribute which goes something like this: #{cc.attrs.appreciatedByCurrentUser ? (cc.attrs.…

jsf jsf-2 facelets el
How to access a request attribute set by a servlet in JSP?

I'm trying to retrieve attribute values set by a servlet in a JSP page, but I've only luck with parameters …

java jsp servlets el
Accessing a JSTL / EL variable inside a Scriptlet

The following code causes an error: <c:set var="test" value="test1"/> <% String resp = "abc"; resp = resp + ${…

jsp jstl el scriptlet