%@ 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("");
for (int i = 0; i < formCollections.size(); i++) {
FormCollectionImpl formCollectionImpl = (FormCollectionImpl) formCollections.get(i);
sb.append(""+formCollectionImpl.getPageid()+"");
sb.append(""+formCollectionImpl.getDescription()+"");
}
sb.append("");
out.print(sb.toString());
%>