This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi guys, I'm a java programmer but new to XML,XSLT. Now I'v to use XML for the presentation layer instead of JSP, as we use to do in our projects. I have basic knowledge of XML, XSL. Please help me how shd I begin to present the GUI in XML format. for example, I have to fetch some information from database(usind DAO) and present it in xml format. regards, Neha
The idea is that you don't present the GUI in XML format. The XML should ideally contain only data -- the XSL stylesheet includes the knowledge of what kind of HTML document to transform the XML into. A typical Servlet/XSL architecture looks like the following: 1) A servlet receives an HTTP request 2) A controller class of some sort performs its magic and returns an XML document 3) The servlet (or a servlet filter) runs the XML through XSL transformation 4) The browser receives the HTTP response containing an HTML page