3 Replies Latest reply on Apr 30, 2014 7:43 AM by gimbal2

    JSTL prints encoded text


      I am using JSTL library in my jsp. Previously, I was directly printing the text in JSP without using JSTL and it was printing fine. My text is : Server Down, can't perform operation.

      I was getting this error message from my backend code and was able to print this successfully. However, after using JSTL, doing like this:


      pageContext.setAttribute("error", someObject.getError());

      <c:out value="${error}" />

      Here, c refers to <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

      This is now printing the encoded form of the apostrophe char : Server Down, can&#39;t perform operation.

      Can anyone tell me how to get rid of this issue ?

      Appreciate your reply, thanks.