I wish to pass a request parameter to the JavaScript that is to be loaded. This parameter can then be used as a constant within the script.
One example of this is how fancybox 2.x requres a v=2.1.0 parameter as defined in the instructions.
Searching through the fancybox source I could not identify how this gets used, it's required for both the CSS and JavaScript.
My main requirement for this is to be able to pass in an application context path to the JS which handles ReST requests.
<script type="text/javascript"
src="<c:url value="/js/rest.js?ctx=${pageContext.request['contextPath']}"/>"></script>