1 package com.jcorporate.expresso.services.taglib; 2 3 66 67 import org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager; 68 69 import javax.servlet.jsp.JspException ; 70 import javax.servlet.jsp.PageContext ; 71 import javax.servlet.jsp.tagext.Tag ; 72 73 91 public class ELTagSupport { 92 95 private static ELTagSupport theInstance = null; 96 97 100 protected ELTagSupport() { 101 } 102 103 114 public Object evaluate(String attributeName, 115 String expression, 116 Class expectedType, 117 Tag tag, 118 PageContext pageContext) throws JspException { 119 120 return ExpressionEvaluatorManager.evaluate(attributeName, 121 expression, expectedType, tag, pageContext); 122 } 123 124 129 public synchronized static ELTagSupport getInstance() { 130 if (theInstance == null) { 131 theInstance = new ELTagSupport(); 132 } 133 134 return theInstance; 135 } 136 } | Popular Tags |