1234567891011121314151617181920212223242526 |
- <%@ page contentType="text/html; charset=UTF-8" language="java"%>
- <%@ page
- import ="java.util.*,
- com.sysmodel.collectmodel.xmlmodel.impl.FormCollectionImpl,
- com.sysmodel.XFormFactory"
- %>
- <%
- List formCollections = null;
- String type= request.getParameter("type") == null ? "" : request.getParameter("type");
- if(type.equals("")){
- formCollections = XFormFactory.getXFormModel().getFormCollections();
- } else {
- formCollections = XFormFactory.getXFormModel().getFormCollectionsByType(type);
- }
- StringBuffer sb = new StringBuffer();
-
- sb.append("<root>");
- for (int i = 0; i < formCollections.size(); i++) {
- FormCollectionImpl formCollectionImpl = (FormCollectionImpl) formCollections.get(i);
- sb.append("<pageid>"+formCollectionImpl.getPageid()+"</pageid>");
- sb.append("<description>"+formCollectionImpl.getDescription()+"</description>");
- }
- sb.append("</root>");
- out.print(sb.toString());
- %>
|