I think Eric is too modest. This is much deeper than the sugar and
vinegar he gives himself credit for. This is positively Sid Hartha!
///;-)
On Sun, 6 Mar 2005 23:36:00 +0100, Leon Rosenberg
<[EMAIL PROTECTED]> wrote:
>
> > Everything good in the world starts with a desire to see
> > others
The answer to your question, Eric, is that neither pattern is in
commons-chain, as you suggest. The commons chain is a Chain of
Responsibility pattern. My concern was with the Struts classes, and I
think that I have received an answer on my inquiry, viz. that a
refactoring to a Strategy pattern i
Original Message:
-
From: Leon Rosenberg [EMAIL PROTECTED]
Date: Sun, 6 Mar 2005 23:36:00 +0100
To: user@struts.apache.org
Subject: AW: Why Template Method instead of Strategy in Commons Chain?
> Everything good in the world starts with a desire to see
> others succeed.
>
>
If I remember it correctly, tag is used to produce
anchor/hyperlink tag in html (i.e. tag). What you need here is a
tag or a style tag .
I would very much go with James' method.
- Peter
On Sat, 5 Mar 2005 23:56:54 -0500, James Mitchell <[EMAIL PROTECTED]> wrote:
> I prefer this method better:
On Sat, 5 Mar 2005 20:34:06 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote:
> I inquired why the Template Method pattern is being used with Commons
> Chain instead of Strategy, but never got an answer.
Back in town (for at least one day), and snipping off the flamebait
:-), it's worth philosophizin
I guess here's a way I can restate my question.
I'm with you on choosing composition rather than inheritance when it's
possible and sensible. But it's not always obvious where and how
inheritance can be replaced by composition. I find it to be a
challenging part of programming. So that's why I b
I guess I focused on the "backward compatibility" issue, which I did
not understand at all. Thanks.
On Sun, 6 Mar 2005 19:09:45 -0500, Ted Husted <[EMAIL PROTECTED]> wrote:
> Joe and Bill did respond.
>
> * http://www.mail-archive.com/dev%40struts.apache.org/msg07346.html
>
> I don't think any
I think I stated the problem badly, Eric. If you look at the
implementations of commons-chain you will see the implementations tend
to use Template Method. The chain is used to solve the rather
troublesome problems with that pattern, and yet the people who go to
all the trouble to change to chain
I think it's probably usually good to question Template when the
realization of it comes via class inheritance.
However, I'm confused. I read Bill's article (first pass anyway -- and
I'm new to Commons Chain), and I'm still not seeing where exactly
Template is implemented in Commons Chain. He i
> Everything good in the world starts with a desire to see
> others succeed.
>
> Erik
After a very calm Sunday (I already checked my email server twice, wondering
how one could live without new
mails to this list) we are starting with a philosophical discussion? :-)
Regards
Leon
> Everything good in the world starts with a desire to see
> others succeed.
>
> Erik
After a very calm Sunday (I already checked my email server twice, wondering
how one could live without new
mails to this list) we are starting with a philosophical discussion? :-)
Regards
Leon
Dakota Jack wrote:
You are probably right, Bill. How to approach this has been a mystery
to me.
Everything good in the world starts with a desire to see others succeed.
Erik
But, I do think you are right about this and probably this is
really ineffective.
Jack
On Sun, 6 Mar 2005 17:00:41 -0500,
You are probably right, Bill. How to approach this has been a mystery
to me. But, I do think you are right about this and probably this is
really ineffective.
Jack
On Sun, 6 Mar 2005 17:00:41 -0500, Bill Siggelkow
<[EMAIL PROTECTED]> wrote:
> Michael -- I mean Dakota -- whatever ... as long as
Thanks Bill - at first I wondered why I didn't see it earlier but I
note that its only just been published :)
I'll have a read and hopefully it'll all make sense to me!
Thanks
Richard.
On Sun, 6 Mar 2005 16:56:51 -0500, Bill Siggelkow
<[EMAIL PROTECTED]> wrote:
> Ahh ... a chance toot my own h
Michael -- I mean Dakota -- whatever ... as long as you continue
publish "baiting" posts like this my guess is that people won't want to
give you the time of day.
On 2005-03-05 23:34:06 -0500, Dakota Jack <[EMAIL PROTECTED]> said:
I inquired why the Template Method pattern is being used with Com
Ahh ... a chance toot my own horn!
http://www.onjava.com/pub/a/onjava/2005/03/02/commonchains.html
Also, Richard, I am working on Part II which digs into how Struts uses
chain -- Part II should be out in a week or so ...
I strongly you suggest that you first get your head wrapped around
Chain b
Hi,
After searching around the Net and on the user/dev Struts mailing
list, I haven't been able to find much information about getting
started with struts-chain or commons-chain.
Can anyone point me in the direction of some information regarding
getting up and running with struts-chain (with a sm
We can see the problem by reading the error message. You're iterating
through a HashMap, which gives you "Entry" objects for each iteration.
The only objects directly available to an "Entry" object are the "key"
and "value". So, change "${currentQuestion.answerOptions}" to
"${currentQuestion.valu
18 matches
Mail list logo