I am trying to compare value of meta tag returned by sitemesh with a string but its not displaying correct result. Below is code what I am trying. Please Let me know if something wrong.
<c:set var="pageName" scope="request" ><sitemesh:write property='meta.menu'/></c:set>
<c:if test="${pageName=='Doctorhome'}"> somthing </c:if>
This is not printing if block content. Also I tried to print ${pageName}, it prints Doctorhome.
Kindly let me what problem is there.