javax.servlet.jsp.el.ImplicitObjectELResolver Java Examples
The following examples show how to use
javax.servlet.jsp.el.ImplicitObjectELResolver.
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 |
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: TestJasperELResolver.java From Tomcat8-Source-Read with MIT License | 6 votes |
private void doTestConstructor(int count) throws Exception { List<ELResolver> list = new ArrayList<>(); for (int i = 0; i < count; i++) { list.add(new ImplicitObjectELResolver()); } JasperELResolver resolver = new JasperELResolver(list, new StreamELResolverImpl()); Assert.assertEquals(Integer.valueOf(count), getField("appResolversSize", resolver)); Assert.assertEquals(9 + count, ((ELResolver[])getField("resolvers", resolver)).length); Assert.assertEquals(Integer.valueOf(9 + count), Integer.valueOf(((AtomicInteger) getField("resolversSize", resolver)).get())); }
Example #3
Source File: JasperELResolver.java From Tomcat7.0.67 with Apache License 2.0 | 6 votes |
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: TestJasperELResolver.java From Tomcat7.0.67 with Apache License 2.0 | 6 votes |
private void doTestConstructor(int count) throws Exception { List<ELResolver> list = new ArrayList<ELResolver>(); for (int i = 0; i < count; i++) { list.add(new ImplicitObjectELResolver()); } JasperELResolver resolver = new JasperELResolver(list); Assert.assertEquals(Integer.valueOf(count), getField("appResolversSize", resolver)); Assert.assertEquals(7 + count, ((ELResolver[])getField("resolvers", resolver)).length); Assert.assertEquals(Integer.valueOf(7 + count), getField("size", resolver)); }
Example #5
Source File: JasperELResolver.java From tomcatsrc with Apache License 2.0 | 6 votes |
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 #6
Source File: TestJasperELResolver.java From tomcatsrc with Apache License 2.0 | 6 votes |
private void doTestConstructor(int count) throws Exception { List<ELResolver> list = new ArrayList<ELResolver>(); for (int i = 0; i < count; i++) { list.add(new ImplicitObjectELResolver()); } JasperELResolver resolver = new JasperELResolver(list); Assert.assertEquals(Integer.valueOf(count), getField("appResolversSize", resolver)); Assert.assertEquals(7 + count, ((ELResolver[])getField("resolvers", resolver)).length); Assert.assertEquals(Integer.valueOf(7 + count), getField("size", resolver)); }
Example #7
Source File: PageContextImpl.java From packagedrone with Eclipse Public License 1.0 | 5 votes |
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; }