How can I break a single page jsp file into manageable code blocks while keeping all the code in a single file? Equivalent to breaking a class up into methods but keeping it all in one file. For example:
<body>
<div id="main_container">
# include header
# include search form
# include search results table
# include footer
</div>
</body>
# header code ################
<ul id="main_menu">
<li>home</li>
.
.
</ul>
# Search Form Code ################
<form id="search_form">
<input id="customer_name>
.
.
</form>
I want to break the html up into manageable code block to improve readability and make version control easier. I also want to maintain one jsp per page with only common code being moved out into separate jsp files.