Drupal CMS integration with JEE

Content is best managed in a Content Management System (CMS). However, CMS system doesn't stand alone - it's most useful when integrated with other systems (.e.g. a transactional e-Commerce site). But how to do this integration?

Most CMS systems (Teamsite, Drupal, Wordpress, OpenCMS etc.) either export XML content or expose APIs to access the content in XML form. So it's only logical to parse this XML and extract the content. Here's some sample code to integrate Drupal CMS content with JSP.

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>

<c:import var="p" url="http://127.0.0.1/modules/drupal77x120607145002/rss.xml"/>
<x:parse xml="${p}" var="output"/>
<x:out select="$output/rss/channel/item/description" escapeXml="false"/>

I'm still trying to figure out how to identify content uniquely.

Comments

Popular posts from this blog

GNU Emacs as a Comic Book Reader

Tinylisp and Multi-threaded Emacs

Data Visualization with GNU Emacs