Recently, I developed a JSP page within the webapp that utilizes jquery, CSS, and Angular JS. The files jquery-1.12.0.js, angular.min.js, and TableCSSCode.css are all located in the same directory as the JSP page. Initially, my application context was set to mycontext, so the URL for my utility was .
However, I later had to change my context from mycontext to test/newcontext/mycontext. After making this change, I could access the new URL at , but the JSP page couldn't read the jquery, CSS, and Angular JS files properly.
Here is the snippet of code I am currently using:
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-1.12.0.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/angular.min.js"></script>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/TableCSSCode.css">
If anyone can assist me with this issue, it would be greatly appreciated.