Hello All,
I am a new member of the Oracle community. Please advise me regarding the following:
I prepared a small application PaginationJstl - link (https://drive.google.com/open?id=0ByBEAqoli3KpUm5...
It works perfectly fine. Does not include display tag now-workable version of code.
I made the following changes after which code did not work.
To add pagination to the table:--
a.) I included jar files required to support display tag in jsp:
1.) commons-beanutils-1.7.0
2.) commons-lang-2.3
3.) commons-collections-3.1
4.) displaytag-1.2
5.) displaytag-export-poi-1.2
6.) itext-1.3
7.) jcl104-over-slf4j-1.4.2
8.) log4j-1.2.13
9.) poi-3.2-FINAL
10.) slf4j-api-1.4.2
11.) slf4j-log4j12-1.4.2
12.) standard-1.0.6
I added these in WEB-INF/lib folder.
b.) I added code in the EmpDetails.jsp file. I tried to use Jstl to fetch the contents within display table-:
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:display="urn:jsptld:http://displaytag.sf.net"
xmlns:layout="urn:jsptagdir:/WEB-INF/tags/layout">
<c:forEach var="type" items="${empDetails}" >
<c:forEach items="${type}" var="types" varStatus="loopCount" >
<display:table id="data" name="${types}" pagesize="10" export="true" requestURI="EmpDetails.jsp">
<display:column>
<c:out value="${types.value}" />
</display:column>
</display:table>
</c:forEach>
</c:forEach>
c.) Then used following tag library:-
<%@ taglib prefix="display" uri="http://displaytag.sf.net/el"%>
d.) After this I received the SEVERE Error listenerStart. I then tried to use filters seeking help from google. Yet the same error.
e.) Thereafter I reverted the changes made but the same error is encountered.
f.) For time being I have switched back to previous code PaginationJstl attached herewith before introduction of displaytag.
Thanks in advance,
Chandan Sharma.