From dev-return-94020-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Mon Apr 02 12:40:30 2007 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 94583 invoked from network); 2 Apr 2007 12:40:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2007 12:40:27 -0000 Received: (qmail 10564 invoked by uid 500); 2 Apr 2007 12:40:33 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 10190 invoked by uid 500); 2 Apr 2007 12:40:32 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 10179 invoked by uid 99); 2 Apr 2007 12:40:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 05:40:32 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ap-cocoon-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 05:40:24 -0700 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HYLpK-0004eh-3Z for dev@cocoon.apache.org; Mon, 02 Apr 2007 14:40:02 +0200 Received: from 217.244.9.5 ([217.244.9.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Apr 2007 14:40:01 +0200 Received: from alexander.klimetschek by 217.244.9.5 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Apr 2007 14:40:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@cocoon.apache.org From: Alexander Klimetschek Subject: Re: Parameters in request get lost when using servlet: protocol Date: Mon, 02 Apr 2007 14:37:19 +0200 Lines: 41 Message-ID: References: <47f71d940704012335ic080521s177e9a03d8b512e1@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 217.244.9.5 User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) In-Reply-To: <47f71d940704012335ic080521s177e9a03d8b512e1@mail.gmail.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org We had the same problem already with the previous block: protocol. Currently the only way to send parameters to the other servlet via the URL. Thus I have written a simple input module that converts your params into URL params: - ParamsToURIModule: (Input Module) a meta module that converts all attributes of another module into a correct uri query string (&a=b;c=d) http://www.mindquarry.org/repos/mindquarry-webapp/trunk/mindquarry-webapp-resources/src/main/java/com/mindquarry/webapp/modules/ParamsToURIModule.java To use it, simply write this (if the input module is registered under 'params-as-uri': It is a meta input module, ie. it takes the name of another module and converts all it's attributes into an URL query string. In this case it will add all request parameters. Alex Rice Yeh schrieb: > Hi, > I find that all the parameters in a http request get lost when using > servlet: in a sitemap like the following: > > > > Any clue? > > Rice > -- Alexander Klimetschek http://www.mindquarry.com