Apache Nutch is an extensible and scalable web crawler
add simple preferences page
Sami Sirena5a2b9e26a21
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources.propertiesindex 25be122bb..923336b1e 100644--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources.properties+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources.properties@@ -60,4 +60,34 @@ text.note=This is the plain text version of the file: <a href="{0}">{0}</a>.text.noText=<i>Sorry, no plain text version is available.</i>#title of help page-help.title=help\ No newline at end of file+help.title=help++#title of preferences page+preferences.title=preferences++#interface languages+preferences.ui.language=Interface language+preferences.ui.language.info=+ca=Catalan+de=German+en=English+es=Spanish+fi=Finnish+fr=French+hu=Hungarian+ms=Malay+nl=Dutch+pl=Polish+pt=Portuguese+sh=Serbo-Croatian+sr=Serbian+sv=Swedish+th=Thai+zh=Chinese++#number of results+preferences.numResults=Number of Results+preferences.numResults.info=++#text on save button+preferences.submit=Save and return to search\ No newline at end of filediff --git a/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml b/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xmlindex 6c7591b21..3b69aee9e 100644--- a/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml+++ b/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml@@ -55,11 +55,44 @@<put name="basePage" value="/about.html" /></definition><!-- No Results -->- <definition name="noResults" path="/WEB-INF/jsp/noResults.jsp"/>-+ <definition name="noResults" path="/WEB-INF/jsp/noResults.jsp" /><!-- i18n component --><definition name="i18nComponent" path="/WEB-INF/jsp/i18ncontent.jsp"- controllerClass="org.apache.nutch.webapp.controller.I18NPageController">+ controllerClass="org.apache.nutch.webapp.controller.I18NPageController">+ </definition>++ <!-- Preferences -->+ <definition name="preferencesPage" extends=".layout"+ controllerClass="org.apache.nutch.webapp.controller.PreferencesController">+ <put name="title" value="preferences.title" />+ <put name="action" value="edit" />+ <put name="pageBody" value="/WEB-INF/jsp/preferences.jsp" />+ <putList name="languages">+ <add value="ca"/>+ <add value="de"/>+ <add value="es"/>+ <add value="fi"/>+ <add value="fr"/>+ <add value="hu"/>+ <add value="ms"/>+ <add value="nl"/>+ <add value="pl"/>+ <add value="pt"/>+ <add value="sh"/>+ <add value="sr"/>+ <add value="sv"/>+ <add value="th"/>+ <add value="zh"/>+ </putList>+ <putList name="hitsPerPage">+ <add value="10"/>+ <add value="20"/>+ <add value="50"/>+ </putList></definition>+ <definition name="preferencesSavePage" extends="preferencesPage">+ <put name="action" value="save" />+ </definition>+</tiles-definitions>\ No newline at end of file