<%@ page pageEncoding="UTF-8"%> <%@ page contentType="text/html; charset=UTF-8" language="java" %> <%@ page import ="java.util.*"%> <%@ page language="java" import="com.sysmodel.XFormFactory"%> <% request.setCharacterEncoding("GBK"); List list = XFormFactory.getXFormModel().getFormLists(); String moduleType = request.getParameter("type") == null? "" :request.getParameter("type"); if(moduleType.equals("")){ list = XFormFactory.getXFormModel().getFormLists(); }else{ list = XFormFactory.getXFormModel().getFormListByType(moduleType); } int limited = list.size(); if(list.size() > 1){ limited --; } System.out.println(limited); %>