display | more...

XML Server Pages. XSP is a new standard that seeks to rectify problems with the JSP specification, for example, unlike JSP XSP does not allow the parser access to out stream which allows for faster compilation as well as other technical benefits. Based on XML, XSP is used by the Jakarta Project's Cocoon XML content management system to specify dynamic content.

Possibly the coolest tla, XSP's (XML server pages) home in the world is http://xml.apache.org/cocoon/. Cocoon is an XML publishing framework that runs under Jakarta (http://jakarta.apache.org/). Cocoon's primary concern is seperating content, logic, and style.

Painless install

You will need a JVM (http://java.sun.com/) and a servlet engine (http://jakarta.apache.org/tomcat/). Set JAVA_HOME enviornment variable so it points to your JDK (e.g. under windows, go to system properties -> advanced tab -> environment variables -> new: JAVA_HOME = 'c:\j2sdk1.4.0'). Download the appropirate binaries (or source, if you're so inclined) from http://xml.apache.org/cocoon/dist/ Stop tomcat. Extract cocoon.war from the archive and place it in your $TOMCAT/webapps directory. Start tomcat. Open http://localhost:8080/cocoon/ and wait while the .war is unpacked — It seems you got me running :)

Be sure to check out the samples (http://localhost:8080/cocoon/welcome). Happy XSP-ing.

Log in or register to write something here or to contact authors.