You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Aurélien DEHAY <ad...@zorel.org> on 2004/10/01 17:28:26 UTC

redirect problem

Hello.

I've got redirect problems with flow and XSP.

I've got a form in a html page pointing to a flow function main(). The 
function is very simple:

function main() {

     var post=cocoon.request.get("post");
     post = CPadawan.getInstance().replaceExpr(post,"html");
     cocoon.sendPage("post.xsp", {"post" : post} );
}

(CPadawan is juste a sanitizer of the post value)

The post.xsp page just do a insert in a database with informations from 
"post" field. Here is the sitemap entry of post.xsp:

       <map:match pattern="post.xsp">
         <map:generate type="serverpages" src="screens/post.xsp"/>
         <map:serialize/>
       </map:match>

I'd do a redirect after the XSP execution. I'd like to make my post.xsp 
an serverpages action to check the success or the failure of the 
insertion into the database.

I've tried several solutions, but none works. What is the good way to do 
this?

Regards.
-- 
Aurélien DEHAY

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org