I have a variable named helpLocation in my js page.
like var helpLocation = 'http://localhost:9080/App/webhelp/Home.htm';
Here App is the Applciation Context.But it is hardcoded there. How can i set dynamically . I am trying to put as <c:set var="path" value="${pageContext.request.contextPath}"/> and var helpLocation = 'http://localhost:9080'+contextPath+'/webhelp/Home.htm'; . Then checked this with an alert as alert(helpLocation); but it is giving an alert with undefined