I am completely new to java web applications and now I am trying to make one.
I use tomcat 7 and after building the project with maven, I deploy it into tomcat.
My page (welcome.jsp
) uses bootstrap glyphicons:
...
<link rel="stylesheet" href="lib/bootstrap-3.3.1/css/bootstrap.min.css">
<script src="lib/jquery-2.1.3.min.js"></script>
<script src="lib/bootstrap-3.3.1/js/bootstrap.min.js"></script>
...
<body>
...
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="glyphicon glyphicon-chevron-right"></span>
...
</body>
And the problem is rather weird: when I open welcome.jsp
in Google Chrome directly (Ctrl+O
), then everything works fine. BUT when I deploy it into tomcat and open the page, I see strange unicode characters instead of glyphicons.
The rest of the page (including other components using bootstrap) shows up perfectly, but bootstrap glyphicons and fonts do not work!
Any help will be appreciated.