<%-- Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation --%> <%@ include file="header.jsp"%> <% SearchData data = new SearchData(application, request, response); // After each search we preserve the scope (working set), if any // this need to be at the beginning, otherwise cookie is not written if (data.isSearchRequest()) data.saveScope(); WebappPreferences prefs = data.getPrefs(); %> <%=ServletResources.getString("SearchResults", request)%> <% if (!data.isSearchRequest()) { out.write(ServletResources.getString("doSearch", request)); } else if (data.getQueryExceptionMessage()!=null) { out.write(data.getQueryExceptionMessage()); } else if (data.isProgressRequest()) { %>
<%=ServletResources.getString("Indexing", request)%>
<%=data.getIndexedPercentage()%>% <%=ServletResources.getString("complete", request)%>

<%=ServletResources.getString("IndexingPleaseWait", request)%>
<% return; } else if (data.getResultsCount() == 0){ out.write(ServletResources.getString("Nothing_found", request)); } else { %> <% for (int topic = 0; topic < data.getResultsCount(); topic++) { if(data.isActivityFiltering() && !data.isEnabled(topic)){ continue; } %> <% String desc = data.getTopicDescription(topic); if (desc!=null) { %> <% } } %>
<% boolean isPotentialHit = data.isPotentialHit(topic); if (isPotentialHit) { %> <% } else { %> <% } %> <% String label = null; if (isPotentialHit) { label = ServletResources.getString("PotentialHit", data.getTopicLabel(topic), request); } else { label = data.getTopicLabel(topic); } %> <%=label%>
<%=desc%>
<% } %>