<%@ page extends="oneit.servlets.jsp.FormJSP" %>

<%@ include file="/setuprequest.jsp" %>
<%@ include file="inc/stdimports.jsp" %>
<%@ include file="../../../editor/stdimports.jsp" %>

<%! protected String getName (ServletConfig config) { return "test_imap_jsp"; } %>

<%
    ORMProcessState     process     =   (ORMProcessState) ProcessDecorator.getDefaultProcess(request);
    ObjectTransaction   objTran     =   process.getTransaction ();

    request.setAttribute("oneit.pageFormDetails", CollectionUtils.mapEntry("name", "test_imap").mapEntry("enctype", "multipart/form-data").toMap());
    request.setAttribute("oneit.pageHeaderTitle", "Test IMAP");
    
    List<String>    visitedNodes    =   (List<String>) request.getAttribute("VisitedNodes");
    
    request.setAttribute("VisitedNodes", null);
%>
<%@include file="/editor/header.jsp" %>
    
<%
    if(visitedNodes != null)
    {
%>
        <h3>Folders Visited</h3>
<%
        for(String node : visitedNodes)
        {
%>
            <oneit:toString value="<%= node%>" mode="EscapeHTML"/> <br/>
<%
        }
    }
%>
    
    <div    class="bottomButtons"   hidden="true">
        
        <oneit:button   value="Run" name="runEmailFetcher"  cssClass="BUTTON_PRIMARY"      
                        requestAttribs="<%= CollectionUtils.EMPTY_MAP %>"/>
        
    </div>
    
<%@include file="/editor/footer.jsp" %>