Re: [OT] Complicated Digester Rules [ RE: Common Chain 1.0 and Struts Chain ]

2004-12-10 Thread Hubert Rabago
On Fri, 10 Dec 2004 09:30:49 -0800, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> * I want to be able to define "alias" elements for commands that are used
>   a lot, so I don't have to specify the FQCN on every one of them.  For 
> example,
>   the following element (from the unit tests):
>className="org.apache.commons.chain.impl.AddingCommand"/>
> 
>   means I can use the following:
> 
> 
>   instead of the more verbose:
> 
> 
>   every time I want to use that particular command.

WOW.

This rule will be NICE to play with.  I haven't checked yet, but I'm
assuming this rule isn't part of Digester (heck, Hubert, that's why he
said "custom").  If so, maybe it's something that can be added to the
core, or (if it needs to be customized per use) even just in a
Digester example app.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Complicated Digester Rules [ RE: Common Chain 1.0 and Struts Chain ]

2004-12-10 Thread Craig McClanahan
Here's an informal description of what that ruleset is about. 
Informally, we want to be able to parse things like:

  
...

  ...
  

  
  

  
  ...

...
  

With a few extra wrinkles:

* I want to be able to substitute the names of the elements that have
  default names "catalog", "chain", and "name" above.  This is done by
  instantiating a ConfigRuleSet and setting the corresponding properties
  before using that RuleSet instance to set up a ConfigParser.

* I want to be able to change the names of some attributes that the
  configuration rules look for, such as "class" (for the FQCN of a chain
  or command instance), customized the same way.

* I want to be able to define "alias" elements for commands that are used
  a lot, so I don't have to specify the FQCN on every one of them.  For example,
  the following element (from the unit tests):



  means I can use the following:



  instead of the more verbose:



  every time I want to use that particular command.

I'm particularly pround of that custom Digester rule :-), but it is
definitely an intricate one, because it calculates and adds some
additional rules during the parse, instead of before.

Craig


On Fri, 10 Dec 2004 16:52:54 -, Pilgrim, Peter
<[EMAIL PROTECTED]> wrote:
> 
> > -Original Message-
> > From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> >
> > Also in jakarta news
> >
> > http://jakarta.apache.org/site/news/news-2004-2ndHalf.html
> >
> > and its listed in the "Releases" section on the Commons Chain site:
> >
> > http://jakarta.apache.org/commons/chain/
> >
> ====
> 
> Cheers Niall
> 
> The reason I downloaded the chain again, because I want to study
> the chain implementation. I think the Chain would make a good
> invocation AOP/IoC element, if you want to inject some complicated
> rules driven advice ... but not this thread
> 
> I also wanted looked close at the Digester rules in the Chain
> implementation. I am not if I follow everything in it.
> 
> Does any one have a HOWTO and GUIDE into writing Digester rules,
> config set and possibly regexp rules?
> 
> I have written some Digester stuff and now I want to refactor it
> because there is a lot of commonality with the XML grammar (DTD)
> and the stuff I have now is becoming terser every version.
> 
> mtia
> 
> --
> Peter Pilgrim
> Operations/IT - Credit Suisse First Boston,
> 10 South Colonnade, London E14 4QJ, United Kingdom
> Tel: +44-(0)207-883-4497
> 
> ==
> This message is for the sole use of the intended recipient. If you received
> this message in error please delete it and notify us. If this message was
> misdirected, CSFB does not waive any confidentiality or privilege. CSFB
> retains and monitors electronic communications sent through its network.
> Instructions transmitted over this system are not binding on CSFB until they
> are confirmed by us. Message transmission is not guaranteed to be secure.
> ==
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Common Chain 1.0 and Struts Chain

2004-12-10 Thread Julian
Joe,

Thanks a lot.  I will plan on implementing the chain
after a bit more due dilligence.  btw, I agree on
making a seperate jar for the set of commands which
provide legacy support.  Thanks.

-Julian

--- Joe Germuska <[EMAIL PROTECTED]> wrote:

