FileDocCategorySizeDatePackage
InstallColorListener.javaAPI DocGlassfish v2 API2831Fri May 04 22:34:24 BST 2007jsp2_1.examples.elresolver

InstallColorListener

public class InstallColorListener extends Object implements ServletContextListener
ServletContextListener that installs the ColorELResolver, enabling the use of ${Color}.
author
Mark Roth

Fields Summary
Constructors Summary
Methods Summary
public voidcontextDestroyed(javax.servlet.ServletContextEvent evt)

    
public voidcontextInitialized(javax.servlet.ServletContextEvent evt)

        ServletContext context = evt.getServletContext();
        JspApplicationContext jspContext = 
            JspFactory.getDefaultFactory().getJspApplicationContext(context);
        jspContext.addELResolver(new ColorELResolver());