Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Check Object's class using JSTL

 
Nicole Monit
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!