Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 40425 invoked by uid 500); 24 Jul 2001 09:18:37 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 40412 invoked from network); 24 Jul 2001 09:18:36 -0000 From: "Carsten Ziegeler" To: Subject: AW: environment Date: Tue, 24 Jul 2001 11:19:19 +0200 Message-ID: MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.5 |September 22, 2000) at 24.07.2001 11:18:47, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.5 |September 22, 2000) at 24.07.2001 11:18:48, Serialize complete at 24.07.2001 11:18:48 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N > Torsten Curdt wrote: > > Can anyone give me a hint... > > How do I get the environment within an action? > Within act it is probably the SourceResolver, right?! > (may I up-cast the SorceResolver to Environment?) > Yes, but casting is a bad idea. And to get a url you only need the SourceResolver and not the Environment. > Anyway, this will not help... > I want to use the cocoon: url in configure() > > Possible so far? > Putting it simple: No. As there is more and more need in having the SourceResolver available everywhere (especially during configuration), I started several days ago the thread about using a ThreadLocal variable to put the SourceResolver in. I thought of a public instance variable of the Cocoon class, e.g. Cocoon.localSourceResolver or something like that. The Cocoon class itself could set this whenever the process() method is invoked, but this might be too late for some components as they are configured earlier on. Carsten > Thanks > -- > Torsten > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org