I think you would have to have 3 jsps, one which is main jsp, will have
header, footer, and body includes. If you use tiles, like
<tiles:put name="header" value="/footer.jsp" />
<tiles:put name="header" value="/header.jsp" />
<tiles:put name="header" value="/body.jsp" />
in the body jsp, you will have all javascripts, styles, etc. underneath this page, you should have the tabs and content jsp include.