In dynamic Web Project I have – default.html page
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="./Styles/Site.css" type="text/css" />
<title>Create new customer</title>
</head>
<body>
<a href="\WEB-INF\forms\CustomerMenu.jsp">Test new</a>
</body>
</html>
I have also the CustomerMenu.jsp page –
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="./Styles/Site.css" type="text/css" />
<title>Create new customer</title>
</head>
<body>
// Table ..
</body>
</html>
The pages hierarchy is as the snapshot –

When I press on the link in default.html I get error message
- HTTP Status 404 -
--------------------------------------------------------------------------------
type Status report
message
description The requested resource () is not available.
Files in
/WEB-INFfolder are not publicly accessible without using a front controller servlet or a specific tag like<jsp:include>which does either aRequestDispatcher#forward()orRequestDispatcher#include().If you need to access a JSP file directly by URL, then you should not be placing the JSP in
/WEB-INFfolder. Put it outside the/WEB-INFfolderand fix the link accordingly.