Action structure for CRUD

2001-11-14 Thread ltorrence
struts-newbie I used David Winterfeldt's Generator against a table called broker to produce a form bean, a broker bean, a broker_PK (primary key) bean, and a brokerjdbc bean (which contains SQL CRUD functions). Now I need to create the Action (or Actions) to handle these operations. I have

Re: Action structure for CRUD

2001-11-14 Thread Ted Husted
It's not a bad approach. Instead of using a switch statement, or equivalent, Artimus specifies which business logic bean to use as a parameter to the ActionMapping. The HelperAction instantiates that bean, populates it, and tells it to do whatever it was made to do. This reduces the number