I have read this article about Tiles, but I just can't understand the use of it.
Here it creates the layout :
<%@ taglib uri="/WEB-INF/struts-html.
<%@ taglib uri="/WEB-INF/struts-bean.
<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles"%>
<body topmargin="0" leftmargin="0" bgcolor="#FFFFFF">
Then the JSP index.jsp using the layout :
<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
<tiles:put name="header" value="/common/header.jsp"
<tiles:put name="menubar" value="/common/menubar.jsp
<tiles:put name="body-content" value="/index-body.jsp" />
<tiles:put name="copyright" value="/common/copyright.j
It says the following about the advantage of the layout file :
>> This one file can then control the layout of multiple pages.
>> If we need to modify the layout of the site,
>> this is the only file we need to change--that's the real power of using a template-based approach.
But I don't understand how I can modify the layout of the site with just that file !!
Layout is in CSS, I use include of jsp in my website
>> Although the include mechanism is a step in the right direction because it does reduce redundancy
>> (imagine if we included the copyright content in every page!),
>> it's still less efficient than a template-based approach.