Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 8504 invoked from network); 11 Dec 2003 22:21:51 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Dec 2003 22:21:51 -0000 Received: (qmail 4937 invoked by uid 500); 11 Dec 2003 22:21:29 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 4856 invoked by uid 500); 11 Dec 2003 22:21:28 -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 Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 4843 invoked from network); 11 Dec 2003 22:21:28 -0000 Received: from unknown (HELO helpmagic-mail.helpmagic.com) (213.120.254.3) by daedalus.apache.org with SMTP; 11 Dec 2003 22:21:28 -0000 Received: from misgl.com ([192.168.4.41]) by helpmagic-mail with InterScan Messaging Security Suite; Thu, 11 Dec 2003 22:40:38 -0000 Message-ID: <3FD8EDD1.8020901@misgl.com> Date: Thu, 11 Dec 2003 22:21:05 +0000 From: Simon Hutchinson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Authentication context and modular database action. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I am using a ModularDatabaseAction to insert a row into a database. Everything is working fine as most of the field values are available as request parameters.However I also need to store a value that is stored in the authentication context. I am sure that writing my own InputModule for this is overkill as the information is available already. Either of the following types of solution would be cool if anyone could point me in the right direction.(of course I am completely open to a better solution :)) 1). Is it possible to access the authentication context using the session-context InputModule in the database descriptor ? ie authentication/authentication/ID note: I tried this and it didn't work.The IDs value is available in the sitemap using the same input module ie {session-context:authentication/authentication/ID} So maybe I am writing the incorrectly ? 2). Is it possible to pass values as parameters to the action directly from sitemap. ie If the answer is yes than a code snippet showing how to access the parameter from within the database descriptor would be great. Any assistance to a new cocoon user would be wonderful. Thanks Si --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org