Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 35663 invoked from network); 14 Dec 2006 19:49:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2006 19:49:48 -0000 Received: (qmail 49047 invoked by uid 500); 14 Dec 2006 19:49:54 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 48115 invoked by uid 500); 14 Dec 2006 19:49:52 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 48098 invoked by uid 99); 14 Dec 2006 19:49:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2006 11:49:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [130.231.240.1] (HELO oulu.fi) (130.231.240.1) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2006 11:49:40 -0800 Received: from cc.oulu.fi (sun3.oulu.fi [130.231.240.13]) by oulu.fi (8.13.7/8.13.7) with ESMTP id kBEJnIK5019597 for ; Thu, 14 Dec 2006 21:49:18 +0200 (EET) Received: from [192.168.1.10] (dsl-176-86.oulu.fi [130.231.176.86]) by cc.oulu.fi (8.13.7/8.12.10) with ESMTP id kBEJnHY7003928 for ; Thu, 14 Dec 2006 21:49:18 +0200 (EET) Message-ID: <4581AABD.5080708@cc.oulu.fi> Date: Thu, 14 Dec 2006 21:49:17 +0200 From: Andre Juffer Reply-To: Andre.Juffer@oulu.fi Organization: The University of Oulu User-Agent: Thunderbird 1.5.0.7 (X11/20060921) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: JX and sendmail transformer References: <45805E39.2070202@cc.oulu.fi> <03e6773e118f0a14d2c9243b88bf0a2b@wrinkledog.com> In-Reply-To: <03e6773e118f0a14d2c9243b88bf0a2b@wrinkledog.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks guys, the "cocoon:/" solved everything. The http resulted either in a new session object or no session object at all rendering the object unavailable. Thanks, Andre Mark Lundquist wrote: > hi Andre, > > On Dec 13, 2006, at 12:10 PM, Andre Juffer wrote: > >> Hi, >> >> I need to access one object in a JX generated response which is >> requested for by email:body using the src attribute. I have stored >> this object in the current session in flow using >> cocoon.session.setAttribute("object-name", object). The flowscript >> then subsequently passes the control to the sitemap to generate an >> email that needs certain information extracted from this object. > > BTW are you sure you want to use the session for this and not a request > attribute? Just askin'... > >> The email transformer encounters something similar as the following >> >> >> .... >> > > Wouldn't it be better to use an internal "cocoon:/" source there instead > of "http://"? > >> >> >> The 'something' is matched in the sitemap by the JX generator which >> processes a file containing a line like >> ${cocoon.session.getAttribute('object-name').getFoo()} where foo is >> the property that is needed in the email message. I am using the src >> attribute since I want to generate an HTML-based email message. >> >> This all works fine (the whole process from begin to end ultimately >> results in an email correctly delivered), except that I am not able to >> access this property foo (the method getFoo() on the object does >> certainly exist). > > Are you positive that the object itself exists? Maybe there's really no > session attribute named 'object-name'... > > �ml� > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > -- Andre H. Juffer | Email: Andre.Juffer@oulu.fi The Biocenter and | WWW: www.biochem.oulu.fi/Biocomputing/ the Dep. of Biochemistry | Fax: +358-8-553-1141 University of Oulu, Finland | Phone: +358-8-553 1161 Triacle Biocomputing | WWW: www.triacle-bc.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org