Hi Thanks for the solution. I have tried using <request:param>. It works.
Cheers On Wed, Jul 23, 2008 at 9:41 PM, <[EMAIL PROTECTED]> wrote: > Like Thorsten, an early attempt of mine used "post.xsp" still found in > the 1.3 branch. I am replacing uses of this XSP with Cocoon's > RequestGenerator. > > "I want to know how the parameters are passed from a page containing a > form to the pipeline." > > HTTP uses the GET and POST methods to pass information from a page to > a Web server. Research HTML Forms for more information. > - GET places a limited amount of information into the querystring. > Lenya/Cocoon can retrieve these parameters using input modules. The > request-param is the best (most specific) module for this. > - POST places the information into the ContentBody. The > RequestGenerator allows access to the information as XML. Java, XSP, > and JavaScript can access the information from the Request object. > > Do you have concerns specific to Lenya or just need a tutorial about > basic Web applications? I do not know where to find good tutorials; > maybe someone else can recommend one. > > HTH, > solprovider > > On 7/23/08, sac sha <[EMAIL PROTECTED]> wrote: > > Thanks for the solution. > > Actually I want to know how the parameters are passed from a page > containing > > a form to the pipeline. > > I would not use xsp because i think its not a good way to do things. > > > > What ya say? > > Sac > > > > On Wed, Jul 16, 2008 at 4:02 PM, Thorsten Scherler > > <[EMAIL PROTECTED]> wrote: > > > On Wed, 2008-07-16 at 15:27 +0530, sac sha wrote: > > > > Is there anyway so that I can pass parameters through pipeline. Like > I > > > > have a link in tabs say "test" and I want two paramters "name" and > > > > "password" to be passed to a generator. How can I do that ? > > > > > http://cocoon.apache.org/2.1/userdocs/concepts/matchers_selectors.html > > > Using this parameter from the url: > > > <map:match pattern="*/*/*/*/report.html"> > > > <map:generate type="serverpages" > > src="docs/getPostcodeData.xsp"> > > > <parameter name="postcode" value="{1}{2} {3}{4}"/> > > > </map:generate> > > > ... > > > If you have the parameter in the request you need to use the request > > > input modules. > > > > > http://cocoon.apache.org/2.1/userdocs/concepts/modules.html > > > <parameter name="password" > > value="{request-param:password}"/> > > > > > > HTH > > > > Thanks > > > > Sac > > > -- > > > Thorsten Scherler > thorsten.at.apache.org > > > Open Source Java consulting, training and > solutions >
