This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I just read over the section on XSP in the book I have on Java and XML, and it seems to discuss XSP within the framework of Cocoon (http://xml.apache.org/cocoon/index.html). Are you using Cocoon? If so, can you please tell me how you like it and what server you are using it with? If not, what are you using to process your XSP? Basically the way I read this (and I have never used XSP) is that XSP allows you to dynamically create XML documents by inserting Java code between <xsp:logic> tags. For example:
The above should (and I've never tried it) allow you to dynamically output the adminInstruction content within your XML document. You would still use XSL to process into HTML (or something else). The book I am reading describes this as overcoming a (sometimes) limitation of JSP in that it is easy to mix presentation and business logic. It seems like a few extra steps to get it set up, though. To your specific question, are you using something like Cocoon that will process XSP? Does anyone know of another product for using XSP? Bill
Joined: Aug 18, 2000
Yes I am using Cocoon. I don't know of any other processor for xsp either. The server I am using is Tomcat. The problem I am finding is that there are very few examples of xsp anywhere. I have read and reread the Cocoon stuff and am getting there..... Which book are you using?
Chapter 9 covers web publishing frameworks, including Cocoon installation and configuration. I am familiar with Cocoon, but have not set it up. The chapter seems to be pretty thorough. It is also very good at XSL. Good luck, Bill
Also bear in mind that Resin ( www.caucho.com ), as well as being a high-performance, open-source 2.2-compliant Servlet Container, also has XML, XSL and JSP built-in. It will do XSLT-formatted JSP "out of the box". I'm a happy user, anyway.