This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts CRUD operation best practices... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts CRUD operation best practices..." Watch "Struts CRUD operation best practices..." New topic
Author

Struts CRUD operation best practices...

Joshua White
Ranch Hand

Joined: Jun 04, 2001
Posts: 97
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
 
Don't get me started about those stupid light bulbs.
 
subject: Struts CRUD operation best practices...
 
Similar Threads
Loosing changes in html:select
How do I pass data between Struts forms?
form validation
▒ Free and Super New ▒ IBM Test 000-484 (Enterprise Connectivity) ICE (56 questions)
jsp:getProperty Bean Problem.