I want to initialize Context Path global javascript variable in
JSP.
var contextPath = "<s:property value="#request.contextPath"/>" doesn't work.
var contextPath = "${request.contextPath}" also not working
var contextPath = "<%=request.getContextPath()%>" is working. But I don't want to use
java code in JSP.
So is there possibility to get Context Path in Struts2 JSP without java code?