javax.servlet.jsp.el.ScopedAttributeELResolver Java Examples

The following examples show how to use javax.servlet.jsp.el.ScopedAttributeELResolver. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JasperELResolver.java    From Tomcat8-Source-Read with MIT License 6 votes vote down vote up
public JasperELResolver(List<ELResolver> appResolvers,
        ELResolver streamResolver) {
    appResolversSize = appResolvers.size();
    resolvers = new ELResolver[appResolversSize + STANDARD_RESOLVERS_COUNT];

    add(new ImplicitObjectELResolver());
    for (ELResolver appResolver : appResolvers) {
        add(appResolver);
    }
    add(streamResolver);
    add(new StaticFieldELResolver());
    add(new MapELResolver());
    add(new ResourceBundleELResolver());
    add(new ListELResolver());
    add(new ArrayELResolver());
    add(new BeanELResolver());
    add(new ScopedAttributeELResolver());
}
 
Example #2
Source File: JasperELResolver.java    From Tomcat7.0.67 with Apache License 2.0 6 votes vote down vote up
public JasperELResolver(List<ELResolver> appResolvers) {
    appResolversSize = appResolvers.size();
    resolvers = new ELResolver[appResolversSize + 7];
    size = 0;

    add(new ImplicitObjectELResolver());
    for (ELResolver appResolver : appResolvers) {
        add(appResolver);
    }
    add(new MapELResolver());
    add(new ResourceBundleELResolver());
    add(new ListELResolver());
    add(new ArrayELResolver());
    add(new BeanELResolver());
    add(new ScopedAttributeELResolver());
}
 
Example #3
Source File: JasperELResolver.java    From tomcatsrc with Apache License 2.0 6 votes vote down vote up
public JasperELResolver(List<ELResolver> appResolvers) {
    appResolversSize = appResolvers.size();
    resolvers = new ELResolver[appResolversSize + 7];
    size = 0;

    add(new ImplicitObjectELResolver());
    for (ELResolver appResolver : appResolvers) {
        add(appResolver);
    }
    add(new MapELResolver());
    add(new ResourceBundleELResolver());
    add(new ListELResolver());
    add(new ArrayELResolver());
    add(new BeanELResolver());
    add(new ScopedAttributeELResolver());
}
 
Example #4
Source File: PageContextImpl.java    From packagedrone with Eclipse Public License 1.0 5 votes vote down vote up
private ELResolver getELResolver() {
                                                                            
    if (elResolver == null) {
        // Create a CompositeELResolver
        CompositeELResolver celResolver = new CompositeELResolver();
                                                                            
        celResolver.add(new ImplicitObjectELResolver());
        // Add ELResolvers registered in JspApplicationContext
        JspApplicationContextImpl jaContext = getJspApplicationContext();
        Iterator<ELResolver> it = jaContext.getELResolvers();
        while (it.hasNext()) {
            celResolver.add(it.next());
        }
        ELResolver streamELResolver =
            getExpressionFactory(this).getStreamELResolver();
        if (streamELResolver != null) {
            celResolver.add(streamELResolver);
        }
        celResolver.add(new StaticFieldELResolver());
        celResolver.add(new MapELResolver());
        celResolver.add(new ResourceBundleELResolver());
        celResolver.add(new ListELResolver());
        celResolver.add(new ArrayELResolver());
        celResolver.add(new BeanELResolver());
        celResolver.add(new ScopedAttributeELResolver());
        elResolver = celResolver;
    }
    return elResolver;
}