• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

CRUD operaion

 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic