When I am trying to access my JSP page, CSS and JS are not loading. I am using below syntax for the same:
<!DOCTYPE html>
<%@page import="java.util.ArrayList"%>
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href=WebContent/CSS/example.css />
<link rel="stylesheet" type="text/css" href=WebContent/CSS/bootstrap.min.css />
<title>Example</title>
</head>
<body>
<jsp:include page="header.jsp" />
<jsp:include page="Footer.jsp" />
<script src="WebContent/js/bootstrap.min.js"></script>
<script src="WebContent/js/jquery.min.js"></script>
</body>
My css is placed under WebContent -> CSS folder.
I already tried using context path using ${pageContext.request.contextPath}
I also tried using "" value in href tag, but of no use.
I am stuck in this issue from last two days... :( please help
http://localhost:12345/yourpath/WebContent/CSS/example.css