Hai,<br><br>Here i gave simple sample which uses paging concept.<br><br><b>partnermasterList.html<br></b><br><br>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br>
&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot; xml:lang=&quot;ja&quot; lang=&quot;ja&quot;&gt;<br>&lt;head&gt;<br>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;<br>
&lt;/head&gt;<br>&lt;body&gt;<br>&lt;form id=&quot;partnermasterListForm&quot;&gt;<br><b>&lt;div align=&quot;right&quot;&gt;<br>&lt;span id=&quot;isNext&quot;&gt;<br>&lt;input type=&quot;button&quot; id=&quot;doNext&quot;&gt;&lt;/input&gt;<br>
&lt;/span&gt;<br>&lt;span id=&quot;isPrevious&quot;&gt;<br>&lt;input type=&quot;button&quot; id=&quot;doPrev&quot;&gt;&lt;/input&gt;<br>&lt;/span&gt;<br>&lt;/div&gt;</b><br>&lt;table border=&quot;1&quot; width=&quot;100%&quot;&gt;<br>
&lt;tr class=&quot;heading&quot;&gt;<br>&lt;td&gt;&lt;label id=&quot;partneremployeecode&quot;/&gt;&lt;/td&gt;<br>&lt;td&gt;&lt;label id=&quot;employeenamekanji&quot;/&gt;&lt;/td&gt;<br>&lt;td&gt;&lt;label id=&quot;employeenamekana&quot;/&gt;&lt;/td&gt;<br>
&lt;td&gt;&lt;label id=&quot;company&quot;/&gt;&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;div id=&quot;partneremployeemasterItems&quot;&gt;<br>&lt;tr class=&quot;item&quot;&gt;<br>&lt;td&gt;&lt;span id=&quot;partneremployeecode&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br>
&lt;td&gt;&lt;span id=&quot;employeenamekanji&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br>&lt;td&gt;&lt;span id=&quot;employeenamekana&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br>&lt;td&gt;&lt;span id=&quot;company&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br>
&lt;/tr&gt;<br>&lt;/div&gt;<br><br>&lt;/table&gt;<br>&lt;div&gt;&lt;span id=&quot;messages&quot;&gt;&lt;/span&gt;&lt;/div&gt;<br><br>&lt;/form&gt;<br>&lt;/body&gt;&lt;/html&gt;<br><br><br><b>PartnermasterListPage.java</b><br>
<br>
public class PartnermasterListPage {<br>
<br>
&nbsp;&nbsp;&nbsp; public int partneremployeemasterIndex;<br>
&nbsp;&nbsp;&nbsp; public PagingResultBean&lt;Partnermaster&gt; partneremployeemasterItems;<br>
&nbsp;&nbsp;&nbsp; public String partneremployeecode;<br>
&nbsp;&nbsp;&nbsp; public String employeenamekanji;<br>
&nbsp;&nbsp;&nbsp; public String employeenamekana;<br>
&nbsp;&nbsp;&nbsp; public String company;<br>
&nbsp;&nbsp;&nbsp; public PartnermasterBhv partnermasterBhv;<br>
&nbsp;&nbsp;&nbsp;<b> public static int pageNumber;</b><br>
<br>
&nbsp;&nbsp;&nbsp; public Class initialize() {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pageNumber = 1;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println(&quot;INITIALIZE&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return null;<br>
&nbsp;&nbsp;&nbsp; }<br>
<br>
&nbsp;&nbsp;&nbsp; public Class prerender() {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <b>System.out.println(&quot;pageNumber&quot;+pageNumber);</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="background-color: rgb(255, 102, 102);"> //value of pageNumber is always 1.</span><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PartnermasterCB partnerCB = partnermasterBhv.newMyConditionBean();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<b> partnerCB.paging(1, pageNumber);</b><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; partneremployeemasterItems = partnermasterBhv.selectPage(partnerCB);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return null;<br>
&nbsp;&nbsp;&nbsp; }<br>
<br>
&nbsp;&nbsp;&nbsp; public Class doNext(){<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <b>pageNumber += 1;</b><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return null;<br>
&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; public Class doPrev(){<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<b> pageNumber-=1;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>return null;<br>
&nbsp;&nbsp;&nbsp; }<br>
<br>
&nbsp;&nbsp;&nbsp; public PagingResultBean&lt;Partnermaster&gt; getPartneremployeemasterItems() {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return partneremployeemasterItems;<br>
&nbsp;&nbsp;&nbsp; }<br>
<br>
&nbsp;&nbsp;&nbsp; public void setPartneremployeemasterItems(<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PagingResultBean&lt;Partnermaster&gt; partneremployeemasterItems) {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.partneremployeemasterItems = partneremployeemasterItems;<br>
&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; public boolean isPrevious() {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return partneremployeemasterItems.isExistPrePage();<br>
&nbsp;&nbsp;&nbsp; }<br>
<br>
&nbsp;&nbsp;&nbsp; public boolean isNext() {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return partneremployeemasterItems.isExistNextPage();<br>
&nbsp;&nbsp;&nbsp; }<br>
}<br><br>
<br>
I want to increase the value of pageNumber by 1 if i click doNext button,and decrease by 1 if i click doPrevious button.<br>
<br>
How can i achieve it?<br>
<br>
Thanks,<br>
$B%H%^%9!#(B<br><br><br><div class="gmail_quote">2009/5/22 Koichi Kobayashi <span dir="ltr">&lt;<a href="mailto:koichik@improvement.jp" target="_blank">koichik@improvement.jp</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">$B>.NS(B (koichik) $B$G$9!%(B<br>
<br>
Date: &nbsp; &nbsp;Fri, 22 May 2009 14:41:05 +0900<br>
<div>From: &nbsp; &nbsp;thomas &lt;<a href="mailto:jp.mcy.10@gmail.com" target="_blank">jp.mcy.10@gmail.com</a>&gt;<br>
To: &nbsp; &nbsp; &nbsp;<a href="mailto:seasar-user@ml.seasar.org" target="_blank">seasar-user@ml.seasar.org</a><br>
</div>Subject: [Seasar-user:17500] Re: [Teeda-paging]PagingResultBean&lt;?&gt; pagingResult$B$K$D$$$$$F(B<br>
<div><br>
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
<br>
</div>If you want to IE6 to use strict compliance mode<br>
rather than quirks mode, remove XML declaration.<br>
<br>
<a href="http://teeda.seasar.org/ja/extension/reference/xhtml.html" target="_blank">http://teeda.seasar.org/ja/extension/reference/xhtml.html</a><br>
<br>
<br>
&gt; &lt;form id=&quot;employeemasterListForm&quot;&gt;&lt;br/&gt;<br>
snip<br>
&gt; *&lt;te:include id=&quot;tablePages&quot; te:src=&quot;/include/pagingInc.html&quot;/&gt;* &nbsp; &nbsp; *// i<br>
<div>&gt; included pagingInc.html*<br>
&gt;<br>
&gt; &lt;/center&gt;<br>
&gt; &lt;/form&gt;<br>
<br>
</div>Because pagingInc.html also has a &lt;form&gt; tag,<br>
rendered html has nested &lt;form&gt; tag, but it is wrong.<br>
So, move &lt;te:include&gt; tag to the outside of &lt;form&gt; tag.<br>
<br>
&lt;form id=&quot;employeemasterListForm&quot;&gt;&lt;br/&gt;<br>
snip<br>
&lt;/form&gt;<br>
*&lt;te:include id=&quot;tablePages&quot; te:src=&quot;/include/pagingInc.html&quot;/&gt;* &nbsp; &nbsp; *// i<br>
included pagingInc.html*<br>
<br>
<br>
&gt;<br>
&gt; &nbsp; &nbsp; public int targetPage;<br>
snip<br>
&gt; &nbsp; &nbsp; &nbsp;* &nbsp; empCB.paging(1, targetPage);*<br>
<br>
Who sets the targetPage?<br>
<br>
Because your sample code was too big and not complete<br>
(no one sets the targetPage field), I could not understand<br>
the problem.<br>
If you can, make the sample that is a minimum to reproduction.<br>
<font color="#888888"><br>
<br>
--<br>
</font><div><div></div><div>&lt;component name=&quot;koichik&quot;&gt;<br>
 &nbsp; &nbsp;&lt;property name=&quot;fullName&quot;&gt;&quot;Koichi Kobayashi&quot;&lt;/property&gt;<br>
 &nbsp; &nbsp;&lt;property name=&quot;email&quot;&gt;&quot;<a href="mailto:koichik@improvement.jp" target="_blank">koichik@improvement.jp</a>&quot;&lt;/property&gt;<br>
 &nbsp; &nbsp;&lt;property name=&quot;blog&quot;&gt;&quot;<a href="http://d.hatena.ne.jp/koichik" target="_blank">http://d.hatena.ne.jp/koichik</a>&quot;&lt;/property&gt;<br>
&lt;/component&gt;<br>
<br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org" target="_blank">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</div></div></blockquote></div><br>