Hi again!

I have the following block of code:

 Hashtable result = new Hashtable();

        while( stuff.hasMoreElements() ) {
            String key = (String) stuff.nextElement();
            log.info("Key -> " + key);
            ArrayList array = (ArrayList) files.get(key);
            log.info("Array -> " + array.toString());
            keysList.add(key);
            Iterator it = array.iterator();
            while (it.hasNext()) {
                String file = (String) it.next();
                boolean okSyntax = cmoService.checkSyntax(file);
                if (!okSyntax) {
                    log.info("FILE KO ----> " + file);
                    koFiles.add(file);
                    //info = key + " --------------> " + file;
                    info = file;
                    log.info("INFO -> " + info);
                    infoList.add(info);
                }
            }
            result.put(key, new ArrayList(koFiles));
            koFiles.clear();
        }

        Iterator it = infoList.iterator();
        while (it.hasNext()){
            log.info("InfoList Element -> " + it.next());
        }

        request.setAttribute("keysList", keysList);
        request.setAttribute("infoList", infoList);
        request.setAttribute("resultTable", result);
        request.setAttribute("koList", koFiles);

        if(!result.isEmpty()){
            request.setAttribute("show", Boolean.TRUE);
        }


And i have this on the JSP side...


<c:if test="${show}">
    <c:forEach var="key" items="${keysList}">
        <display:table name="resultTable" defaultorder="ascending"
cellpadding="4" export="true" uid="resulttable"
            sort="list" pagesize="${
sessionScope.configuration.displayPageSize}" class="displaytag" requestURI="
checkCompliance.do">
           <display:column title="${key}" value="${
sessionScope.list.value.attribute(resultTable).item[1]}"></display:column>

        </display:table>
    </c:forEach>
</c:if>


But it won't work :(

What can i do to make it work?
I want to display a 2 column with key in one column and the info in another
column.


Please help.

Cumps.

-- 
----------------------------------

Marco Freire
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to