This is a non-sequitur:

"In handle_page.xsp i will read the parameters and pass it to another
url"

XSP is a generator at the start of a pipeline - it handles
parameters coming in; it does not generate URIs.

My example shows that, if you have a http://xxx?x=3&y=4  call
you can handle it in a pipeline which may contain an XSP,
which is, itself, able to access those x and y values and
deal with them appropriately.

Remember the basic model for a web-app is "request-response";
the user generates the request and you provide the response.
In Cocoon you can think of it ito of what URI is being supplied
and work out how to deliver what the user wants to see...

As always, if you specify more about the real problem you are
trying to solve, it helps to see why you may be tackling it in the
wrong way - I have the feeling you are stuck halfway down a 
wrong path... there are no correct turns here & you need to go
back to the start.

>>> [EMAIL PROTECTED] 2004/08/20 07:47:01 AM >>>
In handle_page.xsp i will read the parameters and pass it to another
url.How can this be specified in handle_pag.xsp ie redirecting to
another url, which will have a pipeline match pattern (containing
my_next_page.xsp as generator).

Also why have you given transform as page2html.xsl? Can it be something
else?

Smith


Quoting  [EMAIL PROTECTED]: 

> Smith
> 
> In Cocoon, its the role of the pipeline to handle requests...
> Assuming I type http://xxx?x=3&y=4 into my browser,
> or that this URI results from another form somewhere in
> the system, why not just have a pipeline match for this:
> 
>     <map:match pattern=\"xxx\">
>       <map:generate  type=\"serverpages\" src=\"handle_page.xsp\"/>
>       <map:transform src=\"page2html.xsl\">
>         <use-request-parameters>true</use-request-parameters>
>       </map:transform>     
>       <map:serialize/>
>     </map:match>  
> 
> (Obviousy the my_next_page.xsp can also handle the X and Y if
> needed...)
> 
> Derek
> 
> >>> [EMAIL PROTECTED] 2004/08/19 03:03:45 PM >>>
> I retrieve 2 parameters from a url using xsp request.
> 
> is there any way to post these 2 parameters to the next url
> automatically without having a submit button ?
> 
> ie the url http://xxx?x=3&y=4 should automatically direct to a page
> where the values of x and y will be posted.
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to