Hi,

I have a fairly complicated webapp built on C1 that know needs to be
ported to C2. The webapp has been growing, and all things haven't
necessarily been done the right way from the beginning, so the over-haul
is needed. The app now consists of a lot of xsp files (each containing
data, internationalized to 2 languages. The third wasn't possible due to
the 64k limit), and some xslt files for html transformation. 

I've been playing around with C2, and have a quite good understanding of
how things work compared to C1. I've looked at the following stuff,
which seem quite straight forward:

- Internationalization. (i18n transformer)
- xslt transformation accoring to user-agent/other preferences (sitemap)
- serialization to desired type (sitemap)
- Session and request parameter validation (actions)

The main thing, however, is that I'd like to find a good and easy way to
use EJBs. All my logic is actually in EJBs, so is there a logicsheet or
some other convienient way of accessing EJB's? Also, as I have to use
the EJBs in my actions (user logging in, a form submitted, etc), can I
aggregate content from the action to the XSP in some clever way? I could
wrap stuff in JavaBeans (not enterprise), but this would require a bean
for each action->xsp. Or, I could put content in a DOM tree in the
Action, and pass it to the xsp. Is there a good pattern for stuff like
this? I'd like have my xsp's as much code free as possible.

(As a request, a pattern repository for cocoon based apps would be very
nice...)

- Anders


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to