| Author |
CRUD operaion
|
santhosh kumar vk
Ranch Hand
Joined: Aug 25, 2009
Posts: 115
|
|
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
Joined: Mar 07, 2010
Posts: 1282
|
|
|
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?
|
[How To Ask Questions][Read before you PM me]
|
 |
santhosh kumar vk
Ranch Hand
Joined: Aug 25, 2009
Posts: 115
|
|
|
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
Joined: Mar 07, 2010
Posts: 1282
|
|
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.
|
 |
 |
|
|
subject: CRUD operaion
|
|
|