Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 41747 invoked from network); 5 Jul 2008 10:25:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jul 2008 10:25:54 -0000 Received: (qmail 30203 invoked by uid 500); 5 Jul 2008 10:25:48 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 30152 invoked by uid 500); 5 Jul 2008 10:25:48 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 30141 invoked by uid 500); 5 Jul 2008 10:25:48 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 30138 invoked by uid 99); 5 Jul 2008 10:25:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2008 03:25:48 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2008 10:25:05 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 13720234C150; Sat, 5 Jul 2008 03:24:51 -0700 (PDT) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 45345] New: Methods "javax.el. ExpressionFactory#newInstance" not implemented X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 6 X-Bugzilla-Component: Servlet & JSP API X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: sguazt@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tomcat-dev@jakarta.apache.org X-Bugzilla-Target-Milestone: default X-Bugzilla-Changed-Fields: Message-ID: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 5 Jul 2008 03:24:51 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=45345 Summary: Methods "javax.el.ExpressionFactory#newInstance" not implemented Product: Tomcat 6 Version: 6.0.16 Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: Servlet & JSP API AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: sguazt@gmail.com Just experimenting with the creation of JSP custom tags. I needed to create a ValueExpression throught the ExpressionFactory class but I've realized the EL implementation included in Apache doesn't include the methods "newInstance" of the ExpressionFactory. I've looked inside the SVN repo just to make sure that the implementation wasn't in development- These methods are included in the J2EE 5 specs: http://java.sun.com/javaee/5/docs/api/javax/el/ExpressionFactory.html So what about this? ** How to reproduce ** Create a JSP custom component, for instance: --- [snip] --- public class MyJspTag extends SimpleTagSupport { String bean; String name; String value; //... @Override public void doTag() throws JspException, SkipPageException, IOException { ELContext elContext = this.getJspContext().getELContext(); ExpressionFactory expressionFactory = null; ValueExpression valueExpression = null; expressionFactory = ExpressionFactory.newInstance(); valueExpression = expressionFactory.createValueExpression( elContext, "${" + bean + "." + name + "}", Object.class ); valueExpression.setValue(elContext, value); } } --- [/snip] --- Compile adding in the classpath I include the JARs el-api.jar, jsp-api.jar, servlet-api.jar you found in $CATALINA_HOME/lib The compilation should give you the error: --- [snip] --- [javac] .../MyTag.java:39: cannot find symbol [javac] symbol : method newInstance() [javac] location: class javax.el.ExpressionFactory [javac] expressionFactory = ExpressionFactory.newInstance(); [javac] ^ [javac] 1 error --- [/snip] --- Thanks!! -- Marco -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org