> At 6:28 AM -0800 12/10/04, Julian wrote:
> >Hi,
> >
> >I was wondering if the release of Commons Chain 1.0
> >will enable a "Best Available" release of Struts
> with
> >struts-chain?  If not, how stable is the COR stuff
> in
> >Struts?
> 
> The struts-chain was working just fine against
> pre-1.0 releases of 
> Struts Chain.  If you're interested, there's no
> reason to wait.  It 
> will be longer before you can download a nightly
> build of Struts 
> which uses the Chain request processor, but work on
> that was mostly 
> waiting for the 1.0 release (and for time, which
> unfortunately I've 
> had a short supply of, and this time of year, it
> will continue that 
> way.)
> 
> I have a few pending questions on the dev list that
> I may need to 
> re-raise about a few implementation details, but now
> that 1.0 is 
> fully released, I do hope to begin making changes to
> the core code 
> base to use commons-chain and the Composable Request
> Processor.  I 
> don't see the point of just merging struts-chain
> into the 'core' 
> project and cutting a release; rather, we'll want to
> obsolete the 
> PlugIn which configures the command catalogs in
> struts-chain in favor 
> of direct support in the ActionServlet.  I am also
> inclined to 
> package the set of commands which provide legacy
> Struts support as a 
> separate JAR, rather than pushing a few dozen
> classes into the core 
> which in some sense are legacy bound.  (Whether
> there's consensus on 
> that is one of the questions to re-raise on the dev
> list.)
> 
> I've been using struts-chain in a production project
> for close to a 
> year now (including original development time).  We
> flushed a few 
> bugs out along the way, but it's fundamentally
> stable with Struts 
> 1.2.x.
> 
> Joe
> 
> -- 
> Joe Germuska
> [EMAIL PROTECTED]  
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"
>  -The Ex
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


=
Live simply so others may simply live. 
 
-Ghandi 
 
Pluralitas non est ponenda sine neccesitate.
"Entities should not be multiplied unneccesarily" 
 
-William of Occam




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OT] Complicated Digester Rules [ RE: Common Chain 1.0 and Struts Chain ]

2004-12-10 Thread Pilgrim, Peter

> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> 
> Also in jakarta news
> 
> http://jakarta.apache.org/site/news/news-2004-2ndHalf.html
> 
> and its listed in the "Releases" section on the Commons Chain site:
> 
> http://jakarta.apache.org/commons/chain/
> 
====

Cheers Niall

The reason I downloaded the chain again, because I want to study
the chain implementation. I think the Chain would make a good 
invocation AOP/IoC element, if you want to inject some complicated
rules driven advice ... but not this thread

I also wanted looked close at the Digester rules in the Chain 
implementation. I am not if I follow everything in it.

Does any one have a HOWTO and GUIDE into writing Digester rules,
config set and possibly regexp rules?

I have written some Digester stuff and now I want to refactor it
because there is a lot of commonality with the XML grammar (DTD) 
and the stuff I have now is becoming terser every version.

mtia

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Common Chain 1.0 and Struts Chain

2004-12-10 Thread Pilgrim, Peter

> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> 
> 
> http://article.gmane.org/gmane.comp.jakarta.commons.devel/58801
> 
> - Original Message - 
> From: "Pilgrim, Peter" <[EMAIL PROTECTED]>

> 
> > Where does it say Common Chain is now released at V1.0
> >
> >
> > --
> > Peter Pilgrim

====
 
Sugar.

I looked and downloaded the thing this morning and it was still said 0.2
There's nothing like Internet time!
--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Common Chain 1.0 and Struts Chain

2004-12-10 Thread Niall Pemberton
Also in jakarta news

http://jakarta.apache.org/site/news/news-2004-2ndHalf.html

and its listed in the "Releases" section on the Commons Chain site:

http://jakarta.apache.org/commons/chain/

Niall

- Original Message - 
From: "Niall Pemberton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, December 10, 2004 4:43 PM
Subject: Re: Common Chain 1.0 and Struts Chain


