I need to pass Arraylist from a jsp to my Handler class via Servlet . I can't use session since my handler class creates new session everytime . How could i achieve it ...
This requirement is for pagination.. I populate arrayList values in my Data class using a web service call. I return those list back to Jsp and display. But when if my list has more than 10 records it needs to be paginated. . Since i follow a specific mvc , i could not provide any pagination logic there . Is there any way to achieve this . ...
William Brogden wrote:
I can't use session since my handler class creates new session everytime .
Is this "new session everytime" a requirement or is it that you don't know how to prevent it?
I'm working on a product which is already developed and i need to develop a new module . The handler class is already defined in the product and i could not go change that. I should follow the existing MVC defined already. I have to impose my code on top of that. Please guide me ..
manni ma wrote:If I have understood your requirement clearly, one way is to have data holder class with arraylist as public static variable.
Populate this list with your data from servlet. This variable can be used from handler by using <Data Holder className>.<List name>.
I could have more than 1000 records for this . So i could not go for a static one since it will affect my performance at a very high..