cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: Errror messages flowscript
Date Tue, 15 Feb 2005 16:59:51 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message