On 13/01/2010 12:23, Roxana wrote:
> I have looke din the documentation of the *ExpressionFactory *:
> http://java.sun.com/javaee/6/docs/api/javax/el/ExpressionFactory.html
> and i decided to use the method
> newInstance<http://java.sun.com/javaee/5/docs/api/javax/el/ExpressionFactory.html#newInstance%28%29>
> ()  Surprisingly enough i get the error message:
> 
> The method newInstance() is undefined for the type ExpressionFactory
>
> Do you have any idea why this method is not available?

You are looking at the Java EE 6 docs. Tomcat 6 supports Servlet 2.5 and
JSP 2.1 which is Java EE 5. That method was added for JSP 2.2. That
means you'll need Tomcat 7, which is close to a first release.

> Can you give me some ideas about how to create an argument ExpressionFactory
> for the constructor  of ExpressionEvaluatorImpl ?

The easiest way to do this in Tomcat 6 is to do create an instance of
org.apache.el.ExpressionFactoryImpl

HTH,

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to