-----Original Message-----
From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:05 AM
To: '[EMAIL PROTECTED]'
Subject: RE: sexy open source

> -----Original Message----- 
> From: Artur Bialecki [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 14, 2002 10:02 AM 
> To: [EMAIL PROTECTED] 
> Subject: RE: sexy open source 
> Cocoon right now (2.0.3) has no good way to handle 
> errors generated by J2EE business logic. 
can you elaborate this in a little more details? I don't quite get what you mean by 
that, sorry 


All I'm saying is that logicsheets which are used during
generation of server pages are not the best palce to
call J2EE business logic. EJBs can throw many exceptions
and by the time you get to generation all you can 
do is transform on your errors so in the simplest form
your stylesheet must be able to handle all possible errors
generated on the given page. I consider an internal redirection
much better approach to handling errors, e.g. On error I can
redirect back to the original form. Gets even worse if you
EJBs have input on which stylesheet to use, e.g. If inventory item
foo (business object) has stylehseet hint then use it, otherwise
use default_inventory_item.xsl.
Way I can get around this is to process my XSP which uses logicsheets
with calls to J2EE beans before generation starts.

Artur...


---------------------------------------------------------------------
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]>

Reply via email to