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.
Hi, You need to read and store the request parameters in the request attributes when control comes to your action class for fetching data. While rendering the JSP you need to check for values in request attributes and populate them. If there are no values then it will be empty(which is the case when you visit the page first time.) Thanks, amit
This simple case is one where an Ajax solution works very well. Since you would only be refreshing the one list on the page you would not have to worry about the other fields because they would not change.
With a non-Ajax solution you need to submit the page. In your action you need to detect that the page was submitted because a list needed to be populated (and not because the user wanted to save the data). On my project there is some common code to handle this that then forwards to the action specified in the input attribute of the mapping..