<c:set var="myuri" value="${pageContext.request.contextPath}" />
<c:choose>
<c:when test="${fn:contains(myuri, '/xxx')}">
<script type="text/javascript" src="javascript/xxx.js"></script>
</c:when>
<c:otherwise>
<script type="text/javascript" src="xxx.js"></script>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${fn:contains(myuri, '/xxx')}">
<script type="text/javascript" src="javascript/xxx.js"></script>
</c:when>
<c:otherwise>
<script type="text/javascript" src="xxx.js"></script>
</c:otherwise>
</c:choose>
Comments
Post a Comment