You can call them whatever you want - that's the whole idea! (Personally doX() is good as it separates executing methods from other methods - but use whatever floats your boat)
M On 3/7/03 11:44 AM, "Jason Carreira" ([EMAIL PROTECTED]) penned the words: > Like I said before, I don't want to have to have subclasses to handle > this stuff. This is a common enough pattern that it should be handled > for me by the framework.. What's more, if you guys would lose the > Interface hangup, we could call any classes, even 3rd party :-) > > > I do agree about the doXXX though.. I like more descriptive names. > > Jason > >> -----Original Message----- >> From: Erik Hatcher [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, July 02, 2003 9:04 PM >> To: [EMAIL PROTECTED] >> Subject: Re: [OS-webwork] WebWork2, here I come! >> >> >> On Wednesday, July 2, 2003, at 06:56 PM, Mike Cannon-Brookes wrote: >>> Well, there are tonnes of use cases for this (you are talking about >>> commands >>> right?) >>> >>> The most commonly quoted one is a CRUD action. You create different >>> methods >>> like doCreate(), doUpdate() and have the same fields (ie >> name, email >>> etc). >> >> For CRUD actions, I'd probably (with what I know of WW2 thus far), do >> this: >> >> abstract public class CrudAction implements Action { >> final public void setOperation(String operation) { ... } >> final public String execute() throws Exception { >> // switch on operation value >> } >> >> abstract protected String create() throws Exception; >> abstract protected String retrieve() throws Exception; >> abstract protected String update() throws Exception; >> abstract protected String delete() throws Exception; >> } >> >> Why do we need an Action to have multiple entry points? I >> still don't >> get it. Having the framework lock it into a single entry point does >> not prevent patterns of multiple entry point implementations. >> >> I thought we were trying to get away from Struts... let's >> lose the "do" >> prefix :)) >> >> Erik >> >> >> >> ------------------------------------------------------- >> This SF.Net email sponsored by: Free pre-built ASP.NET sites >> including Data Reports, E-commerce, Portals, and Forums are >> available now. Download today and enter to win an XBOX or >> Visual Studio .NET. >> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06 > 1203_01/01 > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork