About 8 months ago our company built a prototype for putting XML/XSLT on top of Struts. I'll share our idea with you.
Instead of JSP, we wanted to use XSL to transform our business model into HTML. To do this, we changed the notion of a forward so that it was forwarding to a logical view that uses an XSL instead of a JSP. For each logical view, we specify objects within the various scopes that are required to produce this view. Instead of converting the web-tier objects into XML directly or through reflection, we put a DOM facade on top the collection of objects required for this view. To the XSLT processor, it all looked the same. After marshalling these objects into the DOM Facade, we then transform it with the XSLT processor, and send it to the client. We used CSS for client-side aesthetics. It was a really nice solution, and I think it was way cool. The reason we didn't move forward was due to lack of development skills in XSL versus JSP, and how that would affect time to market. -Chris ----- Original Message ----- From: "Heligon Sandra" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 11:35 AM Subject: Struts with XML/XSLT > > Hi, > > I have a simple struts application with: > > - two JSP pages (index.jsp, registration.jsp) > - two JavaBean classes, each of this class > has a method GetXML_Description() > It runs well, but the interface is very simple. > > at the moment I use the tag logic:iterate in the JSP page to display > the bean's content the first bean includes a list of a second type > pf > beans). I don't know how offer a GUI with a tree-view. > I think that it is perhaps more easy to do this with an XML/XSLT > output. > I don't really understand how replace my JSP by an XML/XSLT view. > Do I have to use XSLT constructors (such as <xsl:if> <xsl:choose>) > or struts HTML, logic and bean tags ? > I have to demonstrate very rapidly to my boss that it is possible, > thanks a lot to give me a complete example with Servlet/JSP/struts > transform to Servlet/XML/XSLT/struts application. > > Sandra > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>