/** * Configures this implementation for EL support. * Use * <code>getWebMockObjectFactory().setDefaultJspFactory(new JasperJspFactory().configure(getWebMockObjectFactory()));</code> * to set this implementation as the default factory. * @return this instance for convenience */ public JasperJspFactory configure(WebMockObjectFactory mockFactory) { this.mockFactory = mockFactory; applicationContext = JspApplicationContextImpl.getInstance(mockFactory.getMockServletContext()); mockFactory.getMockPageContext().setELContext(applicationContext.createELContext(mockFactory.getMockPageContext())); return this; }