lookup ActionForm in

@param request
@return
173046
public static ActionForm lookupActionForm(HttpServletRequest request, String formName) {
		ActionForm actionForm = null;
		actionForm = (ActionForm) request.getAttribute(formName);
		if (actionForm == null && request.getSession(false) != null) {
			HttpSession session = request.getSession(false);
			actionForm = (ActionForm) session.getAttribute(formName);
		}
		return actionForm;
	}
1041913
public static String getRequestURI(final HttpServletRequest request) {
		return (String) request.getSession(true).getAttribute(STORE_URI_KEY);
	}
128711
public static Map<String, Object> createRequestParamsMap(HttpServletRequest request) {
        Map<String, Object> paramsMap = new HashMap<>();
        for (Enumeration paramNameEnum = request.getParameterNames(); paramNameEnum.hasMoreElements(); ) {
            String paramName = (String)paramNameEnum.nextElement();
            String[] paramValues = request.getParameterValues(paramName);

            if (paramValues.length == 1) {
                paramsMap.put(paramName, paramValues[0]);
            } else {
                paramsMap.put(paramName, paramValues);
            }
        }

        return paramsMap;
    }
276766
public static void setForwardedFormBean( ServletRequest request, ActionForm form )
    {
        if ( form == null )
        {
            request.removeAttribute( FORWARDED_FORMBEAN_ATTR );
        }
        else
        {
            request.setAttribute( FORWARDED_FORMBEAN_ATTR, form );
        }
    }
1225076
protected String getAction(String service, SOAPMessage msg, HttpServletRequest request){
        if(!request.getMethod().equalsIgnoreCase("post")){
            return null;
        }

        String a = null;
        Element action = null;
        try {
            action = XMLFormat.getFirstChildElement(msg.getSOAPBody(), null, null);
        } catch (SOAPException e) {
            throw S1SystemError.wrap(e);
        }
        if(action!=null)
            a = action.getLocalName();
        return a;
    }
959755
public function getForm(
        Action $action,
        Request $request,
        DataInterface $data,
        array $options = []
    ): FormInterface {
        $defaultOptions = $this->getDefaultFormOptions($action, $request, $data);

        return $this->getFormBuilder($action, $data, array_merge($defaultOptions, $options))->getForm();
    }
821017
public static Map<String, FileItem[]> getRequestFileItems(final HttpServletRequest request) {
		if (request.getAttribute(REQUEST_PROCESSED_KEY) == null) {
			setupRequestParameters(request);
		}
		return (Map<String, FileItem[]>) request.getAttribute(REQUEST_FILES_KEY);
	}
31861
public static Profile getProfile(HttpServletRequest request) {
        Authentication auth = getAuthentication(request);
        if (auth != null) {
            return auth.getProfile();
        } else {
            return null;
        }
    }
946324
protected ModelListForm getModelListForm(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest request) throws Exception {
		ModelListForm modelListForm = null;
		if (actionForm == null) {
			modelListForm = new ModelListForm();
			FormBeanUtil.saveActionForm(modelListForm, actionMapping, request);
		} else if (actionForm instanceof ModelListForm)
			modelListForm = (ModelListForm) actionForm;

		if (modelListForm == null)
			throw new Exception("not found the bean of com.jdon.strutsutil.ModelListForm");
		else
			return modelListForm;

	}
459606
void savePreviousActionInfo( ActionForm form, HttpServletRequest request, ActionMapping mapping,
                                 ServletContext servletContext )
    {
        //
        // Save this previous-action info in the *current page flow*.
        //
        PageFlowController currentJpf = PageFlowUtils.getCurrentPageFlow( request, getServletContext() );
        if ( currentJpf != null ) currentJpf.savePreviousActionInfo( form, request, mapping, servletContext );
    }
