public static String getFormBeanName ( Class formBeanClass , HttpServletRequest request ) { ModuleConfig moduleConfig = RequestUtils . getRequestModuleConfig ( request ) ; List /*< String >*/ names = getFormNamesFromModuleConfig ( formBeanClass . getName ( ) , moduleConfig ) ; if ( names != null ) { assert names . size ( ) > 0 ; // getFormNamesFromModuleConfig returns null or a nonempty list return ( String ) names . get ( 0 ) ; } return generateFormBeanName ( formBeanClass , request ) ; }
Get the name for an ActionForm type . Use a name looked up from the current Struts module or if none is found create one .