You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Steve Drach <St...@sun.com> on 2003/10/09 23:51:54 UTC

[digester] ExtendedBaseRules question

Why does this pattern "a/b/c/d/*" match "a/b/c/d/e/f" but not match
"a/b/c/d/e"?  Is findExactAncestorMatch deleting the last element
of the expression too early?  The patterns it looks for are "a/b/c/*",
"a/b/*" and "a/*", non of which it will find.



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [digester] RegexRules question

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
hi steve

you might like to take a look at WithDefaultsRulesWrapper. this wraps 
another rules implementation (RegexRules, say) and allows rules to be 
registered which are fired when no other rules are matched.

- robert

On Tuesday, October 14, 2003, at 10:59 PM, Steve Drach wrote:

> I'm using RegexRules (with a Jrexx engine) to match paths.  I'd like to
> do the same thing that can be done with the ExtendedBaseRules using
> a pattern like "*" to match any pattern that has not already been matched.
> Of course that won't work with a RegexMatcher.  Any ideas how to do this?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


[digester] RegexRules question

Posted by Steve Drach <St...@sun.com>.
I'm using RegexRules (with a Jrexx engine) to match paths.  I'd like to
do the same thing that can be done with the ExtendedBaseRules using
a pattern like "*" to match any pattern that has not already been matched.
Of course that won't work with a RegexMatcher.  Any ideas how to do this?

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [digester] ExtendedBaseRules question

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
hi steve

this is a bug. i've created a test case and a fix so i think that this 
should work properly in CVS HEAD now.

- robert

On Thursday, October 9, 2003, at 11:00 PM, Steve Drach wrote:

> Note that things work just fine if the string passed to
> findExactAncestorMatch is pattern and not parentPattern.
>
>
>
>> Why does this pattern "a/b/c/d/*" match "a/b/c/d/e/f" but not match
>> "a/b/c/d/e"?  Is findExactAncestorMatch deleting the last element
>> of the expression too early?  The patterns it looks for are "a/b/c/*",
>> "a/b/*" and "a/*", non of which it will find.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [digester] ExtendedBaseRules question

Posted by Steve Drach <St...@sun.com>.
Note that things work just fine if the string passed to
findExactAncestorMatch is pattern and not parentPattern.



> Why does this pattern "a/b/c/d/*" match "a/b/c/d/e/f" but not match
> "a/b/c/d/e"?  Is findExactAncestorMatch deleting the last element
> of the expression too early?  The patterns it looks for are "a/b/c/*",
> "a/b/*" and "a/*", non of which it will find.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [jelly] Where are the demos?

Posted by Paul Libbrecht <pa...@activemath.org>.
Steve Drach wrote:
> I got the latest jelly out of CVS and built it according to the
> instructions, but now I can't progress through the tutorials because
> I can't find the demos.

In the respective taglibs... maven demo:swing has to be done from 
JELLY_HOME/jelly-tags/swing and so on....

Paul


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


[jelly] Where are the demos?

Posted by Steve Drach <St...@Sun.COM>.
I got the latest jelly out of CVS and built it according to the
instructions, but now I can't progress through the tutorials because
I can't find the demos.




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org