This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EL problem !!!

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying a simple EL example which sets a request attribute and dispatches the request to the JSP, the JSP then uses an EL expression to print a property of that attribute (it's a bean in my case) but it's not working

It keeps printing the same expression used in the JSP, which is :

${person.name} This is getting printed in the JSP

Although the bean is well defined according to its specifications

Please i need your help ranchers ...

Thanks in advance ...
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solved it although I'm shocked, I have just placed <%@page isELIgnored="false"%> directive .

It is said that if it's unspecified in both the DD and with the directive then it's evaluated

Please tell me what's going on ???

Thank you ...
 
Charles Lyons
Author
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is said that if it's unspecified in both the DD and with the directive then it's evaluated
This only happens when you're using DD version 2.4 or higher. If you're using 2.3 or lower, EL is ignored in order to maintain backward compatibility with old Web apps which may have used the ${ syntax as literals in their pages. You need to declare the correct schema reference in your DD in order for it to be recognised as v2.4 or higher.
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, i got it
 
What are you doing? You are supposed to be reading this 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!