A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Struts CRUD operation best practices...
Joined: Jun 04, 2001
Jan 05, 2005 09:25:00
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?
It is sorta covered in the
JavaRanch Style Guide
subject: Struts CRUD operation best practices...
How do I pass data between Struts forms?
▒ Free and Super New ▒ IBM Test 000-484 (Enterprise Connectivity) ICE (56 questions)
jsp:getProperty Bean Problem.
Loosing changes in html:select
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014