How do I combine multiple form inputs into a single object with SimpleFormController in Spring?

You need to write: ... in you jsp. And need to override the formBackingObject Method, so that it retuns an empty Person object with an reference to an emtpy name object protected Object formBackingObject(HttpServletRequest request) { Person person = new Person(); person. Name = new Name(); return person; } Thats all, you do not need to write your own binding.

That solved my first error regarding the formBackingObject() method. It produces a Data Binding error when submitting. I can't figure out the root of the cause though.

You think it has something to do with the Name field? – Terence Ponce May 19 at 6:39 @Terence Ponce: you mean 'name'? -- I don't thinks so.

– Ralph May 19 at 7:01 @Terence Ponce: what is the Data Binding error? – Ralph May 19 at 7:02 Oh, nevermind. The cause is unrelated to this.

Your solution regarding my problem worked. Thanks! – Terence Ponce May 19 at 7:03 Apparently, the error is caused by the birthday field not being bound to the object.It's a whole new problem though.

– Terence Ponce May 19 at 7:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions