This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CRUD operaion

 
santhosh kumar vk
Ranch Hand
Posts: 152
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

could you please tell me how to do CRUD operation in spring 2.5, i tried using multiactioncontroller but i do not know how to get the value of form data in controller, please help me.

Thanks,
Santhosh Kuamr V.K
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Spring 2.5 you should be using the @Controller annotation you should not be extending any Spring classes ( like multiactioncontroller ). Out of curiosity is using Spring 2.5 a requirement for you? Is there any reason you are not using a newer version?
 
santhosh kumar vk
Ranch Hand
Posts: 152
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we are using only 2.5 version in that only i need to do CRUD, if it is possible could you please tell me which controller i have to use.
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as what controller to use, even in Spring 2.5 you can use the annotated controller.

Read this blog post:
http://blog.springsource.org/2007/11/14/annotated-web-mvc-controllers-in-spring-25/

As for crud that has nothing to do with the controller. Your controller gets the data you need from the form submit or what have you, and once you have your data you would pass that data on to your service/repository layers and you would persist that data there.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic