----- Original Message ----- From: "Andrew Hill" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, May 28, 2003 9:57 PM Subject: RE: Basic CRUD
> Mate, that answer is about as useful as a chook that doesnt lay eggs. > If you go answering peoples _struts_ questions on the _struts list_ by > carping on about how great some product of yours is then you will make > yourself unpopular very quickly. Have you ever thought someone might be interested in a *general* purpose CRUD algorithm? We got such an algorithm with its core codes open for every one. > > -----Original Message----- > From: Jing Zhou [mailto:[EMAIL PROTECTED] > Sent: Thursday, 29 May 2003 12:43 > To: Struts Users Mailing List > Subject: Re: Basic CRUD > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, 28 May 2003 3:02 p.m. > > To: [EMAIL PROTECTED] > > Subject: Basic CRUD > > > > I am putting together a simple web app that performs CRUD operations on a > > database table. The web app consists of 1 jsp page which handles all CRUD > > actions. The first part of the page contains a form with 2 fields and > > 'create' and 'retrieve' buttons. Both these functions work fine. When a > > 'retrieve' (select id,field1,field2 from table1) is done, a table is > > rendered with the resultset on the same page. For each record of the > > recordset, there exists an 'update' and 'delete' button. The problem is > > how do I tell my action class which record to act on? > > The difficulty of this kind of problems is that there is no *standard* way > to > handle CRUD operations in general. However, the just unveiled Carrier > allows you to visually compose hyper action wizards. In particular, the > demo for the Ant Project Configuration has a lot of CRUD operations. > > If I understand your business problem, here is a very similar situation: > an Ant project may contain several targets, so there are CRUD operations > on the targets. For each target, there are several tasks. So we have > CRUD operations on the tasks. For each task, there might be several > nested attributes, so more CRUD operations. Some we do it on the > same page, some we do it on different page in the demo. There are > total of 39 pages just for this demo with nested level up to 5. > > This demo is done exclusively within Struts. No javascript! Even > there is no custom code for this demo. You compose > the Ant Project Configuration as hyper action wizards completely > within Carrier rich client. And any submited forms will be automatically > persisted and restored for you as necessary. > > The algorithms that makes this happen is called Wheels. When you > download Carrier at www.netspread.com, the source codes for the > Wheels will be available for you. > > Jing > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]