Click here to Skip to main content
16,018,264 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
My requirement is that the user will enter some data and using that I have to search in my Elastic Search database . here the problem is the number of records may be large in number . So I want to go with pagination .

So now after user enters their data I will display the first 10 results and will provide an option for next button , then when user clicks on that next button for displaying next set of records how can we search again using the same details he entered initially . I.e., basically how to store the values the user has entered for the next searches .

I am using Spring MVC and JSP .


Thanks in advance .

What I have tried:

I have seen a solution of using hidden type in the form , but how can we set the hidden type values in result.jsp when the user entering his details in the search.jsp both are different files .

One more solution is using the session attributes but the problem there is when user opens same site in different tabs and searches for different values it will create problems .
Posted
Updated 8-Aug-18 21:29pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900