708909
@Override
	public void handleRequest(final Request request) {
		if (isDisabled()) {
			// Protect against client-side tampering of disabled/read-only fields.
			return;
		}

		// Remember which client side tab we were on.
		String[] indicesStr = request.getParameterValues(getId());

		if (indicesStr != null && indicesStr.length > 0) {
			List<Integer> oldIndices = getActiveIndices();
			List<Integer> changes = new ArrayList<>(1);
			int[] indices = new int[indicesStr.length];

			if (Util.empty(indicesStr[0])) {
				// Special case - no tab selected
				if (getType() == TYPE_ACCORDION) {
					indices = null;
				} else {
					int idx = findFirstVisibleTab();
					indices = new int[idx];
				}
			} else {
				// Normal case - one or more tabs selected
				for (int i = 0; i < indices.length; i++) {
					int clientIndex = Integer.parseInt(indicesStr[i]);
					int idx = clientIndexToTabIndex(clientIndex);
					indices[i] = idx;

					if (!oldIndices.contains(idx)) {
						// Check for a server mode tab and set focus
						WTab tab = getTab(idx);
						if (TabMode.SERVER.equals(tab.getMode()) && UIContextHolder.getCurrent().getFocussed() == null) {
							tab.setFocussed();
						}
						changes.add(idx);
					}
				}
			}

			setActiveIndices(indices);

			// Invoke action if tab selection has changed
			final Action action = getActionOnChange();

			if (action != null && !changes.isEmpty()) {
				final ActionEvent event = new ActionEvent(this, changes.toString(), null);

				Runnable later = new Runnable() {
					@Override
					public void run() {
						action.execute(event);
					}
				};

				invokeLater(later);
			}
		}

		String showHeadOnlyStr = request.getParameter(getId() + ".showHeadOnly");

		if (showHeadOnlyStr != null) {
			boolean showHeadOnly = "true".equals(showHeadOnlyStr);
			setShowHeadOnly(showHeadOnly);
		}
	}
1260431
public static String getActionMappingPath( ServletRequest request )
    {
        ActionMapping actionMapping = ( ActionMapping ) request.getAttribute( Globals.MAPPING_KEY );
        return actionMapping != null ? actionMapping.getPath() : null;
    }
1174193
protected Map<String,Object> getPreScriptBindings(Object request) throws ActivityException {
        Map<String,Object> binding = new HashMap<String,Object>();
        String requestVar = this.getAttributeValue(REQUEST_VARIABLE);
        if (requestVar != null && request instanceof String) {
            binding.put("request", getVariableValue(requestVar));
        }
        else {
            binding.put("request", request);
        }
        return binding;
    }
1062980
public static String baseUriOf(final HttpServletRequest request) {
        final StringBuffer requestUrl = request.getRequestURL();
        return requestUrl != null
                ? requestUrl.substring(0, requestUrl.indexOf(request.getServletPath()))
                : "";
    }
788160
public function getSearchForm($request = null, $sorting = false) {

		// Instantiate the search form, primarily excluding the sorting selection.

		return ($page = $this->owner->getSearchPage()) ? ModelAsController::controller_for($page)->getSearchForm($request, $sorting) : null;
	}
437429
public ActionMapping getMapping(HttpServletRequest request, ConfigurationManager configManager) {
    ActionMapping mapping = new ActionMapping();
    parseNameAndNamespace(RequestUtils.getServletPath(request), mapping);

    String method = request.getParameter(MethodParam);
    if (Strings.isNotEmpty(method)) mapping.setMethod(method);
    return mapping;
  }
659946
@Override
	public void handleRequest(final Request request) {
		if (isDisabled()) {
			// Protect against client-side tampering of disabled/read-only fields.
			return;
		}

		if (isMenuPresent(request)) {
			// If current ajax trigger, process menu for current selections
			if (AjaxHelper.isCurrentAjaxTrigger(this)) {
				WMenu menu = WebUtilities.getAncestorOfClass(WMenu.class, this);
				menu.handleRequest(request);

				// Execute associated action, if set
				final Action action = getAction();

				if (action != null) {
					final ActionEvent event = new ActionEvent(this, this.getActionCommand(),
							this.getActionObject());

					Runnable later = new Runnable() {
						@Override
						public void run() {
							action.execute(event);
						}
					};

					invokeLater(later);
				}
			}

			boolean openState = "true".equals(request.getParameter(getId() + ".open"));
			setOpen(openState);
		}
	}