You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by mr...@apache.org on 2007/06/04 11:23:11 UTC
svn commit: r544098 -
/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/search.jsp
Author: mreutegg
Date: Mon Jun 4 02:23:09 2007
New Revision: 544098
URL: http://svn.apache.org/viewvc?view=rev&rev=544098
Log:
JCR-946: Create a sample search page
- previous link is off by one
Modified:
jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/search.jsp
Modified: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/search.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/search.jsp?view=diff&rev=544098&r1=544097&r2=544098
==============================================================================
--- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/search.jsp (original)
+++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/search.jsp Mon Jun 4 02:23:09 2007
@@ -246,7 +246,7 @@
<td valign=bottom nowrap><font size=-1>Result Page: </font>
<%
if (currentPageIndex != ((Long) indexes.get(0)).longValue()) {
- %><td nowrap align=right class=b><a href=search.jsp?q=<%= q %>&start=<%= currentPageIndex * 10 %>><div id=np></div>Previous</a><%
+ %><td nowrap align=right class=b><a href=search.jsp?q=<%= q %>&start=<%= (currentPageIndex - 1) * 10 %>><div id=np></div>Previous</a><%
} else {
%><td nowrap ><div id=nf></div><%
}