So i have my main JSP page which includes a number of sub-JSP pages hierarchically.

Some of these sub-JSP pages have scripts and styles that need to be included along with them, but i want the styles and the script tags to be in the head of the document.

Is this possible without using JavaScript? (My alternative is to dynamically include the pages using JavaScript but I want my site to work when the client has it off.)

I am looking for a set of methods within the framework or a design pattern that will help me.

Any insight is greatly appreciated!