code: 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;
  	}
docs: lookup ActionForm in
  
  @param request
  @return