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

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -