Regarding stxx, you don't have to extend the stxx Action class, as you can use the static StxxHelper to perform all its functions. Also, you don't have to send it a prebuilt DOM, but can put objects in the request and let its XML serializer try to create an XML representation for you. Alternatively, you can replace the serializer and plug in your own.
The Struts Cocoon project is not developed anymore, true, but it is really quite simple. All it does is transform the Cocoon servlet into a RequestProcessor, leaving Struts and Cocoon to do its thing. If you really liked Cocoon, I'd recommend just using Cocoon and use its Javascript-based flow for the controller. You can use it as a simple glue between the framework and your business classes. WebWork 2 does support XSLT output, however, I don't know much about it (yet). :) Don On 3/1/06, Vladimir Olenin <[EMAIL PROTECTED]> wrote: > > Hi, > > I need to pipeline the output from the Struts based application (the > output will be a generically marked up XML) to various output formats > (PDF & HTML for now). This should approximate to the 'Two Step View' > pattern, which seems to make sense. The flow can be sketched as: > > Browser --(request)--> WebApplication --(XML)--> Transformation > Pipeline: [XML to PDF] OR [XML to HTML] > > I looked into Cocoon, but want to use only the 'pipeline' functionality > and keep all logic elsewhere if possible (XSP plainly sucks for complex > websites; the 'action' class is not very impressive as well). It seems > like Cocoon plugin should make the trick. The only problem is the last > release is dated back to 2004. Mailing list is not maintained anymore > and it seems there is no more development done there. > > I wonder if anyone used this configuration (Struts & Cocoon) in > production environment and if it is reasonably stable? > > Another thing that came across as a possibility is 'stxx' project. But > it seems to actually replace Struts, which I don't want (you need to > extend your Action classes from a different, stxx, base class and I > don't want this lockin. Plus I want to generate XML through templates, > while Stxx requires you to send a 'prebuild' DOM tree to the input). > > The last possiblity I'm considering is moving from Struts to WebWork2 > altogether and try to use the Interceptors to generate output in > different formats. Not really sure how well it might work out. > > Please, let me know your thoughts on what approach might be the best. > > Thanks. > > Vlad > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >