Flex|Flex Tree动态数据

public class PageAction extends DispatchAction { private ExecuteBiz ebz=null; public void setEbz(ExecuteBiz ebz) { this.ebz = ebz; } /** * Method execute * @param mapping * @param form * @param request * @param response * @return ActionForward */ public ActionForward getAll(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { //PageForm pageForm = (PageForm) form; // TODO Auto-generated method stubString pageID= request.getParameter("pageId"); //当前的第几页 System.out.println(pageID); Page page=new Page(); page.setPageNum(1); //默认当前第1页if(pageID!=null){ page.setThisPage(Integer.parseInt(pageID)); }page.setPageNum(10); //设置每页显示的数量默认10条 page.setAllPageNum(ebz.getCount()); Listlist=ebz.getList(page); StringBuffer xml=new StringBuffer(); xml.append(""); xml.append(""); for(Juser user:list){ xml.append(""); } xml.append(""); try { PrintWriter out=response.getWriter(); out.print(xml); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } System.out.println(xml); request.setAttribute("list", list); return null; //mapping.findForward("index"); } }


    推荐阅读