Package org.apache.struts.action

Examples of org.apache.struts.action.DynaActionForm.initialize()


    }

    // this.updateGroup(form , status);
    ListGenerator lg = ListGenerator.getListGenerator(dataSource);
    lg.makeListDirty("Marketing");
    dynaForm.initialize(mapping);

    return (mapping.findForward(returnStatus));
  }

  public void updateList(ActionForm form, String status)
View Full Code Here


      hmFolder.put("foldername", foldername);
      hmFolder.put("folderid", new Integer(Integer.parseInt(folderid)));

      int i = remote.editFolder(individualId, hmFolder);
      // TODO do something with this return value?
      dynaForm.initialize(mapping);
    }
    catch (Exception e)
    {
      System.out.println("[Exception][EditFolderEmailHandler.execute] Exception Thrown: " + e);
      e.printStackTrace();
View Full Code Here

        eventid = Integer.parseInt(request.getParameter("eventid").toString());
      }

      //request.setAttribute("eventid",""+eventid);
      DynaActionForm dynaForm = (DynaActionForm) form;
      dynaForm.initialize(mapping);

      /*ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("Event");*/
      //return (mapping.findForward("addattendees"));
      FORWARD_final = FORWARD_displayAddAttendee;
View Full Code Here

      int moduleId = getModuleId(request);
      DynaActionForm reportForm = (DynaActionForm)actionForm;
      String createNew = (String)reportForm.get("createNew");
      if (createNew.equals("true"))
      {
        reportForm.initialize(actionMapping);
        reportForm.set("moduleId", new Integer(moduleId));
      }
      ReportVO reportVO = null;
      ReportFacade remote = getReportFacade();
      String action = request.getParameter("action");
View Full Code Here

      // createNew is a string attribute that tells this handler if it should clear
      // the form.
      String createNew = (String)adhocReportForm.get("createNew");
      if (createNew.equals("true")) {
        adhocReportForm.initialize(actionMapping);
      }
      // make sure the right moduleId is on the form.
      adhocReportForm.set("moduleId", new Integer(moduleId));

      AdvancedSearch remoteAdvancedSearch = null;
View Full Code Here

    this.updateList(form, individualID);

    ListGenerator lg = ListGenerator.getListGenerator(dataSource);
    lg.makeListDirty("Marketing");
    dynaForm.initialize(mapping);

    return (mapping.findForward(returnStatus));
  }

  public void updateList(ActionForm form, int individualID) throws CommunicationException, NamingException
View Full Code Here

    {
      HttpSession session = request.getSession(true);
      request.setAttribute("TypeOfOperation", "Event");
      //have this so an empty list shows up at the bottom.
      DynaActionForm dynaForm = (DynaActionForm) form;
      dynaForm.initialize(mapping);

      UserObject userObject = (UserObject)session.getAttribute("userobject");

      int individualId = userObject.getIndividualID();
View Full Code Here

        String action = request.getParameter("action");
        if (action == null) {
          String showFields = (String)adHocReportForm.get("showFields");
          String createNew = (String)adHocReportForm.get("createNew");
          if (createNew != null && createNew.equals("true")) {
            adHocReportForm.initialize(mapping);
          }
          reportVO = remote.getAdHocReport(userId, reportId);
          // I guess showFields is used to determine if the user edited any of the fields, that are on the form
          // but not yet in the database.  So we know to pull the report stuff from the DB
          // and then change the selected fields based on the current form.
View Full Code Here

          ReportVO reportVO = getAdHocReportVOFromForm(timeZone, reportForm);
          ReportFacade remote = getReportFacade();
          reportId = remote.addAdHocReport(userId, reportVO);
          if (action.equals("new")) {
            // if save&new then show a blank form.
            reportForm.initialize(actionMapping);
            nextURL = "newaddhocreport";
          } else if (action.equals("run")) {
            reportForm.set("createNew", "true");
            request.setAttribute("reportId", String.valueOf(reportId));
            nextURL = "showadhocreportresult";
View Full Code Here

          }
        }
      } else {
        // if it is some other value besides new, close, or run
        // reinitialize the form.
        reportForm.initialize(actionMapping);
        nextURL = "addadhocreport";
      }
      session.setAttribute("moduleId", String.valueOf(moduleId));
      // unless ViewAdHocReport.do needs the following whack it.
      request.setAttribute("reportType", String.valueOf(ReportConstants.ADHOC_REPORT_CODE));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.