Hi, i have the following code from my JSP which doesn't quite work:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<c:set var="contextPath" value="${pageContext.request.contextPath}" />
<c:set var="requestURI" value="${pageContext.request.requestURI}" />
<c:set var="isPeople" value="${fn:contains(requestURI, '/People/')}" />
<c:set var="isJobs" value="${fn:contains(requestURI, '/Jobs/') || fn:endsWith(requestURI,contextPath+'/')}" />
Basically, isPeople is working fine - it checks to see if the user is on any of my pages that have '/People/' in the url, and uses that later on down to show the appropriate submenu.
Now i wand the isJobs to be true if they are at either '/Jobs/*' or the application root, but my simple || doesn't compile, it gives me this error:
An exception occurred processing JSP page /sitemesh/main.jsp at line 7
Please help, thanks!