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

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -