code: public static void setFormInScope( String formName, ActionForm form, ActionMapping mapping,
                                         HttpServletRequest request, boolean overwrite )
      {
          if ( formName != null && form != null )
          {
              if ( isSessionScope( mapping ) )
              {
                  HttpSession session = request.getSession();
  
                  if ( overwrite || session.getAttribute( formName ) == null )
                  {
                      session.setAttribute( formName, form );
                  }
              }
              else
              {
                  if ( overwrite || request.getAttribute( formName ) == null )
                  {
                      request.setAttribute( formName, form );
                  }
              }
          }
      }
docs: Set the given form in either the request or session, as appropriate, so Struts/NetUI
  tags will have access to it.