I'm building a web application that has a number of pages.
index.html
is the main page. which has a few <a>
tabs that each one links to a different Servlet
.
now, i have a general CSS design to my web app.
i want that each web page that is received from the Servlet
will have that design.
the first idea i had is to add the CSS code to the top and bottom of the Servlet's
response
but i think is code replication.
the next idea i had was to receive the Servlet's
response with ajax, into a single div that holds the new page's content.
thank you