if statement - JSP error escape quotes in expression -
if statement - JSP error escape quotes in expression -
i need check type display right message like:
${row.type} <c:if test="${row.stype ==\"note\" }">important note</c:if> but problem escaping produce unusual error: unable analyze el look due lexical analysis error
how can fixed? thanks.
double quotes must not escaped in el. utilize single quotes if tag attribute in double quotes, , vice-versa:
<c:if test="${row.stype == 'note'}">important note</c:if> or
<c:if test='${row.stype == "note"}'>important note</c:if> jsp if-statement escaping expression quotes
Comments
Post a Comment