A couple of embedded comments. On Tue, 29 Oct 2002, Josh Berry wrote:
> Date: Tue, 29 Oct 2002 14:16:54 -0500 > From: Josh Berry <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Re: [Re: [how many form for update and create action ?]] > > "David Graham" <[EMAIL PROTECTED]> wrote: > > Josh, > > I think your approach is fairly standard and is also what I > > recommended :-). > > > The only thing I wasn't sure of was using the same action for saving and > creating. I feel that is easiest, but I can see how some people might > disagree. > I tend to prefer the one-Action solution for this, primarily because the only functional difference tends to be using an INSERT or an UPDATE. If you use the typical DAO pattern, that's usually just a simpmle if-else statement in your Action to call the insert() or update() method of your DAO. > Also, two general questions to the forum. First, I've noticed a lot of people > top post. Is that the standard in a mailing list? I am more used to news > groups. If I am annoying anyone by having the quotes above, please let me > know. > I don't think we'll have a lot of influence on human nature or laziness :-) ... but I prefer intermixing responses (as I'm doing here). Even more importantly, you should trim down the message you are quoting to just the part you are addressing, if it's not the whole message. > Second, It gets to be difficult to see if a question has already been answered > before I post. Do we typically defer to certain members to answer, or should > I just use common sense? (That is, if a message was posted within the past > couple of hours, feel free to answer; check for someone else having answered, > otherwise.) > Multiple answers are a Good Thing (tm) :-), because there are often different perspectives and experiences that can be very useful. You probably should not assume that any particular person will always answer questions in a particular topic area -- they might be busy or offline, or just not in a mood to answer questions on that particular day :-). In terms of mechanics, I always read mailing lists with the message sort set to threaded -- then, it's trivially simple to see if there have been responses yet (and even look at them to confirm), in an attempt to avoid completely redundant responses. Of course, there are still the inevitable race conditions (multiple people composing and sending answers at the same time). > -josh > Craig -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>