In my web application I got Header.jsp file which contains default header contents. Im including it in all other pages using jsp:include tag inside body tag of each individual p
Here is an idea you could try
In your main head do this
Notice I have left off the end head tag. Then in all your files you have to either close the head tag, or add extra header stuff and then close your head tag eg
Main page
.....
other HTML contents specific to main page
.....
As for your page title you can run a little php to determine what page you are on