I've got some problems with finding the right way to ask this question. But I hope you understand the problem and are able to help.
I've set up a really basic Maven Web-App, using jsp's.
At the moment I have 2 pages.
- Index.jsp (Starting page with loginbutton)
- Home.jsp (Home page after login)
I also have an header.jsp
and a footer.jsp
.
Both the index.jsp and the home.jsp use the header and footer.
In the header is a link to a stylesheet
.
When I run the project.
Both index.jsp
and home.jsp
use the header (they've got the right tag)
But only index.jsp
uses the stylesheet
.
Why doesn't home.jsp
use the stylesheet
, even when the header is included correctly.
Here are some images of the code to help you understand the situation.
The Project Structure
Index.jsp with the include of header/footer.jsp
Home.jsp with the same include of header/footer.jsp, only the path is different. But they load correctly, except for the css.
And here is the Header.jsp, with the link to the stylesheet
If you need more info, I'll be happy to give it.