cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@yahoo.com>
Subject Sitemap handler & environment state
Date Tue, 24 Jul 2001 02:29:08 GMT
Hello,

I've got question: why handler's process method alters environment state
and does not restores it? The releveant code snippet:

    public boolean process(Environment environment) throws Exception {
        checkSanity();
        try {
            environment.setSourceHandler(this.sourceHandler);
            return sitemap.process(environment);
        } finally {
            environment.setSourceHandler(null);
        }
    }

After process() is invoked, no processing can be done in parent
sitemap (if any), which in turn means that no <map:handle-error>
pipelines might be executed.

Right now I'm going for walk-around: surround process() with
environment pushURI() and popURI() calls.

Vadim

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message