My servlet generates an HTML page using page templates. In this page, I have a path to a CSS file, but I could not find the right path. The structure of my project looks like this:
root
- src
-- *servlets*
- web
-- WEB-INF
--- CSS
---- style.css
--- template
---- basic.html
The basic.html template page contains <link rel="stylesheet" href="style.css">
. What do I need to write in href
for using my CSS file?
My project was created in IntelliJ
and working on Glassfish 4
.