I am getting the "http status 404 - the requested resource is not available" error for my template.css file. From my research i have figured that it is a problem of referencing.
Because of the error, none of the styling is being applied to my welcome.xhtml.
However, i have checked and rechecked and seem to be finding no error. Please help.
here is my Welcome.xhtml page
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<title>TODO supply a title</title>
<meta name="viewport" content="width=device-width"/>
<link rel="stylesheet" type="text/css" href="../../CSS/templateCSS.css"/>
</h:head>
<h:body>
<!-- Rest of the code -->
</h:body>
</html>
I am quite sure that the problem lies in href="../../CSS/templateCSS.css" this line.
As i am dont have enough "reputation" i cant upload photos.
Updated i have changed the reference to:
It is still not working. The hierarchy of files is:
- Web Pages Folder
- CSS Folder
- templateCSS.css
- Webpages Folder
- templates Folder
- Welcome.xhtml
- templates Folder
- CSS Folder