Using “Master Pages” in JAVA

Java "Master Pages"

As all may know, one of the main disadvantage of Java over C# programming using Visual Studio, is the use of Master Pages. Master Pages allow any developer to create the desired layout of the site. Any page created given that master page will inherit that same design and simply add the content to it. Now, in JAVA this is not possible. This brings along the redundant amount of data replicated on each page within a website. It is very time consuming since a change in design requires a change in all pages.

A tool very useful which may be the closest thing to Master Pages, is the use of Includes in JSP pages. The Include tag allows any page to be inserted into a page. Therefore lets say we would like to create this page:

Continue reading