<%@ page import="org.apache.log4j.Logger" %>
<%@ page import="ro.emid.common.db.AccessDB" %>

<% final Logger LOG = Logger.getLogger("checkReclamatiiNoi_jsp"); %>
<respmesg>
<% try{ %>
    <%
        //raspunsuri posibile JSON / mesaj

        final String conditionReclamatii = (String) session.getAttribute("conditionReclamatii");
        final int countShown = ((Integer) session.getAttribute("countReclamatiiVizualizate")).intValue();
        final int countCurrent = AccessDB.getCountIndexed("reclamatii", conditionReclamatii, "/*+ INDEX(r CHECKRECLAMATIINOI_IDX) */").intValue();
        final int diferenta =countCurrent - countShown;

        LOG.debug("Count shown=" + countShown);
        LOG.debug("Count current=" + countCurrent);
    %>
        {
            diferentaCountReclamatii : <%=diferenta%>
        }
<%}catch( Exception t){%>
    <%=t.getMessage()%>
<%}%>
</respmesg>


