This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hi! i would like someone to help me with paging in jsp.my code uses multiple queries and the result is that when i press the next button i get a java null pointer exception. my code is as follows:Please help,matter pretty urgent <%@ page language ="java" import=" java.sql.* " %> <% String a=request.getParameter("a"); String b=request.getParameter("b"); String c=request.getParameter("c"); String d=request.getParameter("d"); String e=request.getParameter("e"); String f=request.getParameter("f"); String g=request.getParameter("g"); String h=request.getParameter("h"); String i=request.getParameter("i");
String point=request.getParameter("point"); int next,previous; int pointer=0; int count=0; int maxrecords=5;
Welcome to the Ranch arvindmpai! You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it. I'd also like to suggest that when posting code to the forums, that you use the UBB code tags. That way, the formatting of your code will be preserved. Also, this very subject, the paging of large datasets, has been discussed a number of times in these forums. You might find some useful hints by searching this and the Servlets forum for information on paging. Thanks! bear JSP Bartender [ August 25, 2003: Message edited by: Bear Bibeault ]