Hello,
I'm quite new in Spring, but have a question on commandClass.
In a typical web app, we build value beans for business logic to use. And we use those model beans in struts as form beans. Of course, some web form page requires multiple domains to be combined, so following config are coded in Struts.
<form-bean name="formA" type="DynaActionForm">
<form-property name="domainA" type="com.dom.D1" />
<form-property name="domainB" type="com.dom.E1" />
</form-bean>
This works fine and if another one is needed, we just add another domain.
Now, in Spring, we define commandClass that tied to only single class type and there is no where to specify more commandClasses to be added to.
1. Is there similar functionality in Spring that just does the above?
2. Do I have to create a new set of form beans that only used for web layer, then move each properties to domain beans?
Thanks in advance!!!


Reply With Quote