%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %> <%@ page import="com.ecyrd.jspwiki.*" %> <%@ page import="java.util.Collection" %> <%@ page import="java.net.URLEncoder" %> <%-- FIXME: Get rid of the scriptlets. --%> <% String query = (String)pageContext.getAttribute( "query", PageContext.REQUEST_SCOPE ); if( query == null ) query = ""; String start = (String)request.getParameter("start"); int startVal = 0; try { startVal = Integer.parseInt(start); } catch(Exception e) {} if( startVal < 0 ) startVal = 0; int endVal = startVal + 20; Collection list = (Collection)pageContext.getAttribute( "searchresults", PageContext.REQUEST_SCOPE ); int prevSize = 0, nextSize = 0; if( list != null ) { if( endVal > list.size() ) endVal = list.size(); prevSize = Math.max( startVal, 20 ); nextSize = Math.min(list.size() - endVal, 20); } %>
Found
Page | Score |
---|---|
"); out.println(" ");
for (int i = 0; i < contexts.length; i++) {
if (i > 0)
out.println(" ... ");
out.println(contexts[i]);
}
out.println(" ");
}
%>
|
<%=searchref.getScore()%> |
No results |
<% if( startVal > 0 ) { %>
Try this same search on Google!
Enter your query here: