You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Derek Hohls <DH...@csir.co.za> on 2003/12/15 07:27:53 UTC

Redirects in Cocoon 2.1.3 ?

I am in the process of converting old sites from Cocoon 2.0.4 to 
Cocoon 2.1.3.  I have the following code snippet, which works fine 
in the former:

    <!-- Form target which performs auth service   -->    
    <map:match pattern="docs/do-login">
      <!-- first validate whether submitted values are ok -->
      <map:act type="form-validator">
        <map:parameter name="descriptor"
value="context://subdir/protected/params.xml"/>
        <map:parameter name="validate" value="username,userpass"/>
        <map:act type="db-authenticator">
          <map:parameter name="descriptor"
value="context://subdir/protected/auth.xml"/>
          <!--redirect to protected area-->
          <map:redirect-to uri="../mng/docs/index"/>
        </map:act>
        <map:redirect-to uri="login"/>
      </map:act>
      <!--  something was wrong, try it again 
      <map:redirect-to uri="login"/>-->
      <map:generate  type="file" src="docs/error.xml" />
      <map:transform src="styles/basic-page2html.xsl"/>
      <map:serialize />  
    </map:match>  

But Cocoon 2.1.3 complains 

org.apache.avalon.framework.configuration.ConfigurationException: 
An action set can only contain actions and not 'redirect-to' 

Could somene please suggest how to create the correct logic ?
(it would be ideal to have the same logic that works in both
versions!)

Thanks
Derek


-- 
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org