public ActionForm getFormBean ( ActionMapping mapping ) { if ( mapping instanceof PageFlowActionMapping ) { PageFlowActionMapping pfam = ( PageFlowActionMapping ) mapping ; String formMember = pfam . getFormMember ( ) ; if ( formMember == null ) return null ; Field field = null ; try { field = getClass ( ) . getDeclaredField ( formMember ) ; } catch ( NoSuchFieldException e ) { // try finding a non-private field from the class hierarchy field = InternalUtils . lookupField ( getClass ( ) , formMember ) ; if ( field == null || Modifier . isPrivate ( field . getModifiers ( ) ) ) { _log . error ( "Could not find member field " + formMember + " as the form bean." ) ; return null ; } } try { field . setAccessible ( true ) ; return InternalUtils . wrapFormBean ( field . get ( this ) ) ; } catch ( Exception e ) { _log . error ( "Could not use member field " + formMember + " as the form bean." , e ) ; } } return null ; }
Get the flow - scoped form bean member associated with the given ActionMapping . This is a framework - invoked method that should not normally be called directly .