AnsweredAssumed Answered

Sort Web Content

Question asked by miltondm on May 25, 2009
Hi, i work with the sample site of Alfresco. A JSP page generate a list with the HTML's in the folder media\releases\content. I need sort the list by date. This is the JSP code , please help me, thanks.  :D


<c:forEach items="${pr:getPressReleases(pageContext)}" var="pressRelease" begin="0" end="100">
                      <h2 class="headline">
                        <jsp:element name="a">
                          <jsp:attribute name="href">
                            <c:out value="${pressRelease.href}"/>
                          </jsp:attribute>
                          <jsp:body>
                            <c:out value="${pressRelease.title}"/>
                          </jsp:body>
                        </jsp:element>
                      </h2>
                      <p class="date">
                        <fmt:formatDate value="${pressRelease.launchDate}" dateStyle="long"/>
                      </p>
                      <p class="abstract">
                        <c:out value="${pressRelease.abstract}"/>
                      </p>
                    </c:forEach>

Outcomes