errs.add(Globals.ERROR_KEY, new BundleActionMessage("policyframework", "resourceNotAttachedToPolicy"));
saveErrors(request, errs);
return new RedirectWithMessages(returnTo, request);
}
Util.noCache(response);
if(resource.sessionPasswordRequired(session)) {
// Prompt for the session password then come back here
return new ActionForward("/promptForSessionPassword.do?forwardTo=" + Util.urlEncode(CoreUtil.getRealRequestURI(request) + "?resourceId=" + id + "&policy=" + policy.getResourceId() + "&returnTo=" + Util.urlEncode(returnTo)), true);
}
else {
// Launch the agent and return here