Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I would recommend using the open-source <a href="http://www.displaytag.org/1.2/" rel="nofollow">Display tag library</a>. It provides the ability to implement pagination, internal or external sorting, decorators, and much more via the <a href="http://www.displaytag.org/1.2/displaytag/tagreference.html#display%3atable" rel="nofollow">display:table attributes</a>. It also eliminates the need for a lot of custom scriptlet code inside your JSPs.</p> <p>Without getting too deep into your specific use case, here is a start to how you might apply the library to your needs:</p> <pre><code>&lt;display:table name="analysisList" defaultsort="1" pagesize="10" sort="list" uid="element"&gt; &lt;display:column title="ID" sortable="true" property="id" /&gt; &lt;display:column title="Date Submitted" sortable="true" property="date_created" /&gt; &lt;display:column title="Notes" sortable="true"&gt; &lt;c:out value="${fn:replace(element.notes, "**-3**", "")}" /&gt; &lt;/display:column&gt; &lt;display:column title="Status" sortable="true"&gt; &lt;c:choose&gt; &lt;c:when test="${element.id eq -1}"&gt; ... &lt;/c:when&gt; &lt;c:when test="${element.xml_path eq null and fn:contains(element.notes, "-3")}"&gt; ... &lt;/c:when&gt; &lt;c:when test="${element.xml_path eq null}"&gt; ... &lt;/c:when&gt; &lt;c:otherwise&gt; Report attached &lt;/c:otherwise&gt; &lt;/c:choose&gt; &lt;display:column title="Similarity Search" sortable="true"&gt; ... similar idea as above ... &lt;/display:column&gt; &lt;/display:table&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload