Mojo,
You've heard correctly. You don't have to bind to a command object (although it can make your code a little easier to follow) you can bind directly to your business POJOs. It should be relatively easy. I usually do these:
1. Create business POJOs
2. Create FormControllers
3. Create Validators (Command or POJO)
4. Wire them together in your Spring config
Code:
<bean name="storyOneValidator" class="myapp.validators.StoryOneValidator" />
<bean name="storyOneController" class="myapp.web.StoryOneFormController">
<property name="commandClass" value="myapp.domain.StoryOne" />
<property name="formView" value="storyOneForm" />
<property name="validator" ref="storyOneValidator" />
</bean>
Please note that I almost always keep the default commandName of command so that I don't have to always specify the command name in my form.
I believe binding is automatic for all primitive/simple types (int,string,long,boolean,etc) and PropertyEditors are pretty much only required when its a complex object.
Can you post a couple snippets of your code or are you just asking random questions?
Regards,
Joshua Preston
--
"The Guide says that there is an art to flying," said Ford, "or rather a knack. The knack lies in learning how to throw yourself at the ground and miss."