In a Java EE webapp using servlets and freemarker as view technology, i can't seem to include css files for proper browser render.
I'm only using .ftl for view and i path for css files is inside resources/css, being resources inside 'webapp'.
Tried with straight html <link...
and using JSTL(not fancy)..but page is rendered without css.
Where i'm wrong at?
Thanks
Asked
Active
Viewed 244 times
0

Aleksandr M
- 24,264
- 12
- 69
- 143

Arthur Portas
- 129
- 1
- 2
- 13
-
Show what you have tried. – Aleksandr M Mar 28 '14 at 11:32
-
@aleksandr-m and . The second works if using JSP's, but i prefer sticking only with freemarker. – Arthur Portas Mar 28 '14 at 22:20
1 Answers
0
Have you tried?
<link href="./resources/css/bootstrap.min.css" rel="stylesheet">
Or you can try using url path to CSS, maybe putting it to some properties file and using it as prefix for each CSS include.

Pavel Polivka
- 858
- 4
- 22