Thanks Bear
This is my Action Class code.
This is PaginationUtil class which supports ....
My Dao class:
In Dao code there is duplicate code. I mean class loading and getting connection. After completing the whole thing then i will modify them. Please check the logic...
I am getting ArrayIndexOutOfBoundsException.
my
JSP page
I used scriptlets in my jsp code. Please ignore it. Anyway i will change the code. I am more concentrating on the pagination . If pagination get succeed then i will change the scriptlet code.
For the first time list is iterating fine. after first 300 records pagination , i will fetch next 300 records from database. fetched records iam storing them in arraylist from index 0 to 299. I am calculating fromIndex and toIndex (i.e. sublist for pagination) based on pageNumber. based on page number fromIndex and toIndex values are some 290 to 318. But in the arraylist index is from 0 to 300.
This clearly states that my design is missing something. Please correct this and share your ideas to generalize it.
Thanks,
Vipul Kumar.