2008/10/13 Mead Lai <[EMAIL PROTECTED]>:
> 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;
>    }

No idea, it should work, I'm almost in the same way building my urls
for editing (employee.id) and there is no problem with that


Regards
-- 
Lukasz
http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to