This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a list box which allows multiple select. The results allow for pagination. When I move to the next page, the multiple selection does not hold. Only the first selection from the list box comes up in the request parameters. I want the selection(s) to hold through all the pages.
Also if I refresh the page, the list box does not hold the selection(s) at all... can this be changed.
Since this is related to request parameters,
I would want to know is can we add multiple request parameters by the same name?
As in How do I accomplish: ?devicePlatform=iPhone&devicePlatform=iPad&curPage=2
And if someone could make the difference betwen request parameters and attributes clear, it would be helpful.
Ya you can do it by storing your selected objects in a string and in each JSP you need to access that string and append newly added object to the string but this has a limitation you cannot exceed some number i.e., url cannot be infinitely big, so better you use session object which sufficiently big to hold your data and accessible throughout the session. And passing parameters using url is not good practice