Apache Nutch is an extensible and scalable web crawler
add base definition for allowing layout (view) and logic (controller class) to be changed independently
Sami Sirene30e435b9249
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/decorator.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/decorator.jspnew file mode 100644index 000000000..d429578f0--- /dev/null+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/decorator.jsp@@ -0,0 +1,3 @@+<%@ include file="common.jsp"%>+<tiles:useAttribute name="decorator"/>+<c:import url="${decorator}"/>diff --git a/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml b/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xmlindex 62b384c48..a71fe7685 100644--- a/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml+++ b/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml@@ -125,5 +125,15 @@<definition name="preferencesSavePage" extends="preferencesPage"><put name="action" value="save" /></definition>-++ <!--+ Decorated definition can be used to split the logic and ui configuration apart so that+ one at a time can be changed++ The layout (view) can be selected with attribute named "decorator"+ -->+ <definition name="decoratedDefinition" path="/WEB-INF/jsp/decorator.jsp">+ <put name="decorator" value="/WEB-INF/jsp/footer.jsp"/>+ </definition>+</tiles-definitions>\ No newline at end of file