I have a website that looks a certain way. I'd like to be able to create a new site that uses the same code but only change it's appearance. Instead of having two sets of code, i would rather create a directory called lets say "templates". Inside that then have directories using the template name for the folder name. Inside that have common named files to "include" in all my .jsp pages.
Templates
---->blueTemplate
-------->header.jsp
-------->footer.jsp
-------->temp.css
---->redTemplate
-------->header.jsp
-------->footer.jsp
-------->temp.css
I've tried using include but ${tid} will not allow for a "static" include
I've also tried using import but the .jsp file is not processed, it's just imported into the page
I'm sure there is a simple solution but i've gone completely brain dead.
Any suggestions?
Templates
---->blueTemplate
-------->header.jsp
-------->footer.jsp
-------->temp.css
---->redTemplate
-------->header.jsp
-------->footer.jsp
-------->temp.css
I've tried using include but ${tid} will not allow for a "static" include
Code:
<%@include page="/templates/${tid}/header.jsp"/>
I've also tried using import but the .jsp file is not processed, it's just imported into the page
Code:
<c:import url="/templates/${tid}/header.jsp" />
I'm sure there is a simple solution but i've gone completely brain dead.
Any suggestions?