Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error on View - MultiActionController + Spring:bine

 
Twoz Lee
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to add validation later on, so i have added spring:bind tag from original jsp page. However, the view can not find the object of command.login_id

so what can i do ?

JSP - test.jsp




Controller (MultiActionController)


Spring_mvc_config.xml



Error Message



 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where do you define what object is behind the binding?

I don't see that anywhere.

Also, do you have to use an older version of Spring. In Spring 2.5 and especially Spring 3.0, Controllers don't implement or extend Spring Controller classes anymore. And binding is more automatic.

Mark
 
Axel Kane
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a very similar problem, so i will ask a question here.
How should be defined then command object, when im using MultiActionController.
In my application, form looks like this:



Controller:



And container throws:


Some ideas?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic