design question -using struts
have String array's which have values in them.
dbValues[]
newValues[]
Have an object Customer which is the row obj in a table in jsp page. This row obj basically has
dbValues[0] , newValues[0] ...... etc.
In Prepare Action.
Creating the list of Customer obj's that is put in the form-bean.
struts-config.
<form-bean name="Form" type="org.apache.struts.validator.DynaValidatorForm" dynamic="true">
<form-property name="custs" type="java.util.ArrayList"/>
.............
</form-bean>
jsp:
the customers are shown in the jsp in a table.
I have to check if it's new customer then have to ask user if they want to put dbValues in the newValues. If the user presses 'yes' then have to put the dbValues in newValues and then create the rowObjects(i.e Customer Objects) and display them in jsp.
Not sure how to do this. Before asking the user if they want to replace newValues, the rowsObjects are created. somehow have to create new rowObjects again. Using LookupDispatchAction. when the user presses 'yes' how is the user values 'yes' will be passed as i am using LookupDispatchAction which method gets executed?
How to do this? Thanks.

