javascript - Page Pagination -


I would like my help to tell me the easiest way to page page in my JSP.

My code is below, which is listing values ​​in a generated table:

  & lt;% while (rs.next ()) {%> gt; ; & Lt; A href = "cir_view.jsp? Cir_id = & lt;% = rs.getString (" cir_id ")%>" Title = "see" onClick = "return popup (this, 'report')" & gt; & Lt;% = rs.getString ("cir_id")%> & Lt; / A & gt; & Lt; / Span & gt; & Lt; / TD & gt; & Lt; Td width = "39%" & gt; & Lt; Span style = "font-size: 8pt" & gt; & Lt;% = rs.getString ("organization_name")%> & Lt; / Span & gt; & Lt; / Td> & Lt; Td width = "26%" align = "left" & gt; & Lt; Span style = "font-size: 8pt" & gt; & Lt;% = rs.getString ("Requester")% & gt; & Lt; / Span & gt; & Lt; / TD & gt; & Lt; Td width = "10%" align = "left" & gt; & Lt; Span style = "font-size: 8pt" & gt; & Lt;% = rs.getString ("CREATED_DATE")% & gt; & Lt; / Span & gt; & Lt; / TD & gt; & Lt; Td width = "3%" align = "left" & gt; & Lt; A href = "cir_delete.jsp? Cir_id = & lt;% = rs.getString (" cir_id ")%>" Class = "ask" onclick = "target = '_ blank';" & Gt; & Lt; IMG SRC = "12.png" ALT = "Delete" BORDER = "0" & ​​gt; & Lt; / A & gt; & Lt; / Td> & Lt; Td width = "3%" align = "left" & gt; & Lt; A href = "cir_update.jsp? Cir_id = & lt;% = rs.getString (" cir_id ")%>" OnClick = "return popup (this, 'report')" & gt; & Lt; IMG SRC = "28.png" ALT = "edit" BORDER = "0" & ​​gt; & Lt; / A & gt; & Lt; / Td> & Lt; / Div & gt; & Lt; / TR & gt; & Lt;%} rs.close (); & Gt%; & Lt; / TD & gt;  

will be a good way to start:

  • Pass the Page Number and Page Size Parameters in the servlet
  • Start your servlet with Page_ Size Rows (Page_number-1) * Page_Is
< / Div>

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -