public String QueryAppItems() { AppManageService ams = new AppManageService(); items = new ArrayList<Application>(); try { // if( queryAll ) { Application criteria = new Application(); criteria.setName(appName); criteria.setFlag(appFlag); total = ams.QueryAllAppItems(criteria, page, rows, items); // } else { // total = ams.QueryUserItems( id, page, rows, items ); // } } catch (Exception e) { message = e.getMessage(); setResult(false); return SUCCESS; } setResult(true); return SUCCESS; }