> http://article.gmane.org/gmane.comp.jakarta.commons.devel/58801
>
> - Original Message - 
> From: "Pilgrim, Peter" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Friday, December 10, 2004 4:34 PM
> Subject: RE: Common Chain 1.0 and Struts Chain
>
>
> > Where does it say Common Chain is now released at V1.0
> >
> >
> > --
> > Peter Pilgrim
> > Operations/IT - Credit Suisse First Boston,
> > 10 South Colonnade, London E14 4QJ, United Kingdom
> > Tel: +44-(0)207-883-4497
> >
> >
> >
> > > -Original Message-
> > > From: Julian [mailto:[EMAIL PROTECTED]
> > > Sent: 10 December 2004 14:29
> > > To: Struts Users Mailing List
> > > Subject: Common Chain 1.0 and Struts Chain
> > >
> > >
> > > Hi,
> > >
> > > I was wondering if the release of Commons Chain 1.0
> > > will enable a "Best Available" release of Struts with
> > > struts-chain?  If not, how stable is the COR stuff in
> > > Struts?
> > >
> > > Thanks,
> > > Julian
> > >
> > >
> > >
> > > __
> > > Do you Yahoo!?
> > > Take Yahoo! Mail with you! Get it on your mobile phone.
> > > http://mobile.yahoo.com/maildemo
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>

> ==
> > This message is for the sole use of the intended recipient. If you
> received
> > this message in error please delete it and notify us. If this message
was
> > misdirected, CSFB does not waive any confidentiality or privilege. CSFB
> > retains and monitors electronic communications sent through its network.
> > Instructions transmitted over this system are not binding on CSFB until
> they
> > are confirmed by us. Message transmission is not guaranteed to be
secure.
> >
>

> ==
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Common Chain 1.0 and Struts Chain

2004-12-10 Thread Niall Pemberton
http://article.gmane.org/gmane.comp.jakarta.commons.devel/58801

- Original Message - 
From: "Pilgrim, Peter" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, December 10, 2004 4:34 PM
Subject: RE: Common Chain 1.0 and Struts Chain


> Where does it say Common Chain is now released at V1.0
>
>
> --
> Peter Pilgrim
> Operations/IT - Credit Suisse First Boston,
> 10 South Colonnade, London E14 4QJ, United Kingdom
> Tel: +44-(0)207-883-4497
>
>
>
> > -Original Message-
> > From: Julian [mailto:[EMAIL PROTECTED]
> > Sent: 10 December 2004 14:29
> > To: Struts Users Mailing List
> > Subject: Common Chain 1.0 and Struts Chain
> >
> >
> > Hi,
> >
> > I was wondering if the release of Commons Chain 1.0
> > will enable a "Best Available" release of Struts with
> > struts-chain?  If not, how stable is the COR stuff in
> > Struts?
> >
> > Thanks,
> > Julian
> >
> >
> >
> > __
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile phone.
> > http://mobile.yahoo.com/maildemo
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>

==
> This message is for the sole use of the intended recipient. If you
received
> this message in error please delete it and notify us. If this message was
> misdirected, CSFB does not waive any confidentiality or privilege. CSFB
> retains and monitors electronic communications sent through its network.
> Instructions transmitted over this system are not binding on CSFB until
they
> are confirmed by us. Message transmission is not guaranteed to be secure.
>

==
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Common Chain 1.0 and Struts Chain

2004-12-10 Thread Pilgrim, Peter
Where does it say Common Chain is now released at V1.0


--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497



> -Original Message-
> From: Julian [mailto:[EMAIL PROTECTED]
> Sent: 10 December 2004 14:29
> To: Struts Users Mailing List
> Subject: Common Chain 1.0 and Struts Chain
> 
> 
> Hi,
> 
> I was wondering if the release of Commons Chain 1.0
> will enable a "Best Available" release of Struts with
> struts-chain?  If not, how stable is the COR stuff in
> Struts?
> 
> Thanks,
> Julian
> 
> 
>   
> __ 
> Do you Yahoo!? 
> Take Yahoo! Mail with you! Get it on your mobile phone. 
> http://mobile.yahoo.com/maildemo 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Common Chain 1.0 and Struts Chain

2004-12-10 Thread Dakota Jack
I'm really looking forward to this.  Big jump forward, I think.

Jack


On Fri, 10 Dec 2004 08:54:30 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
> At 6:28 AM -0800 12/10/04, Julian wrote:
> >Hi,
> >
> >I was wondering if the release of Commons Chain 1.0
> >will enable a "Best Available" release of Struts with
> >struts-chain?  If not, how stable is the COR stuff in
> >Struts?
> 
> The struts-chain was working just fine against pre-1.0 releases of
> Struts Chain.  If you're interested, there's no reason to wait.  It
> will be longer before you can download a nightly build of Struts
> which uses the Chain request processor, but work on that was mostly
> waiting for the 1.0 release (and for time, which unfortunately I've
> had a short supply of, and this time of year, it will continue that
> way.)
> 
> I have a few pending questions on the dev list that I may need to
> re-raise about a few implementation details, but now that 1.0 is
> fully released, I do hope to begin making changes to the core code
> base to use commons-chain and the Composable Request Processor.  I
> don't see the point of just merging struts-chain into the 'core'
> project and cutting a release; rather, we'll want to obsolete the
> PlugIn which configures the command catalogs in struts-chain in favor
> of direct support in the ActionServlet.  I am also inclined to
> package the set of commands which provide legacy Struts support as a
> separate JAR, rather than pushing a few dozen classes into the core
> which in some sense are legacy bound.  (Whether there's consensus on
> that is one of the questions to re-raise on the dev list.)
> 
> I've been using struts-chain in a production project for close to a
> year now (including original development time).  We flushed a few
> bugs out along the way, but it's fundamentally stable with Struts
> 1.2.x.
> 
> Joe
> 
> --
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 


"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Common Chain 1.0 and Struts Chain

2004-12-10 Thread Vic
Afaik Struts v1.3 will have request processor based on Chain.
Future versions may have Action be chain - like.
.V
Julian wrote:
Hi,
I was wondering if the release of Commons Chain 1.0
will enable a "Best Available" release of Struts with
struts-chain?  If not, how stable is the COR stuff in
Struts?
Thanks,
Julian
		
__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 
 


--
RiA-SoA w/JDNC  forums
blog 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Common Chain 1.0 and Struts Chain

2004-12-10 Thread Joe Germuska
At 6:28 AM -0800 12/10/04, Julian wrote:
Hi,
I was wondering if the release of Commons Chain 1.0
will enable a "Best Available" release of Struts with
struts-chain?  If not, how stable is the COR stuff in
Struts?
The struts-chain was working just fine against pre-1.0 releases of 
Struts Chain.  If you're interested, there's no reason to wait.  It 
will be longer before you can download a nightly build of Struts 
which uses the Chain request processor, but work on that was mostly 
waiting for the 1.0 release (and for time, which unfortunately I've 
had a short supply of, and this time of year, it will continue that 
way.)

I have a few pending questions on the dev list that I may need to 
re-raise about a few implementation details, but now that 1.0 is 
fully released, I do hope to begin making changes to the core code 
base to use commons-chain and the Composable Request Processor.  I 
don't see the point of just merging struts-chain into the 'core' 
project and cutting a release; rather, we'll want to obsolete the 
PlugIn which configures the command catalogs in struts-chain in favor 
of direct support in the ActionServlet.  I am also inclined to 
package the set of commands which provide legacy Struts support as a 
separate JAR, rather than pushing a few dozen classes into the core 
which in some sense are legacy bound.  (Whether there's consensus on 
that is one of the questions to re-raise on the dev list.)

I've been using struts-chain in a production project for close to a 
year now (including original development time).  We flushed a few 
bugs out along the way, but it's fundamentally stable with Struts 
1.2.x.

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]