PROT-7 fixed a problem with reportProteinSequence
authorNatasha Sherstneva <n.shertneva@gmail.com>
Tue, 26 Nov 2013 09:24:09 +0000 (09:24 +0000)
committerNatasha Sherstneva <n.shertneva@gmail.com>
Tue, 26 Nov 2013 09:24:09 +0000 (09:24 +0000)
server/compbio/listeners/ServletSequenceProtein.java
website/ReportSequenceProtein.jsp

index ef7353f..84af1b8 100644 (file)
@@ -35,11 +35,11 @@ public class ServletSequenceProtein extends HttpServlet {
                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));
index b7632d7..634cd33 100644 (file)
@@ -1,4 +1,5 @@
 <%@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"%>
@@ -66,9 +67,7 @@
                                                                <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>