• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts CRUD operation best practices...

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am curious how you are doing this...

Say that I have a Person object, how would you configure your action classes to handle crud operations for a Person?

This is what I do::

NewPersonAction - Forwards to blank reusable person form, posts to CreatePersonAction
EditPersonAction - Forwards to prefilled reusable person form, posts to EditPersonAction

CreatePersonAction - Validates New Person Form and creates the person
UpdatePersonAction - Validates New Person Form and creates the person

Do you have a better/faster way to set this up?

Regards,

Joshua
reply
    Bookmark Topic Watch Topic
  • New Topic