Serge Knystautas wrote:
>
> I downloaded cocoon's source and am very slowly understanding how this
> all works. Is there some classes/packages or doc file you could point
> me/us at that gives the details about the sitemap-matching idea?
Unfortunately not (yet!).
The Sitemap idea was added in Cocoon (you can read the Cocoon2
document), it's all we have now. Or download the Cocoon2 alpha source
from the xml-cocoon2 branch of the xml-cocoon CVS module.
> Also, Federico's example probably didn't capture the flexibility that
> servlet's match attribute offers... RecipientIs is a class that
> implements Match, and there are half a dozen of this simple classes that
> come with JAMES. There are a number or ways you could want to check to
> run a servlet aside from the recipients of a message... whether the
> sender was local, whether the sender has a local account, maybe messages
> that have ridiculous time stamps in the Date header.
Exactly. This is the idea. What i don't like is the "url-encoding" of
this. so, instead of doing
<servlet match="[EMAIL PROTECTED]"...>
I would do
<process address="[EMAIL PROTECTED]">
<matcher type="agentChecker">
<parameter name="agent" value="Outlook Express 5.0"/>
</matcher>
...
</process>
leaving the "recipient-is" matching the default one (like we do in
Cocoon2 leaving the URI matching the default one).
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<[EMAIL PROTECTED]> Friedrich Nietzsche
--------------------------------------------------------------------
Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/>
Problems?: [EMAIL PROTECTED]