Sometimes you want to check in your JSP page fragment which page loaded it. Fortunately this is simple with JSTL.
[xml]<c:if test="${fn:indexOf(pageContext.request.requestURI,’foo.jsp’) != -1}">
The request URI ${pageContext.request.requestURI} contains foo.jsp.
</c:if>[/xml]
Simple but something I always forget how to do. 🙂