File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes CRUD operaion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "CRUD operaion" Watch "CRUD operaion" New topic
Author

CRUD operaion

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 146
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: 1680
    
    7

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: 146
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: 1680
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CRUD operaion