I've this simple index.html
<html>
<head>
<title>Title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<script>
alert("Hello World");
</script>
It's
<script src="/js/date.js"></script>
</body>
</html>
which should recall date.js
document.write(new Date());
But unfortunately the date is not printed by the javascript.
- What's wrong?
Note that if I put date.js
in the same folder of index.html
(that isWEB-INF
), if I write <script src="date.js"></script>
it works properly.
EDIT: This is the Project's hierarchy: Project's hierarchy and this is the output: Bad output