Beispiel #1
0
 public static void main(String[] args) {
   try {
     PersonSrvsRegionManager ssrMgr = new PersonSrvsRegionManager();
     List regnList = ssrMgr.getSubscribedSrvsRegions("1", "2", "B");
     PersonAction action = new PersonAction();
     List locnsList = action.prepareLocationFormList(regnList);
     SubscribeServiceForm form = new SubscribeServiceForm();
     form.populateForm(locnsList);
     List locnForms = form.getLocns();
     System.out.println("Getting the results from the form : ");
     for (int x = 0; x < locnForms.size(); x++) {
       LocationForm form1 = (LocationForm) locnForms.get(x);
       System.out.println(form1.getRegionId1());
       System.out.println(form1.getRegionId2());
       System.out.println(form1.getRegionName1());
       System.out.println(form1.getRegionName2());
     }
   } catch (Exception ex) {
     ex.printStackTrace();
   }
 }