I have a JSP file called header.jsp which looks like this.
<%@ taglib prefix="c" uri="/c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html>
<head>
...
</head>
<body>
I then have a content fragment which looks like this.
<jsp:include page="../header.jsp" />
My Page Content Here.
If that content fragment has certain dependencies like CSS and Javascript includes which have to go inside the head tag, how can I include them there? Each fragment might have its own set of CSS and Javascript files which are different, and I don't want to include every single possible CSS and Javascript file I might use into the header for every single page. What's the proper way to handle this? I'm a dumb intern at a startup, so forgive my ignorance. Thank you in advanced.