Source:
public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { DynaActionForm form = (DynaActionForm) actionForm; RequestContext context = new RequestContext(request); User user = context.getCurrentUser(); Server server = SystemManager.lookupByIdAndUser( context.getRequiredParam(RequestContext.SID), user); ActionErrors errorMessages = new ActionErrors(); ActionMessages infoMessages = new ActionMessages(); request.setAttribute("formData", new SystemRemoteCommandAction.FormData()); if (!SystemManager.clientCapable(server.getId(), "script.run")) { request.setAttribute("cannotRunScript", "true"); } if (!SystemManager.hasEntitlement(server.getId(), EntitlementManager.PROVISIONING)) { request.setAttribute("noProvisioningEntitlement", "true"); } if (form.get(RhnAction.SUBMITTED) != null) { if (this.validate(form, errorMessages)) { try { ScriptRunAction action = this.scheduleScript(form, user, server); infoMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("ssm.overview.provisioning" + ".remotecommand.succeed", server.getId().toString(), action.getId().toString(), LocalizationService .getInstance() .formatDate(action.getEarliestAction()))); } catch (Exception ex) { SystemRemoteCommandAction.log.error(ex); errorMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("ssm.operations.actionchaindetails." + "scheduleerror.general.param", ex.getLocalizedMessage())); } } else { request.setAttribute("formData", this.getFormData(form)); } } request.setAttribute("date", this.getStrutsDelegate().prepopulateDatePicker( request, form, "date", DatePicker.YEAR_RANGE_POSITIVE)); request.setAttribute("system", server); this.getStrutsDelegate().saveMessages(request, errorMessages); this.getStrutsDelegate().saveMessages(request, infoMessages); form.getMap().clear(); return getStrutsDelegate().forwardParam( mapping.findForward(RhnHelper.DEFAULT_FORWARD), RequestContext.SID, server.getId().toString() ); }

Target:
public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { DynaActionForm form = (DynaActionForm) actionForm; RequestContext context = new RequestContext(request); User user = context.getCurrentUser(); Server server = SystemManager.lookupByIdAndUser( context.getRequiredParam(RequestContext.SID), user); ActionErrors errorMessages = new ActionErrors(); ActionMessages infoMessages = new ActionMessages(); request.setAttribute("formData", new SystemRemoteCommandAction.FormData()); if (!SystemManager.clientCapable(server.getId(), "script.run")) { request.setAttribute("cannotRunScript", "true"); } if (!SystemManager.hasEntitlement(server.getId(), EntitlementManager.PROVISIONING)) { request.setAttribute("noProvisioningEntitlement", "true"); } if (form.get(RhnAction.SUBMITTED) != null) { if (this.validate(form, errorMessages)) { try { ScriptRunAction action = this.scheduleScript(form, user, server); infoMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("ssm.overview.provisioning" + ".remotecommand.succeed", server.getId().toString(), action.getId().toString(), LocalizationService .getInstance() .formatDate(action.getEarliestAction()))); } catch (Exception ex) { SystemRemoteCommandAction.LOG.error(ex); errorMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("ssm.operations.actionchaindetails." + "scheduleerror.general.param", ex.getLocalizedMessage())); } } else { request.setAttribute("formData", this.getFormData(form)); } } request.setAttribute("date", this.getStrutsDelegate().prepopulateDatePicker( request, form, "date", DatePicker.YEAR_RANGE_POSITIVE)); request.setAttribute("system", server); this.getStrutsDelegate().saveMessages(request, errorMessages); this.getStrutsDelegate().saveMessages(request, infoMessages); form.getMap().clear(); return getStrutsDelegate().forwardParam( mapping.findForward(RhnHelper.DEFAULT_FORWARD), RequestContext.SID, server.getId().toString() ); }