http://cocoon.apache.org/2.1/userdocs/flow/api.html ,
sendPage([String] uri, [Object] bean) should do the trick, uri could point to a sitemap with a jx generator where you generate your error message.
Alternatively, you can define an error handler for a pipeline (http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html#Handling+Errors) and handle things there. There is more in the docs and wiki about this.
HTH Jorg
Mark Lowe wrote:
Hello
Lets say my flow script gets past the view tier validations, and then when passing the modifed bean up to the model (populated via binding etc).
try {
// save command here
} catch (e) {
how do forward back to the view and add an error message to be dsiplayed?
}
Thanks
Mark
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
