obed morton wrote:that implies everytime the default values will be the same.
I need to show values from a database in the corresponding inputs. The purpose is to allow the user edit the values previously captured.
Is that possible? What do you mean by editing the command object?
"editing the command object" captures your case very easy (in opposite to post author's solution).
I show you how controller should look in spring-3.0 (using annotations).
Controller method has an argument bill that will be passed to a form (it's called command object).
You can prepopulate it here.
As controller is a usual spring bean you can easily autowire other beans to it and prepopulate with some values from business-logic.