<%@ page import=" com.obinary.cms.Aggregator,
com.obinary.cms.core.HierarchyManager,
com.obinary.cms.core.Content"%>
<%!
public String getImageValue(HttpServletRequest request, String name, String defaultValue) {
String returnValue = defaultValue;
try {
HierarchyManager hierarchyManager= HierarchyManager)request.getAttribute(Aggregator.HIERARCHY_MANAGER);
String URI = (String) request.getAttribute(Aggregator.HANDLE);
Content imageProperties = hierarchyManager.getPage(URI+"_properties");
Content theParagraph = imageProperties.getParent();
String text = theParagraph.getNodeData(name).getString();
if (text != null && text.length() > 0) {
returnValue = text;
}
} catch (Exception e) {
}
return returnValue;
}
%>