Fawad Ali wrote: I want to minimize the round trips to the database.
I don't know how you are going to save trips to the database. Any way you shake it, you have 2: one to get the data to display, one to update the data.
As for using the same Action class for both both purposes, it depends on which version of
Struts you are using.
Struts 1.x: One option is to extend Action with a class that looks for a request parameter "step" which can have the values "prepare" and "commit". This class invokes different methods depending on which value is set. If the value is "prepare", run the logic for displaying the data. If the value is "commit", run the logic for updating the data.
Struts 2.x: One can configure the display and save URL's in struts.xml to invoke the display or commit method on the action.