Return-Path: Delivered-To: apmail-incubator-ibatis-user-java-archive@www.apache.org Received: (qmail 29209 invoked from network); 12 May 2005 23:52:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 May 2005 23:52:09 -0000 Received: (qmail 26235 invoked by uid 500); 12 May 2005 23:56:11 -0000 Delivered-To: apmail-incubator-ibatis-user-java-archive@incubator.apache.org Received: (qmail 26135 invoked by uid 500); 12 May 2005 23:56:10 -0000 Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Precedence: bulk Reply-To: ibatis-user-java@incubator.apache.org List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 26088 invoked by uid 99); 12 May 2005 23:56:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=MSGID_FROM_MTA_HEADER X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lieven_dekeyzer@hotmail.com designates 64.4.49.10 as permitted sender) Received: from bay14-f10.bay14.hotmail.com (HELO hotmail.com) (64.4.49.10) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 12 May 2005 16:56:10 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 12 May 2005 16:51:56 -0700 Message-ID: Received: from 81.240.31.111 by by14fd.bay14.hotmail.msn.com with HTTP; Thu, 12 May 2005 23:51:56 GMT X-Originating-IP: [81.240.31.111] X-Originating-Email: [lieven_dekeyzer@hotmail.com] X-Sender: lieven_dekeyzer@hotmail.com From: "Lieven De Keyzer" To: ibatis-user-java@incubator.apache.org Bcc: Subject: [OT] JPetStore - BaseBean / BeanAction Date: Thu, 12 May 2005 23:51:56 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 12 May 2005 23:51:56.0403 (UTC) FILETIME=[946A7430:01C5574D] X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I took the lastest JPetStore as a starting point for my application. The problem I have now: I want to have multiple actions in one form. I have a set of objects belonging to a user and this are displayed together with a checkbox for each object. I want the users to be able to check a few boxes and let them choose to delete those, or edit them all at once, etc... Normall I think one should implement a class that inherits from the DispatchAction Class. I guess using the BaseBean and BeanAction class, this should even be simpler. Should I use the same tactic as the DispatchAction class uses ? Something like: public Class TreeLevel extends BaseBean { private String method; public String formAction { if (method == "foo") { return foo(); } else { return bar(); } } private String foo() { // } private String bar() { } } And then in my jsp page: