{   String currentSubsystemId = request.getParameter("grantableSubsystems");  if (currentSubsystemId == null) {   return (mapping.findForward("notInitialized")); }  currentSubsystem = signet.getSubsystem(currentSubsystemId); session.setAttribute("currentSubsystem", currentSubsystem);
{   return (mapping.findForward("notInitialized"));
  public ActionForward execute  	(ActionMapping				mapping,     ActionForm 					form,     HttpServletRequest 	request,     HttpServletResponse response)  throws Exception  {    // Setup message array in case there are errors    ArrayList messages = new ArrayList();    // Confirm message resources loaded    MessageResources resources = getResources(request);    if (resources==null)    {      messages.add(Constants.ERROR_MESSAGES_NOT_LOADED);    }    // If there were errors, forward to our failure page    if (messages.size()>0)    {      request.setAttribute(Constants.ERROR_KEY,messages);      return findFailure(mapping);    }        // First, check to see if we have a Signet instance or not. If we don't,    // we'll need to redirect this session to the Signet start page.    HttpSession session = request.getSession();     Signet signet = (Signet)(session.getAttribute("signet"));        if (signet == null)    {      return (mapping.findForward("notInitialized"));    }        // There are two ways we could have gotten to this action servlet: From the    // "choose Subsystem" page (in which case we should now have an HTTP    // parameter which describes the Subsystem of interest), or via some "go    // back and change your Function selection" link (in which case we should    // now have a Subsystem stored as an HTTP Session parameter).        Subsystem currentSubsystem      = (Subsystem)(session.getAttribute("currentSubsystem"));    if (currentSubsystem == null)    {              // Find the Subsystem specified by the "grantableSubsystems" parameter,      // and stash it in the Session.      String currentSubsystemId = request.getParameter("grantableSubsystems");            if (currentSubsystemId == null)      {        // We don't have a Subsystem either via a Session attribute or via an        // HTTP parameter. Let's send this user back to square one.        return (mapping.findForward("notInitialized"));      }            currentSubsystem = signet.getSubsystem(currentSubsystemId);      session.setAttribute("currentSubsystem", currentSubsystem);    }        // We're creating a new Assignment, not editing an existing one. Let's    // make that clear by clearing out any "currentAssignment" attribute from    // the session.    session.setAttribute("currentAssignment", null);    // Forward to our success page    return findSuccess(mapping);  }