please give me solution how to display next page after 20 records ? 1 Answer(s) 5 years and 3 months ago
Posted in : JSP-Servlet
Java Servlet Paging control example
View Answers
February 25, 2008 at 6:06 PM
here i have attached one example code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <LINK href="PCMcss.css" type=text/css rel=stylesheet> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <META name="GENERATOR" content="IBM WebSphere Studio"> <TITLE></TITLE> </HEAD> <BODY >
<SCRIPT LANGUAGE="JavaScript">
function validate() { for(j=0;j<30;j++){ var txtObject=document.getElementById("volume"+j); if(txtObject!=null){ if(!isInteger(txtObject.value)){ alert("invlaide data formate only the number will be accept"); txtObject.value=""; txtObject.focus(); return; } } } }
function isInteger(s) { var i; for (i = 0; i < s.length; i++) { var c = s.charAt(i); if (((c < "0") || (c > "9"))) return false; }