My JSP page contains:
<script>
var bt_wd40_appurl = "${pageContext.request.contextPath}";
</script>
view/source shows “” for the value. No errors I’ve found so far.
my web.xml specifies version 2.5.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It will be empty if you deployed the webapp on ROOT. See also its javadoc (emphasis mine):
Are you sure that you did deploy it on a context path? Note that the context path doesn’t contain the scheme/domain part of the URL, it’s a domain-relative URL.