7172737475767778798081
// check authorization if ( !isAuthorized( pageClass ) ) { Injector injector = RequestCycle.get().getInjector(); Page page = injector.getInstance( WebApplication.get().getUnauthorizedPage() ); response.getWriter().write( page.render() ); return; } // handle ajax calls
9293949596979899100101102
} // regular page calls Injector injector = RequestCycle.get().getInjector(); Page page = ( Page ) injector.getInstance( pageClass ); response.getWriter().write( page.render() ); } catch ( Exception e ) { processError( e, path, httpResponse ); }