• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Check Object's class using JSTL

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've tried to migrate to Tomcat 7 and got the "java.lang.NoClassDefFoundError: Lorg/apache/AnnotationProcessor" Exception once I called my precompiled JSP files using Tomcat6 Jasper.

So, I decided to change the Jasper compiler to version 7.

My Problem is the below code which raises "contains invalid expression(s): javax.el.ELException: Failed to parse the expression":



It has been compiled in Tomcat6 Jasper without a problem.

Is there something that I must update to be able to compile this line of code using Tomcat7 Jasper?


EDIT: Problem solved. Use MyTestClass['class'] instead of MyTestClass.class
 
reply
    Bookmark Topic Watch Topic
  • New Topic