I am trying to setup a series of
jsp pages (jsp1, jsp2, jsp3). Each of these adds or modifies properties (or collections) of object customerForm(supply name/address, add contacts, etc.) This is an "experimental" app I'm putting together to try out
struts.
In struts-config.xml, I have the choice of setting the scope parameter for each action mapping. If I set scope to "request", then customerForm is instantiated each time the form is presented - data is lost across forms.
If I set to "session" then I can maintain the data across the various forms, but customerForm.reset() is still called.
My questions:
What is the best way to maintain the customer data across several jsp pages?
Should I just move form data to a customer bean from customerForm each time?
Should I just display data from the current customer bean rather than from customerForm?
Can anyone please help me out?