Package net.sf.pmr.struts.administration.core.form

Examples of net.sf.pmr.struts.administration.core.form.UserProjectForm


    List basicProjects = projectService.findAll();
   
    request.setAttribute("basicProjects", basicProjects);
   
    // populate the form
    UserProjectForm userProjectForm = (UserProjectForm) form;
    userProjectForm.setUserPersistanceId(Integer.parseInt(request.getParameter("userPersistanceId").toString()));
   
    // populate the summary
    //UserService userService = CoreObjectFactory.getUserService();
    //User user = userService.findByLogin(request.getParameter("login"));
    // get the user service
View Full Code Here


      throws Exception {
     
    // get the user service
    UserService userService = CoreObjectFactory.getUserService();
    // get the form
    UserProjectForm userProjectForm = (UserProjectForm) form;

    // call the service
    userService.addUserToProject(userProjectForm.getUserPersistanceId(), userProjectForm.getBasicProjectPersistanceId());

    // return to the detail
      return mapping.findForward("userList");
     
  }
View Full Code Here

TOP

Related Classes of net.sf.pmr.struts.administration.core.form.UserProjectForm

Copyright © 2018 www.massapicom. 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.