public ActionForm getFirstOutputForm ( HttpServletRequest request ) { if ( _outputForms == null || _outputForms . size ( ) == 0 ) { if ( _outputFormBeanType != null ) { try { if ( _log . isDebugEnabled ( ) ) { _log . debug ( "Creating form bean of type " + _outputFormBeanType ) ; } ServletContext servletContext = InternalUtils . getServletContext ( request ) ; ReloadableClassHandler rch = Handlers . get ( servletContext ) . getReloadableClassHandler ( ) ; Object formBean = rch . newInstance ( _outputFormBeanType ) ; ActionForm wrappedFormBean = InternalUtils . wrapFormBean ( formBean ) ; addOutputForm ( wrappedFormBean ) ; return wrappedFormBean ; } catch ( Exception e ) { _log . error ( "Could not create form bean instance of " + _outputFormBeanType , e ) ; } } return null ; } else { return ( ActionForm ) _outputForms . get ( 0 ) ; } }
Get the first output form bean that was added to this Forward .