I have created a simple JSP page inside webapp which uses jquery, CSS and Angular JS. All of the jquery-1.12.0.js, angular.min.js and TableCSSCode.css are in the same location where JSP page reside. Initially my application context was mycontext, so the URL of my utility was http://ift.tt/2oRsGgO.
Later I have to change my context from mycontext to test/newcontext/mycontext. After doing the same I am able to launch new URL i.e http://ift.tt/2pEwMvj but JSP is not able read jquery, CSS and Angular JS.
Below is the line of code I am 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">
Can someone please help me on this.
Aucun commentaire:
Enregistrer un commentaire