You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jerzy Kut <je...@rzeszow.tiger.com.pl> on 2002/04/02 16:46:00 UTC

redirection and parameters

Hi all!
I know that similar questions has got on this list, but I can't found
resolve of my trouble.
I need to:
1. make redirection from one pipeline to another.
2. add a few parameters to new pipeline request.

Is it possible?

I try:

 <map:resources>
  <map:resource name="message">
   <map:generate type="request"/>
   <map:serialize type="xml"/>
  </map:resource>
 </map:resources>

<map:pipelines>
 <map:pipeline>
   <!--
     - selects document with managing of employees
     -->
   <map:match pattern="employee">

    <map:select type="parameter">
     <map:parameter name="parameter-selector-test" value="{$action}"/>

     <map:when test="new">
      <map:redirect-to uri="employee-new"/>
     </map:when>

     <map:otherwise>
      <map:redirect-to resource="message"/>
     </map:otherwise>

    </map:select>
   </map:match>
  </map:pipeline>
</map:pipelines>

When I try request form like:
http://localhost:8080/cocoon/myapp/employee?action=any
I want to pass to "message" resource one additional parameter
param=value
I try to do it as:

     <map:otherwise>
      <map:parameter name="param" value="value"/>
      <map:redirect-to resource="message"/>
     </map:otherwise>
but it doesn't run. I don't want to do it as:
      <map:redirect-to resource="message?param=value"/>

I have cocoon2.0.1.

What is the method to pass additional parameters with redirection?
Please help if it's possible.

Best regards

Jerzy Kut



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


form-validator and UTF-8 ???

Posted by Montier Patrick <pa...@easance.com>.
When i use the form-validator section with an UTF-8 sql table having a login
and password (Mysql) , the cocoon process reject all non ascii records.

For example, all japanese fields are correctly managed in all xsp / xsl
pages but when registering, all french or japanese caracters are rejected. I
have no error but the process don't seem to retreive those records: If i do
manually the select,  it works.

How to declare in the sitemap.xmap that i want the form-validator to accept
utf-8 comparison and validation ?

(I use the 2.1-dev cocoon release).

Thanks for your great help.

Patrick Montier


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>