protected void processContext ( ActionContext actionContext ) throws ServletException , IOException { Action action = null ; try { // Find action binding ActionBinding actionBinding = findActionBinding ( actionContext ) ; // Create action if ( actionBinding != null ) { action = actionBinding . create ( actionContext ) ; } if ( action == null ) { throw new ActionException ( "No action bound to path " + actionContext . getPath ( ) ) ; } // Read request parameters action . readParameters ( ) ; // Execute action (generate response) action . execute ( ) ; } catch ( ActionException actionException ) { // Handle action errors try { ErrorAction errorAction = new ErrorAction ( actionContext ) ; errorAction . setError ( actionException ) ; errorAction . execute ( ) ; } catch ( ActionException actionException1 ) { throw new ServletException ( actionException ) ; } } }
Process an HTTP request .