yes, have any clue? public class Page { private int num; private int size = Constant.PAGE_SIZE; private int volume;
private int index;// current page public Page(){ } public int getIndex() { return this.index >= 0 ? this.index : 0; } public void setIndex(int index) { this.index = index >= 0 && index <= this.getNum() ? index : 0; } On Mon, Oct 13, 2008 at 4:44 PM, Lukasz Lenart <[EMAIL PROTECTED] > wrote: > 2008/10/13 Mead Lai <[EMAIL PROTECTED]>: > > well, It's not work, > > It throw NullPointException at following line: > > System.out.println("##index " + this.page.getIndex()); > > It seems page object haven't been created? > > Does your Page class has default constructor? > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- BestRegards, Mead http://yayisoft.com Helen Hayes - "Age is not important unless you're a cheese."