Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 94477 invoked by uid 500); 19 Jan 2003 23:14:15 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 94466 invoked from network); 19 Jan 2003 23:14:15 -0000 Message-ID: <3E2B314B.4040008@cc.oulu.fi> Date: Mon, 20 Jan 2003 01:14:19 +0200 From: Andre Juffer Reply-To: Andre.Juffer@oulu.fi Organization: The University of Oulu User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: how to access parameter inside of action References: <001101c2c009$c7c377b0$0d0110ac@TINYTIM> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Nils Le�mann wrote: > Hi! > > > > This one can?t be too tough ? anyway I?m not able to find an example > somewhere. I?m writing my own action and need to pass a parameter, with > something like > > > > > > > > How can I access this value inside the action? The cocoon docs just > mention that this work, but not how. This should work: In sitemap: In your action: public class YourAction extends AbstractAction implements ThreadSafe { public Map act (Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters params) { String fileid = params.getParameter("fileid"); .... } > > > > Regards, Nils > > ________________________________________________ > > Nils Le�mann > > Stockacher Str. 38 > > 68239 Mannheim > > > > 0175 - 814 899 8 > > > > > > > -- Andre H. Juffer | Phone: +358-8-553 1683 The Biocenter and | Fax: +358-8-553-1141 the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi University of Oulu, Finland | WWW: http://www.biochem.oulu.fi/Biocomputing/ --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: