This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic