Sri,
First of all no question is silly. So don't worry about asking the simplest question you have. Secondly
Pagination talks about clearly on different ways of pagination.
Coming to your problem, I see two quick ways to do this.
1) Every time you invoke "next" or "previous" you make individual calls (possibly to a persistent store) to retrieve. You can keep track of what you have currently and what you want. This make sure that you have the up to date information, but the cost of expensive DB and network calls.
2) Get all the data from the DB in one single call and store them in a local list. Based on your action, you can pull the information from this local list. This would avoid the expensive calls to your DB, but the data may be stale.
In either case, once you have the required data, it is all presenting them on
jsp.
If your data is mostly static and not going to change, I will go with option 2, otherwise option 1. More descriptive information is available in the link provided above.