Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL lexical analysis error  RSS feed

 
shikhaj jainy
Ranch Hand
Posts: 35
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

Hope you all are doing well.
I am trying to put a JSTL condition using below code:

1 <c:when test="${fn:contains('${imageObject.imageLink}','my')}">
2 <a href="${imageObject.imageLink}?flag=true"><img width="108" height="154" src="${imageObject.imageUrl}"/></a>
3 </c:when>

where ${imageObject.imageLink} and ${imageObject.imageUrl} are coming from xml, but I am getting "Unable to analyze EL expression due to lexical analysis error" at line 1.
Can anybody give me some suggestions on the same.


Thank You.
Shikha
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You never embed a ${} inside another ${}. The ${} surrounds the entire EL expression -- it is not some type of operator that is part of the expression.
 
shikhaj jainy
Ranch Hand
Posts: 35
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you are right..thank you Bear.



Thank You,
Shikha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!