I am new to JSTL and looking for a way to call a method in a 'when' clause using JSTL. I import this way:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
And then I call the method using this syntax later in the JSP:
<c:when test= "${sessionBean.aBooleanMethod(form.userName)}" >
The problem is, I get this error:
...contains invalid expression(s): javax.el.ELException: Error Parsing: ${sessionBean.aBooleanMethod(form.userName)}
Please let me know if I need to include any more information or you have any questions! Thanks and I appreciate any answers/ideas!