I have a Contact, which the user may wish to change to a CompanyContact - which extends Contact. On a postProcessPage for a new page '3' (which basically means that the user wants a company contact) I'd like to change the command object - create a new one based on the new super-class.

When I create the new object, setting command = new CompanyContact, the scope after the postProcessPage method seems to revert back to the Contact class. Is there any way of getting round this? Or should I look for alternatives which don't confuse spring and the error wrapper etc?

hmmm

Adam