Wojciech Szymski
Wojciech Szymski

Reputation: 365

JSP with JSTL does not print variables

I have problem with JSTL taglib variable printing.

My JSP file:

<%@taglib prefix="c" uri="/WEB-INF/c.tld"%>
<%@taglib prefix="fn" uri="/WEB-INF/fn.tld" %>
....
<%
    String val1 = "";
    Object val = RequestUtils.lookup(pageContext, "Form", Names.Val.full(), null);
    if (val != null) {
      val1= ResponseUtils.filter(val.toString());
    }
System.out.println(val1); // (correct)
%>

<c:out value="${val1}" />
<c:out value="<%=val1 %>" />
<c:set var="some" value="<%=val1 %>" />
<c:out value="${some}" />
...

Output:

What is wrong? Please help!

Upvotes: 1

Views: 5104

Answers (1)

Wojciech Szymski
Wojciech Szymski

Reputation: 365

I found solution:

<%@page isELIgnored="false"%>

Upvotes: 2

Related Questions