Am having problems using the jsptl ea release 3. Am trying to do in a jsp: <c:if test="<%=portbean.containsError("myError")%>"> ... </c:if> Compiler complains that attribute myError is not defined. However, the following works: <c:if test="<%=portbean.containsError(\"myError\")%>"> ... </c:if> Is this the way this is supposed to work? Escaping the quotes is very awkward. Taglib config for the page: <%@ taglib uri="http://jakarta.apache.org/taglibs/input-0.90" prefix="input" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/ea/core-rt" %>
This is an issue with JSP in general, not JSTL in particular. As for your questions - - You can use single quotes to avoid any metacharacter escaping. E.g. - '<%= method("string") %>' - Many recommend using the "expression language" to avoid rtexprvalues ("<%= ... %>") entirely. Shawn