Hi Michael, Our application is also based on EJBs. In our case, the business layer can provide standard Value Objects (through a Session Facade) or their XML representation. All those XML parts are put together in View objects to construct our proprietary DOM tree. After that the XSL transformation is applied and returns the HTML content in a ServletResponse.
The problem with our current presentation layer is that the control logic is managed by many different servlets and is therefore very difficult to maintain. There is also a lot of 'cut & paste' code in those servlets because there was no concept of ActionForms and Action objects. We would also like to define the navigation in an XML descriptor instead of putting it inside the servlets (that's what struts-config.xml does). For the transformation, I was also thinking about using a Filter servlet to transform the XML to HTML and decouple it from the main application. But for that we need to move to WebLogic 6.1 to get the servlet API 2.3. That's what we have now... Denis. -----Original Message----- From: Michael Baldwin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 12:24 PM To: [EMAIL PROTECTED] Subject: Re: Using Struts with XML ? Denis, I'm looking at the a similar problem for a new system. I'd very much like to apply XSLT to the result. I'm considering using struts Actions to interact with an EJB layer that will produce value objects. I'm thinking then about forwarding on the request to a JSP that understands how to transform these value objects into a DOM tree and then uses a XSLT Transformer to do the real work. >From what I can tell, this path has not been well tread using struts, so I'm still looking at options. How are you currently going about XML document generation and XSLT template application? Is it all servlet managed? I'd be interested to hear. --Michael