Rajasekhar Atchutuni dijo: > > Hi, > > I am using cocoon 2.0.3 with tomcat 4.1. > > In my xsl form submit I call an action that generates an xsp. The xsp > writes the form data to sql; After this I need an auto redirect to the > home page. How do I do this? > > Thanks for the help. > > Raj
Hi: I understand that you generate a request that use the XSP Generator. (Please, dont get me wrong here. I am just trying to explain what I understanded from your mail). If this is true.... You can change the pipeline to make the update to the SQL database using Database Actions (there are two flavors) and after sucessfull update, you redirect the page where you need it. Any Action is executed inmediately as they are readed from the sitemap. Please read between lines: "before the selected pipeline is executed". For more info about Database Actions see: http://wiki.cocoondev.org/Wiki.jsp?page=DatabaseActions By the way, If you can, update to 2.0.4 that is more stable... Note: I dont know if Modular Database Actions works in 2.03 I think no, but check for some examples if this flavor of DB Actions are included or not. Original Database Actions are fine too. I hope It will helps you. Best Regards, Antonio Gallardo. > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>