02-26-2008 07:50 AM
02-26-2008 03:35 PM
public static List<CompanyFooterBean> getCompanyFooterChoices(final PageContext pageContext)
053 throws Exception
054 {
055 final FormDataFunctions ef =
056 new ServletContextFormDataFunctionsAdapter(pageContext.getServletContext());
057
058 final Map<String, Document> entries =
059 ef.parseXMLDocuments("company-footer", "/media/releases/content");
060 final List<CompanyFooterBean> result = new ArrayList<CompanyFooterBean>(entries.size());
061 for (Map.Entry<String, Document> entry : entries.entrySet())
062 {
063 final String fileName = entry.getKey();
064 final Document d = entry.getValue();
065 final Element n = (Element)d.getElementsByTagName("pr:name").item(0);
066 result.add(new CompanyFooterBean(n.getFirstChild().getNodeValue(),
067 fileName));
068 }
069 return result;
070 }
071
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.