Java:
Public Resultpage getdeptlist (intintthrows Exception { String hql= "from Zfoaorgan a where upper (A.ISXZFW) = ' Y ' and a.orgflag=0 and A.orglayer=1 Order by A.orgid "; return New object[]{}, page, pagerows); }
Interface must be a resultpage return value
Resultpage tmp = consultationservice.getdeptlist (getpage (), getpagerows ()); SetMaxPage (Tmp.getmaxpage ()); Must write = Tmp.getresultlist (); Must write
Create a resultpage tmp; the variable then calls the interface above the Resultpage return value
SetMaxPage (Tmp.getmaxpage ()); Must-write
Deptlist = Tmp.getresultlist (); Must-write
If you paged 20 rows, but only 4 rows, then there must be a JSP code problem, there may be 2 table.
Jsp
class class= "Disabled" > < </span><% @include file= ". /include/pagination.inc "%></div>
Write in a div with table but write it out of the table.
zf-page back Code