Author: siren
Date: Tue May  2 11:27:58 2006
New Revision: 399003

URL: http://svn.apache.org/viewcvs?rev=399003&view=rev
Log:
add simple preferences page

Modified:
    
lucene/nutch/trunk/contrib/web2/src/main/resources/org/nutch/jsp/resources.properties
    lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml

Modified: 
lucene/nutch/trunk/contrib/web2/src/main/resources/org/nutch/jsp/resources.properties
URL: 
http://svn.apache.org/viewcvs/lucene/nutch/trunk/contrib/web2/src/main/resources/org/nutch/jsp/resources.properties?rev=399003&r1=399002&r2=399003&view=diff
==============================================================================
--- 
lucene/nutch/trunk/contrib/web2/src/main/resources/org/nutch/jsp/resources.properties
 (original)
+++ 
lucene/nutch/trunk/contrib/web2/src/main/resources/org/nutch/jsp/resources.properties
 Tue May  2 11:27:58 2006
@@ -60,4 +60,34 @@
 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 file

Modified: lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml
URL: 
http://svn.apache.org/viewcvs/lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml?rev=399003&r1=399002&r2=399003&view=diff
==============================================================================
--- lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml 
(original)
+++ lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml Tue 
May  2 11:27:58 2006
@@ -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>




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-cvs mailing list
Nutch-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nutch-cvs

Reply via email to