/* * Created on Nov 18, 2003 * */ package net.sourceforge.fenixedu.presentationTier.Action.person; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import net.sourceforge.fenixedu.applicationTier.IUserView; import net.sourceforge.fenixedu.dataTransferObject.person.InfoSiteQualifications; import net.sourceforge.fenixedu.presentationTier.Action.base.FenixAction; import net.sourceforge.fenixedu.presentationTier.Action.resourceAllocationManager.utils.ServiceUtils; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import pt.ist.fenixWebFramework.security.UserView; /** * @author Barbosa * @author Pica */ public class ReadQualificationsAction extends FenixAction { /* * (non-Javadoc) * * @seeorg.apache.struts.action.Action#execute(org.apache.struts.action. * ActionMapping, org.apache.struts.action.ActionForm, * javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { IUserView userView = UserView.getUser(); Object[] args = { userView.getUtilizador() }; InfoSiteQualifications infoSiteQualifications = (InfoSiteQualifications) ServiceUtils.executeService( "ReadQualifications", args); request.setAttribute("infoSiteQualifications", infoSiteQualifications); return mapping.findForward("show-form"); } }