This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing Paging

 
annu joseph
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all,
i want to implement paging for my web application. Iam using Struts/jsp.
I read somewhere that for doin so we need to include pager-taglib.tld in our web- inf folder and include the following code:
<%@ taglib uri="/WEB-INF/pager-taglib.tld" prefix="pg" %> in our jsp page.
I have included the .tld file in WEB_INF folder, but the moment i add <%@ taglib uri="/WEB-INF/pager-taglib.tld" prefix="pg" %>
in my jsp page , it shows an error: failed to load or instantiate TagExtraInfoclass: com.jsptags.navigation.pager.PagerTagExtraInfo

Whats the reason ?please help
 
Keerthi Pandey
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there is a colision of jar libraries and some problem in the jar files named servlet.jar.

I suggest you do the following:
Make a clean install of Jboss and deploy struts-blank.war file from the Struts zip file. Do not copy any jar files to the default/lib directory. If you'll be able to run the app, then try to deploy the application you're trying to migrate.
 
annu joseph
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no iam not migrating any application...
The issue is solved by adding the corresponding jar file..But now it throws a servlet exception like
javax.servlet.jsp.JspException: ServletException in '/Contents/Devices.jsp': com.jsptags.navigation.pager.PagerTagExtraInfo

Devices.jsp is my jsp page
please help
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like the jar is not loaded properly
 
annu joseph
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi thanks the issue is solved by doing a clean build. Can someone tell me how to implement paging using pager taglib. This is urgent. Please show it with examples
Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic