• 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

EL problem !!!

 
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ...
 
Author
Posts: 836
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, i got it
reply
    Bookmark Topic Watch Topic
  • New Topic