Parent Directory | Revision Log | Patch
--- lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/jsp/results.jsp 2006/05/02 18:26:31 399001 +++ lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/jsp/results.jsp 2006/05/02 18:26:46 399002 @@ -1,17 +1,16 @@ <%@ include file="common.jsp" %> -<logic:iterate scope="request" id="hit" name="nutchSearch" property="results" type="org.apache.nutch.webapp.common.SearchResultBean"> - <b><a href="<bean:write name="hit" property="url"/>"><bean:write name="hit" property="title"/></a></b><br/> +<c:forEach var="hit" items="${nutchSearch.results}"> + <b><a href="<c:out value="${hit.url}"/>"><c:out value="${hit.title}"/></a></b><br/> <tiles:insert name="more" flush="false" beanName="hit"/> - <bean:write name="hit" property="summary" filter="false"/> + <c:out value="${hit.summary}" escapeXml="false"/> <br> - <span class="url"><bean:write name="hit" property="encodedUrl"/></span> - (<a href="cached.do?<bean:write name="hit" property="id"/>"><bean:message key="search.cached"/></a>) - (<a href="explain.do?<bean:write name="hit" property="id"/>&query=<bean:write name="hit" property="urlEncodedQuery"/>"><bean:message key="search.explain"/></a>) - (<a href="anchors.do?<bean:write name="hit" property="id"/>"><bean:message key="search.anchors"/></a>) -<logic:equal name="hit" property="hasMore" value="true"> - (<a href="search.do?<bean:write name="hit" property="moreUrl"/>"><bean:message key="search.moreFrom"/> - <bean:write name="hit" property="dedupValue"/></a>) -</logic:equal> + <span class="url"><c:out value="${hit.encodedUrl}"/></span> + (<a href="cached.do?<c:out value="${hit.id}"/>"><fmt:message key="search.cached"/></a>) + (<a href="explain.do?<c:out value="${hit.id}"/>&query=<c:out value="${hit.urlEncodedQuery}"/>"><fmt:message key="search.explain"/></a>) + (<a href="anchors.do?<c:out value="${hit.id}"/>"><fmt:message key="search.anchors"/></a>) +<c:if test="${hit.hasMore==true}"> + (<a href="search.do?<c:out value="${hit.moreUrl}"/>"><fmt:message key="search.moreFrom"/> + <c:out value="${hit.dedupValue}"/></a>) +</c:if> <br/><br/> -</logic:iterate> -</div> +</c:forEach>
infrastructure at apache.org | ViewVC Help |
Powered by ViewVC 1.1.26 |