if (search.equals("Search counter")) {
List<DataBase> r = cr.readProteinByCounter(counter);
request.setAttribute("results", r);
- System.out.println ("Search counter: " + r.size() + " proteins found");
+ // System.out.println ("Search counter: " + r.size() + " proteins found");
} else {
List<DataBase> r = cr.readProteins(prot, flag);
request.setAttribute("results", r);
- System.out.println ("Search sequence: " + r.size() + " proteins found");
+ // System.out.println ("Search sequence: " + r.size() + " proteins found");
}
final long endTime = System.currentTimeMillis();
request.setAttribute("timeExecution", (endTime - startTime));
<%@page import="java.util.ArrayList"%>
+<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:forEach items="${res.subProt}" var="seq">
<c:choose>
<c:when test="${fn:contains(seq, prot)}">
- <span style="background-color: blue">${seq}</span>
- </c:when>
- <c:otherwise>${seq}</c:otherwise>
+ <span style="background-color: blue">${seq}</span></c:when><c:otherwise>${seq}</c:otherwise>
</c:choose>
</c:forEach>
</td>